Closed jhemak closed 7 months ago
Are you still having issues with the integration or has everything come back online? If you are can you give your approximate location so I can try to see if I get an error querying the API.
The production API sometimes has momentary outages which is what you may have experienced. The good news is that V2 of the API should be coming online today which will fix these issues.
Yes, it is still down for me with the same error as noted above. I am in the US. Could it be that my API key has hit its limit? I wouldn’t think that to be the case, but don’t know why it’s suddenly stopped working after being rock solid.
It's possible that you may have hit the API limit depending on the update rate you set for the integration. When you setup the integration what did you set the update rate to? If you query the API in your browser does it work or do you get an error message?
It’s set to 300 seconds, but I do have the integration set up twice - once for a weather entity and another for a set of condition sensors. Maybe that is my mistake? Could you help me with the format of a test URL?
Here's a URL you can use to query the API to see if you've hit the limit or not: https://api.pirateweather.net/forecast/[API_KEY]/[LAT],[LON]
It's quite possible that with your setup you hit the API limit. There's also not a need to have a second integration as you can have a weather entity and sensors in one integration. it's also not recommended to have the update interval below 15m as the models the API uses only has data in 15m intervals. If you want to change the update interval you'd have to remove and setup the integration again as there is no way to change it after its been setup.
Thanks ... the browser test confirmed it's an API Rate Limit issue. I updated to a single integration instance with a 15 min polling interval. That should fix it moving forward. Thanks for the guidance!
I had the same issue. The odd part is that I've had this integration set up exactly the same way since December, and this is the first month I've run into the API limit.
Describe the issue
Is the integration down or is it just me? All sensors have gone unavailable and this is in the debug log:
2024-04-19 02:50:39.099 DEBUG (MainThread) [custom_components.pirateweather.weather_update_coordinator] Finished fetching pirateweather data in 0.180 seconds (success: False)
Home Assistant version
2024.4.3
Integration version
1.4.5.1
Troubleshooting steps