Re-built this after shelving the WeatherUnderground version I built many years ago. Now working with OpenWeather except the values reported in Imperial are not correct.
For example, for city 5333180, and settings.h set to "IS_METRIC = false", the forecast is saying I'm going to get 11.89" of rain. When "IS_METRIC = true", the forecast gives 11.89mm of rain.
Looking at the string returned from OpenWeatherMap, it looks like it is not giving me the right results for rain estimates. Even when I compare the numbers for other weather field between metric and imperial, they don't compare.
Any idea what is going on?
Here's the metric query (my API blocked out)
http://api.openweathermap.org/data/2.5/forecast?id=5333180&appid=xxxxxxxx&units=metric&lang=en
And one line of the forecast results
{"temp":7.83,"feels_like":5.87,"temp_min":7.83,"temp_max":7.83,"pressure":1011,"sea_level":1011,"grnd_level":1005,"humidity":91,"temp_kf":0},"weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}],"clouds":{"all":100},"wind":{"speed":3.05,"deg":286,"gust":6.39},"visibility":7208,"pop":1,"rain":{"3h":11.89},"sys":{"pod":"d"},"dt_txt":"2023-02-25 00:00:00"},{"dt":1677294000,"main":
and here's the imperial query
http://api.openweathermap.org/data/2.5/forecast?id=5333180&appid=xxxxxxxx&units=imperial&lang=en
and the same line of forecast results
{"temp":46.09,"feels_like":42.57,"temp_min":46.09,"temp_max":46.09,"pressure":1011,"sea_level":1011,"grnd_level":1005,"humidity":91,"temp_kf":0},"weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}],"clouds":{"all":100},"wind":{"speed":6.82,"deg":286,"gust":14.29},"visibility":7208,"pop":1,"rain":{"3h":11.89},"sys":{"pod":"d"},"dt_txt":"2023-02-25 00:00:00"},{"dt":1677294000,"main":
So the rain in both is 11.89, wind speed and gust in metric results is less than half that of Imperial, which isn't right either.
Anyone know what's going on? Is there a setting I need to make in my OpenWeatherMap account?