Pirate-Weather / pirateweather

Code and documentation for the Pirate Weather API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can only get last 32 hours data using the API endpoint

cloneofghosts opened this issue · comments

commented

Describe the bug

According to the documentation you should be able to get the last three days worth of data using the API endpoint and after that you need to use the timemachine endpoint.

Expected behavior

Should be able to query data from the last three days using the API endpoint

Actual behavior

Can only query up to the last 32 hours of data before getting a "Requested time too early, please use https://timemachine.pirateweather.net" error message

API Endpoint

Production

Location

Ottawa, Ontario

Other details

@alexander0042 Is the API endpoint only going to store the last 32h of data now? If so then we need to update the docs to reflect the change

Troubleshooting steps

  • I have searched this repository and Home Assistant Repository to see if the issue has already been reported.
  • I have read through the API documentation before opening this issue.
  • I have written an informative title.
commented

@alexander0042 I changed the docs to reflect how long the API is storing past data for since I haven't gotten a response and I don't want to mislead anyone. If it's going to be 32h going forwards then I can close this so lmk.