•   
  • 1
  • 25
  • 26
  • 27
  • 28
  • 29(current)
Release Yahoo! Weather
The Yahoo! Weather add-on throws errors in Kodi 17 and 18. It seems something changed on the end of the Yahoo Weather API breaking this Kodi add-on. It seems to be the variable for the precipitationProbability.

The log file contains these entries: 
Quote:ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: 'precipitationProbability'
Traceback (most recent call last):
    File "/storage/.kodi/addons/weather.yahoo/default.py", line 284, in <module>
        forecast(location, locationid)
    File "/storage/.kodi/addons/weather.yahoo/default.py", line 141, in forecast
        properties(data, loc, locid)
    File "/storage/.kodi/addons/weather.yahoo/default.py", line 188, in properties
        set_property('Current.Precipitation'     , str(data['observation']['precipitationProbability']) + '%')
KeyError: 'precipitationProbability'
-->End of Python script error report<--

@ronie : Is it possible to fix and release a new version of this add-on? It's probably the one of the most used add-on on Kodi  Laugh
Reply
(2020-06-08, 10:29)Bruur Wrote: The Yahoo! Weather add-on throws errors in Kodi 17 and 18. It seems something changed on the end of the Yahoo Weather API breaking this Kodi add-on. It seems to be the variable for the precipitationProbability.

The log file contains these entries: 
Quote:ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: 'precipitationProbability'
Traceback (most recent call last):
    File "/storage/.kodi/addons/weather.yahoo/default.py", line 284, in <module>
        forecast(location, locationid)
    File "/storage/.kodi/addons/weather.yahoo/default.py", line 141, in forecast
        properties(data, loc, locid)
    File "/storage/.kodi/addons/weather.yahoo/default.py", line 188, in properties
        set_property('Current.Precipitation'     , str(data['observation']['precipitationProbability']) + '%')
KeyError: 'precipitationProbability'
-->End of Python script error report<--

@ronie : Is it possible to fix and release a new version of this add-on? It's probably the one of the most used add-on on Kodi  Laugh

I heard it's being replaced in Kodi 19 with "Multi Weather" so it's days are numbered anyway.
Reply
thanx for the heads-up. i'l submit a fix to the addon repo.

the weather.multi addon in v19 also uses yahoo, so i'll fix that one as well.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2020-06-08, 14:20)ronie Wrote: thanx for the heads-up. i'l submit a fix to the addon repo.

the weather.multi addon in v19 also uses yahoo, so i'll fix that one as well.

Thanks for the fix in advance! Your an unsung hero!
Reply
Hi, having some trouble with my fanart. I use Kodi 18.6 and have Yahoo weather 5.0.6.

I have a problem where my weather (single fanart pack by default) gets displayed incorrectly. For example in my location it is now cloudy and 23:33 (or 11:33pm but I use 24h format in kodi).

The fanart shown for cloudy at 23:33 is fanart file #26 but this is for daytime as daylight is shown in the picture. The correct picture would be fanart file #27 because that one is for nighttime. I feel like it doesn't know day from night. I haven't found anything in my log about yahoo weather.
It happens on the estuary skin as well and I haven't touched the fanart files.
Can someone give me some pointers?
Reply
#26 (cloudy) applies to both day and night.
https://developer.yahoo.com/weather/docu...html#codes
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2020-06-30, 23:56)ronie Wrote: #26 (cloudy) applies to both day and night.
https://developer.yahoo.com/weather/docu...html#codes

Ah that's a bummer. But now I have the weather condition "scattered showers" and it's showing me fanart #39 which is scattered showers/day. While I think it should be fanart #45 which is scattered showers/night. These numbers correspond with the numbers found in your link. Not sure why this happens.

Reinstalled and seems to be working fine now. Thanks for your help!
Reply
  •   
  • 1
  • 25
  • 26
  • 27
  • 28
  • 29(current)



Logout Mark Read Team Forum Stats Members Help
Yahoo! Weather1
This forum uses Lukasz Tkacz MyBB addons.