Pirate-Weather / pirateweather

Code and documentation for the Pirate Weather API
Apache License 2.0
614 stars 27 forks source link

Inconsistent API response (merry & curl vs HA) - always raining #251

Closed liquidblack closed 5 days ago

liquidblack commented 1 week ago

Describe the bug

Pirateweather status is (almost) always raining

Trying to move from openweather to pirateweather with HA - this does not appear to be a HA problem but it's nice and easy to set up a comparison during the transition

Checked the API using curl/merry and the summary is clear, icon "clear-night" in the middle of the day. Same request via HA brings very slightly different data - but always seems to be raining

image

Expected behavior

Expecting the same output from the API for both merry, curl and HA

Actual behavior

HA always seems to be raining

API Endpoint

Production

Location

Ystad, Sweden

Other details

Turned on debug logging in HA but only got 2 or 3 lines to say "success" fetching data

Troubleshooting steps

liquidblack commented 1 week ago

Added a couple of json dumps for both merry and curl - very different answers for the same location (edited lat/long to "near" my location)

merry.json curl.json

cloneofghosts commented 1 week ago

I wonder if this is related to the weird results people have been reporting recently. (See #229) I checked your location in my browser and it's showing Cloudy at the moment with "precipIntensity": 0.0197, (it needs to be 0.02mm/h or higher to show the rain icon)

Maybe this was something that @alexander0042 fixed or maybe like the other issue it's coming and going based on which server you get.

cloneofghosts commented 1 week ago

@liquidblack Are you still having this issue? There were some API updates yesterday which should have solved this issue.

cloneofghosts commented 5 days ago

Haven't heard anything and it looks like the API updates from a few days ago solved this issue.