Kodi Community Forum

Full Version: Weather Underground
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2014-05-10, 21:37)YurixAnd Wrote: [ -> ]Hi
I'm use raspbmc (Rasperry Pi + XBMC).

Code:
22:13:35 T:2750411840   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: could not convert string to float:
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/weather.wunderground/default.py", line 642, in <module>
                                                forecast(location, locationid)
                                              File "/home/pi/.xbmc/addons/weather.wunderground/default.py", line 156, in forecast
                                                properties(data,loc,locid)
                                              File "/home/pi/.xbmc/addons/weather.wunderground/default.py", line 218, in properties
                                                update = time.localtime(float(data['current_observation']['observation_epoch']))
                                            ValueError: could not convert string to float:
                                            -->End of Python script error report<--

this is full debug log (level 2)

thx, could you please follow the instructions in the first post on how to create a debug log?
(you need to enable logging in the addon as well)
weather.underground crashes.

XBMC 13.0
Win 7 x64
weather.underground 3.0.4
reporting location / settings:

Code:
<settings>
    <setting id="Animate" value="false" />
    <setting id="Debug" value="true" />
    <setting id="Enabled" value="true" />
    <setting id="Location1" value="Wheeler AAF, Hawaii" />
    <setting id="Location1id" value="zmw:96854.7.99999" />
    <setting id="Location2" value="" />
    <setting id="Location2id" value="" />
    <setting id="Location3" value="" />
    <setting id="Location3id" value="" />
    <setting id="Location4" value="" />
    <setting id="Location4id" value="" />
    <setting id="Location5" value="" />
    <setting id="Location5id" value="" />
    <setting id="Weekend" value="0" />
    <setting id="Zoom" value="10" />
</settings>

default.py crashes on first running the script. Debug log is here:
http://xbmclogs.com/show.php?id=201675

scott s.
.
(2014-05-15, 01:23)scott967 Wrote: [ -> ]weather.underground crashes.

confirmed.
looks like they made some changes to their api.

i'll look into it.
Image

XBMC 13.0 (Release)
Wunderground 3.0.4
Either something is wrong with the weather subsystem or it's hot as he__ outside!!
(2014-05-15, 02:14)ac0mputerguru Wrote: [ -> ]Either something is wrong with the weather subsystem or it's hot as he__ outside!!

Looks like I should be dead!
(2014-05-07, 21:19)ronie Wrote: [ -> ]thanx for the log files!

could you test if v3.0.4 fixes this issue?
weather.wunderground-3.0.4.zip

I'm Running 3.0.4, still getting Script Failed : Weather Underground
Using Gotham 13, Aeon MQ5 on a Windows 8 Machine, any ideas?
(2014-05-15, 01:38)ronie Wrote: [ -> ]
(2014-05-15, 01:23)scott967 Wrote: [ -> ]weather.underground crashes.

confirmed.
looks like they made some changes to their api.

i'll look into it.

Excellent, I thought I was imagining things but it gives me a script failed error, I can of course provide a debug log as soon as I get that machine booted, though its a 3.0.4 but on Helix compiled with all of yesterdays merges.
Issue is triggered when the machine is on idle and when I pull it out the screensaver and home menu loads the kai pops up with error.
open ~/.xbmc/addons/weather.wunderground/default.py with a editor
change all occurences of

Code:
[31:-4]

against

Code:
[28:-4]

These are the lines 191, 204, 310, 363, 437, 483.

Works again
(2014-05-15, 10:15)_BJ1 Wrote: [ -> ]open ~/.xbmc/addons/weather.wunderground/default.py with a editor
change all occurences of

Code:
[31:-4]

against

Code:
[28:-4]

These are the lines 191, 204, 310, 363, 437, 483.

Works again

Thanks, work perfect...
i've pushed an update to the addon repo.
you should receive the fix within the next couple of hours.
Possible point of confusion (PPOC) that we might need to make clear if I am correct....

Frodo current version = 2.04
Gotham current version = 3.05

Is this correct?
(2014-05-15, 16:26)flhthemi Wrote: [ -> ]Possible point of confusion (PPOC) that we might need to make clear if I am correct....

Frodo current version = 2.04
Gotham current version = 3.05

Is this correct?

yup.
(2014-05-15, 11:56)ronie Wrote: [ -> ]i've pushed an update to the addon repo.
you should receive the fix within the next couple of hours.

3.0.4 crashed, received auto update, restarted, and 3.0.5 is working. fixed.

scott s.
.
How come I haven't received an update? Is it because I disabled Weather Underground after it started giving me errors? I since have gone to a different weather service since the script errors happened. Where do I get the updated 3.0.5 version if I don't ever get an update?

Edit: NVM. I will get it from github and install manually.

3.0.5 working beautifully. Thanks Ronie!