Hi Ronie - am considering alternative weather providers since WU is questionable long term and figured I would give this new add on a spin.. I get the following error when I startup or refresh weather data.
Code:
17:59:02.117 T:4840 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: a float is required
Traceback (most recent call last):
File "C:\Users\Mario\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 474, in <module>
forecast(locationname, locationdeg)
File "C:\Users\Mario\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 250, in forecast
daily_props(daily_weather)
File "C:\Users\Mario\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 369, in daily_props
set_property('Daily.%i.UVIndex' % (count+1), str(int(round(item['uv']))) + '%')
TypeError: a float is required
-->End of Python script error report<--
xml:
<settings version="2">
<setting id="API">****REMOVED****</setting>
<setting id="Debug">true</setting>
<setting id="LatLon">true</setting>
<setting id="Location1">Woodburn (US)</setting>
<setting id="Location1deg" default="true">['45.1512', '-122.857']</setting>
<setting id="Location2" default="true"></setting>
<setting id="Location3" default="true"></setting>
<setting id="Location4" default="true"></setting>
<setting id="Location5" default="true"></setting>
<setting id="MAPAPI">***REMOVED***</setting>
<setting id="WMaps">true</setting>
<setting id="Zoom">4</setting>
</settings>
I also have a feature request and I really hope it is something that can be added at some point, but I thank you for the consideration at the very least.
I love the weather alert feature of WU and I think that is now the only add on that actually supports populating those properties for skin use.
Could you possibly add that feature?
weather.gov api info:
https://forecast-v3.weather.gov/documentation
also
https://alerts.weather.gov/
Thanks for help with the error and considering adding alerts support
Thanks,
Mario