Broken Yahoo! Weather - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155) +---- Thread: Broken Yahoo! Weather (/showthread.php?tid=169410) |
RE: Yahoo! Weather - blueribb - 2016-12-25 (2016-12-25, 08:27)Jeffers24 Wrote:(2016-12-24, 19:57)blueribb Wrote:(2016-12-24, 19:49)Jeffers24 Wrote: My version is also 3.3.2, it is working fine on my WIN10 laptop. Fairless Hills PA My Windows 10 Desktop (Kodi 16.1, Yahoo Weather 3.3.2) will display incorrect temps about 95% of the time (when refreshed). My (2) Intel NUC's running OpenElec 6.0.3 seem to be OK today after they updated the addon (Update: They both started to fail this evening (Dec 25th)). Same problem. RE: Yahoo! Weather - Jeffers24 - 2016-12-26 All looks OK on my WIN10 Laptop, Kodi stable 16.1, Yahoo Weather 3.3.2. Refreshed a lot of times, exited and reloaded Kodi. I suspect it's a Yahoo/Location issue rather than a Yahoo Weather addon issue. Add some other locations, London, New York................ see how they perform As I am in Congleton UK (ignore Congleton sub-menu item in pic) I do not know what your temps should be :-) RE: Yahoo! Weather - jdig4240 - 2017-01-01 My Yahoo weather is v4.2.4 from Kodi repo and has been useless for the last few weeks. Shows crazy temps like 384 degrees. Surprised this is the only option for weather for Kodi withoutout api key stuff RE: Yahoo! Weather - Jeffers24 - 2017-01-01 (2017-01-01, 01:43)jdig4240 Wrote: My Yahoo weather is v4.2.4 from Kodi repo and has been useless for the last few weeks. Shows crazy temps like 384 degrees. Surprised this is the only option for weather for Kodi withoutout api key stuff Interesting, my version is 3.3.2, which Ronie released to stop Yahoo Addon crashing when Yahoo did not return a forecast. Are you sure you are using Yahoo? RE: Yahoo! Weather - jdig4240 - 2017-01-01 (2017-01-01, 07:14)Jeffers24 Wrote:(2017-01-01, 01:43)jdig4240 Wrote: My Yahoo weather is v4.2.4 from Kodi repo and has been useless for the last few weeks. Shows crazy temps like 384 degrees. Surprised this is the only option for weather for Kodi withoutout api key stuff Thats what it shows: Its gonna be a HOT one this week!!! RE: Yahoo! Weather - Jeffers24 - 2017-01-01 From my WIN10 laptop, I don't know why we appear to have different versions, maybe Ronnie can shed some light, this is my installed version:- RE: Yahoo! Weather - ronie - 2017-01-01 my only new years resolution: ignore any post that doesn't include a Debug Log. RE: Yahoo! Weather - Jeffers24 - 2017-01-01 (2017-01-01, 21:19)jdig4240 Wrote:(2017-01-01, 07:14)Jeffers24 Wrote:(2017-01-01, 01:43)jdig4240 Wrote: My Yahoo weather is v4.2.4 from Kodi repo and has been useless for the last few weeks. Shows crazy temps like 384 degrees. Surprised this is the only option for weather for Kodi withoutout api key stuff I didn't install Yahoo Weather service from the Kodi Repository, I installed it from the Weather settings:- RE: Yahoo! Weather - jdig4240 - 2017-01-01 (2017-01-01, 21:30)Jeffers24 Wrote: From my WIN10 laptop, I don't know why we appear to have different versions, maybe Ronnie can shed some light, this is my installed version:- Maybe because im using Krypton? RE: Yahoo! Weather - jdig4240 - 2017-01-01 (2017-01-01, 21:34)ronie Wrote: my only new years resolution: ignore any post that doesn't include a Debug Log. Well im not getting any errors, just bad data, but I could get you a log if you would like. RE: Yahoo! Weather - Jeffers24 - 2017-01-01 (2017-01-01, 21:38)jdig4240 Wrote:(2017-01-01, 21:30)Jeffers24 Wrote: From my WIN10 laptop, I don't know why we appear to have different versions, maybe Ronnie can shed some light, this is my installed version:- Possibly, I'm using 16.1, try installing it from the weather settings if Krypton will allow RE: Yahoo! Weather - sup191 - 2017-01-03 jdig4240, What skin are you using? I would have PM'd you, but it's not letting me for some reason... Thanks! RE: Yahoo! Weather - jdig4240 - 2017-01-03 (2017-01-03, 05:41)sup191 Wrote: jdig4240, Eminence RE: Yahoo! Weather - Medlir - 2017-01-05 It's due to Yahoo's own API returning results of null and how the plugin handles that response. Their own Weather API example page is intermittently throwing nulls when you click the Test button here: https://developer.yahoo.com/weather/ Basically, the forecast method calls get_weather, then if it gets a response, parses it, then calls the properties method... where it checks if the data is as expected... but if it's not (results response is null) it never sets the properties storing the weather data to anything at all. And presumably then Kodi just pulls garbage data when it tries to getProperty those values, but I really still don't know where it's getting them from. Confirmed in the debug log that when getting a null response it shows random data. This being on 3.3.2. The best and simplest solution is for Yahoo to just fix their API. One simple fix though that seems to work, and is super easy to make by anyone who doesn't mind editing the Python, would be to call clear() as an else condition of the first long if check in the properties method... if we get that far, but have no data, it will then set everything to it's default N/A values. You still don't have data... but it's not random crazy data, it's nice known default data. I wrote some code to do that, but also to store the last known good data for a location in addon_data, and on null response pull that last known stale data back in. Submitted a pull request on github for it. RE: Yahoo! Weather - jdig4240 - 2017-01-05 (2017-01-05, 07:46)Medlir Wrote: It's due to Yahoo's own API returning results of null and how the plugin handles that response. Their own Weather API example page is intermittently throwing nulls when you click the Test button here: Nice!! Thanks for the clarification. |