cubehouse / themeparks

Unofficial API for accessing ride wait times and schedules for Disneyland, Disney World, Universal Studios, and many more parks
MIT License
545 stars 126 forks source link

Shanghai Disney Is Returning Closed For All Rides #287

Closed gberg927 closed 4 years ago

gberg927 commented 4 years ago

Park Magic Kingdom - Shanghai Disney Resort

Context

How to find your themeparks version: Linux: npm list --depth=0 | grep themeparks

Shanghai Disney is returning 0 wait time and status = closed for all rides. It looks like the last time these wait times were updated were in January. Obviously the parks have been closed so that explains why, but with Shanghai Disney back open, can this be resolved?

cubehouse commented 4 years ago

I will try and look at this tomorrow. I'm afraid my time is pretty limited right now, and timezones are not cooperating with me to see live data :)

zacharyedwardbull commented 4 years ago

I recently implemented this for queue-times.com so I'll try and summarise what I found while I was working on it.

The main endpoint seems to be https://apim.shanghaidisneyresort.com/explorer-service/public/wait-times/shdr;entityType=destination?region=cn. It requires an auth token which can be found by looking at the API requests made by the app.

{
  "entries":[
    ...
    {
      "id":"attSoaringOverHorizon;entityType=Attraction;destination=shdr",
      "waitTime":{
        "fastPass":{
          "startTime":"FASTPASS is Not Available",
          "available":true
        },
        "status":"Operating",
        "singleRider":false,
        "postedWaitMinutes": 90,
      }
    },
    ...
  ]
}

So far (based on 5 days of observations), the status field can take on the following values: Operating, Closed, Renewal or Down. Renewal just means refurbishment as far as I can tell.

Posted wait minutes is not always present as a field, only for some attractions when there is a wait time.

cubehouse commented 4 years ago

I've made an initial crack at it, but won't push this live until I see it working for real.

nearprosmith commented 4 years ago

II found your mistake on the commit. So I fix it and create Pull-request .#288

cubehouse commented 4 years ago

Many thanks for that! If all theme parks would just stay open 24 hours a day this would be much easier.

Pushed live with 5.1.36