Giter Club home page Giter Club logo

Comments (5)

juftin avatar juftin commented on September 15, 2024

hmm... looking into this now @greenh20. It looks like Camply isn't liking the response it's getting about that campground ID:

camply \
  --debug \
  campsites \
  --start-date 2022-10-01 \
  --end-date 2022-10-02 \
  --campground 234779 \
  --continuous
[2022-09-26 09:46:40] CAMPLY   camply, the campsite finder ⛺️
[2022-09-26 09:46:40] DEBUG    Setting up camply debugging
[2022-09-26 09:46:40] DEBUG    Camply Version: 0.6.1
[2022-09-26 09:46:40] DEBUG    Python Version: 3.10.6
[2022-09-26 09:46:40] DEBUG    Platform: darwin
[2022-09-26 09:46:40] INFO     31 booking nights selected for search, ranging from 2022-10-01 to 2022-10-31
[2022-09-26 09:46:40] DEBUG    Starting new HTTPS connection (1): ridb.recreation.gov:443
[2022-09-26 09:46:42] DEBUG    https://ridb.recreation.gov:443 "GET /api/v1/facilities/234779?full=True HTTP/1.1" 200 None
[2022-09-26 09:46:42] INFO     0 Matching Campgrounds Found
[2022-09-26 09:46:42] INFO     Searching for campsites every 10 minutes.
[2022-09-26 09:46:42] INFO     Notifications active via: <SilentNotifications>
[2022-09-26 09:46:42] INFO     Only <SilentNotifications> enabled. I hope you're watching these logs.
[2022-09-26 09:46:42] ERROR    No campgrounds found to search
[2022-09-26 09:46:42] CAMPLY   Exiting camply πŸ‘‹****

from camply.

juftin avatar juftin commented on September 15, 2024

And for my reference, here's the response returned about the campsite:

