I thought I was going crazy and changed and item and broke my weather GUI’s… I think @rlkoshak might have mentioned something in this post here: Weather - Yahoo - Bad Request
I have no idea how to switch this back to C from F unfortunately.
Hi Florian,
sorry, for my late answer. I’v just tried Yahoo api again with following requests. With imperial units the pressure looks correct. But with metric ones (initialized with ‘c’ for Celsius) it’s still wrong as 2 years ago:
<http://query.yahooapis.com/v1/public/yql?format=json&q=SELECT * FROM weather.forecast WHERE u=‘f’ AND woeid=‘703274’>
-> pressure “977.0”
<http://query.yahooapis.com/v1/public/yql?format=json&q=SELECT * FROM weather.forecast WHERE u=‘c’ AND woeid=‘703274’>
-> pressure “33085.03”
Therefor weather-add on is correct but the response from Yahoo isn’t
My log shows Weather_Pressure changed from 32543.21 hPa to 32543.21 inHg.
In my sitemap, I have defined the following line:
Text item=Weather_Pressure label=“Air Pressure [%.0f hPa]”
This yields a value 1102039, which is still way off the charts. However, apparently a unit conversion has been performed. I conclude, that the input value is not provided in inches mercury. Any idea, which unit is used by yahoo Weather and which abbreviation has to be used within the square brackets in the items file?
I have no idea how Yahoo calculates the metric pressure value now. I tried some conversions but didn’t find a satisfying solution.
Maybe with a larger number of values a formula could be determined to get a more or less realistic pressure in hPa.