Yahoo weather API returning bad value for pressure

Tags: #<Tag:0x00007f386f896f80> #<Tag:0x00007f386f896e18>

Has anyone had a problem with the Yahoo weather API returning a bad value for pressure? I’m using the weather binding but I can confirm the problem is with Yahoo. Here is what is returned when I post the request in a browser:

{"query":{"count":1,"created":"2016-04-08T06:03:34Z","lang":"en-US","results":{"channel":{"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"title":"Yahoo! Weather - Scotts Valley, CA, US","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-12797547/","description":"Yahoo! Weather for Scotts Valley, CA, US","language":"en-us","lastBuildDate":"Thu, 07 Apr 2016 11:03 PM PDT","ttl":"60","location":{"city":"Scotts Valley","country":"United States","region":" CA"},"wind":{"chill":"57","direction":"225","speed":"11.27"},"atmosphere":{"humidity":"80","pressure":"33152.76","rising":"0","visibility":"25.91"},"astronomy":{"sunrise":"6:44 am","sunset":"7:37 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions for Scotts Valley, CA, US at 10:00 PM PDT","lat":"37.072689","long":"-122.009842","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-12797547/","pubDate":"Thu, 07 Apr 2016 10:00 PM PDT","condition":{"code":"26","date":"Thu, 07 Apr 2016 10:00 PM PDT","temp":"13","text":"Cloudy"},"forecast":[{"code":"26","date":"07 Apr 2016","day":"Thu","high":"20","low":"10","text":"Cloudy"},{"code":"39","date":"08 Apr 2016","day":"Fri","high":"18","low":"10","text":"Scattered Showers"},{"code":"39","date":"09 Apr 2016","day":"Sat","high":"19","low":"10","text":"Scattered Showers"},{"code":"28","date":"10 Apr 2016","day":"Sun","high":"18","low":"8","text":"Mostly Cloudy"},{"code":"30","date":"11 Apr 2016","day":"Mon","high":"20","low":"7","text":"Partly Cloudy"},{"code":"30","date":"12 Apr 2016","day":"Tue","high":"20","low":"6","text":"Partly Cloudy"},{"code":"39","date":"13 Apr 2016","day":"Wed","high":"17","low":"6","text":"Scattered Showers"},{"code":"30","date":"14 Apr 2016","day":"Thu","high":"16","low":"5","text":"Partly Cloudy"},{"code":"34","date":"15 Apr 2016","day":"Fri","high":"19","low":"5","text":"Mostly Sunny"},{"code":"30","date":"16 Apr 2016","day":"Sat","high":"23","low":"6","text":"Partly Cloudy"}],"description":"<![CDATA[<img src=\"http://l.yimg.com/a/i/us/we/52/26.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR />Cloudy\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Thu - Cloudy. High: 20Low: 10\n<BR /> Fri - Scattered Showers. High: 18Low: 10\n<BR /> Sat - Scattered Showers. High: 19Low: 10\n<BR /> Sun - Mostly Cloudy. High: 18Low: 8\n<BR /> Mon - Partly Cloudy. High: 20Low: 7\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-12797547/\">Full Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n(provided by <a href=\"http://www.weather.com\" >The Weather Channel</a>)\n<BR />\n]]>","guid":{"isPermaLink":"false"}}}}}}

Look at the value reported for pressure in mb. It is way too high. Any ideas?

Regards,

~petev

It looks like others have found this Yahoo weather bug. Do you have any idea if the value is correct but just using a different unit of measure than what it is reporting?

I couldn’t find any units that made sense for the value reported. I tried all units of pressure here for 1 atmosphere. The value reported by Yahoo appears to be about 33 times too large. Foot of Head was similar, but off by 1000 (maybe mili foot of head? LOL). The reported data claims pressure is in mb. I setup Wunderground as a provider and got the correct data.

Regards,

~petev

I think maybe decreasing dependence on the Yahoo weather API may simply be the best course of action. It’s been acting up lately, and I’m not overflowing with confidence about its reliability going forward. Thanks for the report.

1 Like

Pressure value on Yahoo weather api is still way wrong. Even their web weather page shows 944 mbar for Canberra right now, when the Bureau of Meteorology page shows its actually 1022…

I can confirm that yahoo is pulling in “mb” not “in”. I have had my openHab, up and running on a RPI B 2+ since around the beginning of the year. I add the Weather Binding around 2/1/16, and all was good. Around the end of April is when i notice a change. I have just lived with the change for now as I am working on some other bindings as well.