{
  "ACTIVITY": [
    {
      "ActivityID": 5,
      "ActivityName": "BIKING",
      "FacilityActivityDescription": "Biking",
      "FacilityActivityFeeDescription": "",
      "FacilityID": "234779"
    },
    {
      "ActivityID": 6,
      "ActivityName": "BOATING",
      "FacilityActivityDescription": "Boating",
      "FacilityActivityFeeDescription": "",
      "FacilityID": "234779"
    },
    {
      "ActivityID": 9,
      "ActivityName": "CAMPING",
      "FacilityActivityDescription": "Camping",
      "FacilityActivityFeeDescription": "Camping",
      "FacilityID": "234779"
    },
    {
      "ActivityID": 11,
      "ActivityName": "FISHING",
      "FacilityActivityDescription": "Fishing",
      "FacilityActivityFeeDescription": "",
      "FacilityID": "234779"
    },
    {
      "ActivityID": 14,
      "ActivityName": "HIKING",
      "FacilityActivityDescription": "Hiking",
      "FacilityActivityFeeDescription": "",
      "FacilityID": "234779"
    },
    {
      "ActivityID": 15,
      "ActivityName": "HORSEBACK RIDING",
      "FacilityActivityDescription": "Horseback Riding",
      "FacilityActivityFeeDescription": "",
      "FacilityID": "234779"
    },
    {
      "ActivityID": 24,
      "ActivityName": "VISITOR CENTER",
      "FacilityActivityDescription": "Emergency Services",
      "FacilityActivityFeeDescription": "",
      "FacilityID": "234779"
    }
  ],
  "CAMPSITE": [],
  "EVENT": [],
  "Enabled": true,
  "FACILITYADDRESS": [
    {
      "AddressCountryCode": "USA",
      "AddressStateCode": "OR",
      "City": "Prineville",
      "FacilityAddressID": "20440174",
      "FacilityAddressType": "Default",
      "FacilityID": "234779",
      "FacilityStreetAddress1": "P.O. Box 739",
      "FacilityStreetAddress2": "",
      "FacilityStreetAddress3": "",
      "LastUpdatedDate": "2022-09-26",
      "PostalCode": "97754"
    }
  ],
  "FacilityAdaAccess": "N",
  "FacilityDescription": "<h2>Overview</h2>\nHaystack Campground (East Shore) is located in central Oregon's scenic Crooked River National Grassland.  With a view of Mt. Jefferson in the distance, visitors can enjoy the beautiful vistas while relaxing in the high desert.<h2>Recreation</h2>\nFishing is a popular pastime at the reservoir, which is regularly stocked.  Largemouth bass, rainbow trout, kokanee, along with crappie and catfish are some of the species that inhabit the water.  Recreational boating is also popular with paved boat ramps available at Haystack Campground as well as at the West Shore Campground.  Swimming is also permitted. \n<br/>\nNearby areas provide other activities such as rock climbing, hiking, horseback riding, mountain biking, and ATV use.<h2>Facilities</h2>\nHaystack Campground offers 24 spacious campsites that will accommodate tents to large RVs.  It is located on the east shore of Haystack Reservoir and has paved interior roads and site pads.  Each campsite has a picnic table and campfire ring. There are five vault toilets conveniently located throughout the campground. Potable water is available at the RV fill station located just past the entrance station. <br/>\n<br/>\nIn addition to the individual campsites, there are Day Use areas that have covered picnic tables.  <h2>Natural Features</h2>\nNear Madras, Oregon, Haystack Reservoir's 240 surface-acres are surrounded by a high desert landscape of juniper trees and sagebrush.\n<br/>\nThe expanse of water attracts waterfowl such as common loon, horned grebe, red-necked grebe, and eared grebe for a respite during migration. Rarities that have been reported are trumpeter swan, surf scoter, black-necked stilt, sanderling, bald eagle, osprey, and eastern kingbird. The spring breeding season in April through May produces nature's own concert from Pacific chorus frog. \n<h2>Nearby Attractions</h2>\nSmith Rock State Park, a very popular area for rock climbing is about a 20-minute drive to the south.  Also, a spectacular view of the Crooked River Gorge is available from an old highway bridge, now accessible by a short walk from a rest area just off Hwy 97 about 15 minutes south of the campground.",
  "FacilityDirections": "From Highway 97: Exit Jericho Lane and go east for approximately 1.2 miles.  Turn right on Haystack Drive (FS 7130 / FS 96) and continue on for about 2.1 miles.  The Haystack Campground entrance is on the left.   \nFrom Highway 26: Exit on Laurel Lane (FS 96) and go west for approximately 4 miles.  Bear right at the intersection of FS 7130 / FS 96 and continue on for about 2 miles.  Haystack Campground entrance will be on the right.",
  "FacilityEmail": "[email protected]",
  "FacilityID": "234779",
  "FacilityLatitude": 44.4919444,
  "FacilityLongitude": -121.1463889,
  "FacilityMapURL": "",
  "FacilityName": "HAYSTACK CAMPGROUND (EAST SHORE)",
  "FacilityPhone": "541-351-1182",
  "FacilityReservationURL": "",
  "FacilityTypeDescription": "Campground",
  "FacilityUseFeeDescription": "",
  "GEOJSON": {
    "COORDINATES": [
      -121.1463889,
      44.4919444
    ],
    "TYPE": "Point"
  },
  "Keywords": "",
  "LINK": [
    {
      "Description": "Oregon State Road Conditions",
      "EntityID": "234779",
      "EntityLinkID": "749690897da11d4dd4cc72abce3755b2",
      "EntityType": "Facility",
      "LinkType": "Other",
      "Title": "Oregon State Road Conditions",
      "URL": "http://www.oregon.gov/odot/"
    },
    {
      "Description": "Oregon State Tourism",
      "EntityID": "234779",
      "EntityLinkID": "717a5a903cd08ff3b6203547774ced7a",
      "EntityType": "Facility",
      "LinkType": "Other",
      "Title": "Oregon State Tourism",
      "URL": "http://traveloregon.com"
    },
    {
      "Description": "Print Facility Map",
      "EntityID": "234779",
      "EntityLinkID": "4a655d287457630f2164ca3f979e71aa",
      "EntityType": "Facility",
      "LinkType": "Other",
      "Title": "Print Facility Map",
      "URL": "http://www.recreation.gov/webphotos/facilitymaps/112239_C239.pdf"
    }
  ],
  "LastUpdatedDate": "2022-09-26",
  "LegacyFacilityID": "112239",
  "MEDIA": [
    {
      "Credits": "none",
      "Description": "Camping at Haystack East Shore",
      "EmbedCode": "",
      "EntityID": "234779",
      "EntityMediaID": "57483bfb-b37b-472b-b154-5d093edc12c6",
      "EntityType": "Facility",
      "Height": 525,
      "IsGallery": false,
      "IsPreview": true,
      "IsPrimary": false,
      "MediaType": "Image",
      "Subtitle": "",
      "Title": "Camping at Haystack East Shore",
      "URL": "https://cdn.recreation.gov/public/2022/07/13/19/29/234779_d5c364b8-d59b-4a7c-9fc1-647d29f40a99_700.jpg",
      "Width": 700
    },
    {
      "Credits": "none",
      "Description": "camping is picture perfect at Haystack East Shore",
      "EmbedCode": "",
      "EntityID": "234779",
      "EntityMediaID": "af75ebbc-4f14-4c15-9cf7-ecae7ba90b6c",
      "EntityType": "Facility",
      "Height": 810,
      "IsGallery": false,
      "IsPreview": false,
      "IsPrimary": true,
      "MediaType": "Image",
      "Subtitle": "",
      "Title": "campground picture",
      "URL": "https://cdn.recreation.gov/public/2022/07/13/19/31/234779_8f71e72d-8853-42f6-b58a-71504565604a_1440.jpg",
      "Width": 1440
    },
    {
      "Credits": "none",
      "Description": "Group sites have ample parking and lakeside access",
      "EmbedCode": "",
      "EntityID": "234779",
      "EntityMediaID": "9ccd10fd-5b07-4838-9729-d4d88d20de55",
      "EntityType": "Facility",
      "Height": 525,
      "IsGallery": true,
      "IsPreview": false,
      "IsPrimary": false,
      "MediaType": "Image",
      "Subtitle": "",
      "Title": "Group sites have ample parking",
      "URL": "https://cdn.recreation.gov/public/2022/07/13/19/34/234779_2582f9af-d99e-49df-a826-23a3812f8248_700.jpg",
      "Width": 700
    },
    {
      "Credits": "none",
      "Description": "Haystack boat launch",
      "EmbedCode": "",
      "EntityID": "234779",
      "EntityMediaID": "2581747",
      "EntityType": "Facility",
      "Height": 360,
      "IsGallery": true,
      "IsPreview": false,
      "IsPrimary": false,
      "MediaType": "Image",
      "Subtitle": "",
      "Title": "Haystack boat launch",
      "URL": "https://cdn.recreation.gov/public/images/74545.jpg",
      "Width": 540
    },
    {
      "Credits": "none",
      "Description": "Entrance to Haystack Campground",
      "EmbedCode": "",
      "EntityID": "234779",
      "EntityMediaID": "2581681",
      "EntityType": "Facility",
      "Height": 360,
      "IsGallery": true,
      "IsPreview": false,
      "IsPrimary": false,
      "MediaType": "Image",
      "Subtitle": "",
      "Title": "Haystack Campground entrance",
      "URL": "https://cdn.recreation.gov/public/images/74464.jpg",
      "Width": 540
    },
    {
      "Credits": "",
      "Description": "",
      "EmbedCode": "",
      "EntityID": "234779",
      "EntityMediaID": "2581654",
      "EntityType": "Facility",
      "Height": 360,
      "IsGallery": true,
      "IsPreview": false,
      "IsPrimary": false,
      "MediaType": "Image",
      "Subtitle": "",
      "Title": "HAYSTACK CAMPGROUND (EAST SHORE)",
      "URL": "https://cdn.recreation.gov/public/images/74431.jpg",
      "Width": 540
    }
  ],
  "ORGANIZATION": [
    {
      "LastUpdatedDate": "2018-06-26",
      "OrgAbbrevName": "FS",
      "OrgID": "131",
      "OrgImageURL": "fs.jpg",
      "OrgJurisdictionType": "State",
      "OrgName": "USDA Forest Service",
      "OrgParentID": "163",
      "OrgType": "Federal Agency",
      "OrgURLAddress": "http://www.fs.fed.us",
      "OrgURLText": ""
    }
  ],
  "OrgFacilityID": "AN412239",
  "PERMITENTRANCE": [],
  "ParentOrgID": "131",
  "ParentRecAreaID": "74424",
  "RECAREA": [],
  "Reservable": true,
  "StayLimit": "",
  "TOUR": []
}

from camply.

juftin avatar juftin commented on September 15, 2024

Oh, here it is. It looks like that campground doesn't return any information about its RECAREA:

"RECAREA": [],

I guess that is a Campground that doesn't belong to a Recreation Area - I didn't think that was possible. This should be an easy fix @greenh20

from camply.

juftin avatar juftin commented on September 15, 2024

Although, it looks like it SHOULD belong to the Ochoco National Forest & Crooked River National Grassland and Recreation.gov just hasn't connected the two yet.

My fix for this basically says that Campgrounds without a Recreation Area are assumed to be their own Recreation Area.

from camply.

juftin avatar juftin commented on September 15, 2024

Actually, it's part of Ochoco NF - FS. Honestly this looks like a data issue - but it also looks like Recreation.gov is making changes to the campground as recently as today. I'm guessing that this issue would've resolved itself, but my fix will resolve it regardless. Fix incoming.

from camply.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.