Kodi Community Forum
Broken Weather Underground - 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 Weather Underground (/showthread.php?tid=116668)



RE: Weather Underground - IgorA100 - 2017-05-27

Hi, ronie!
Recently there is an error:
Code:
22:29:49.821 T:140313311942400   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: invalid literal for int() with base 10: ''
                                            Traceback (most recent call last):
                                              File "/home/igora100/.kodi/addons/weather.wunderground/default.py", line 644, in <module>
                                                forecast(location, locationid)
                                              File "/home/igora100/.kodi/addons/weather.wunderground/default.py", line 158, in forecast
                                                properties(data,loc,locid)
                                              File "/home/igora100/.kodi/addons/weather.wunderground/default.py", line 406, in properties
                                                set_property('Weekend.%i.FeelsLike'            % (count+1), FEELS_LIKE(int(item['high']['celsius']), item['avewind']['kph'], item['avehumidity'], 'C') + TEMPUNIT)
                                            ValueError: invalid literal for int() with base 10: ''
                                            -->End of Python script error report<--
Addon v. 6.0.1
KODI v 17.3


RE: Weather Underground - ronie - 2017-05-28

hmm.. doesn't happen on my end.
mind providing a full Debug Log?


RE: Weather Underground - IgorA100 - 2017-05-28

It's strange, but it's working fine today.
Yesterday there were problems and after rebooting my server.
If the problem recurs, I'll post a full debug log.


RE: Weather Underground - Burke - 2017-06-09

Hi Ronie,

it started on my end to:

Used pastebin, hope that is ok.

https://pastebin.com/d8f0gmrb

Regards


RE: Weather Underground - smitchell6879 - 2017-07-10

this may have already been asked or answered. Has or does anyone use this with there own weather station? Or do anyone know of a temp prop runs on windows ten and logs data. Maybe able to write script to actually get info into kodi.


RE: Weather Underground - jmh2002 - 2017-07-12

I would use this method:

- use my own weather station
- send the data to weather underground like normal (for those with a PWS)
- add the PWS id to Kodi as described in my earlier posts in this thread


Weather Underground - iMak - 2017-07-21

Somehow the addon stopped working and it does not show data.


RE: Weather Underground - jmh2002 - 2017-07-21

Possibly a temporary server/api problem? I noticed a lack of data early this morning european time but it's back working now


Weather Underground - iMak - 2017-07-21

(2017-07-21, 08:44)jmh2002 Wrote: Possibly a temporary server/api problem? I noticed a lack of data early this morning european time but it's back working now

It was from my side in fact, my Internet provider is for some reason is limiting the Internet connection on Kodi. I'll need to talk to them.


RE: Weather Underground - zolcos - 2017-08-05

This plugin is abusing the API and might get our keys banned. Got this mail:

Hello,
Your wunderground API key (xxx) exceeded its allotted usage today by making 11 calls within a minute but the limit is 10.
We used one of your raindrops instead of disabling the key for the remainder of the day. You now have 29 remaining raindrops.
We check usage for 24-hour periods based on U.S. Eastern Time.
The plan you are registered for is Stratus - Developer, granting you 500 calls per day with 10 calls per minute limit. To upgrade your plan go to: http://www.wunderground.com/weather/api/d/xxx/edit.html
Details: exceededrate: maxrate: 11 (of 10)
Time: Mon, Jul 31, 2017 01:30 UTC
Thank you,
wunderground.com API Team


RE: Weather Underground - jmh2002 - 2017-08-05

The previous page of this thread is full of complete details regarding why this might be happening.

Mostly it seems it is because apart from the 1 call every 30 minutes to update the forecast, 3 extra calls are also made to retrieve the maps. This also applies even if you only mostly use a home screen widget just to see the temperature.

In addition many users now have multiple Kodi devices, so the API calls can multiply very fast. More than 2 Kodi devices on all the time will already exceed the 500 calls per day free API limit:

3 (devices) x 192 (4 calls every 30 mins, per device, per 24 hours) = 576 (Total calls to the API for 3 Kodi devices).

I agree that it does seem extremely wasteful to call the maps every 30 minutes when most users are probably only looking at the temperature as their regular use, and given that we lost one weather provider in the past for over using their API, I would support a suggestion that the maps are only refreshed when viewed or perhaps when the weather addon is actually opened.

This would enable each API key to support up to 10 devices (only 48 calls per device, per 24 hours), which should be more than enough for most users.

Ronie suggested on the previous page that he can't control this via the addon so I understood this to mean that maybe a change is needed in Kodi's background code?

Perhaps someone with more knowledge can make a pull request to the Kodi git (if that is what is required) to get this on an official to do list?


...paging Ronie Blush


RE: Weather Underground - zolcos - 2017-08-05

(2017-08-05, 09:40)jmh2002 Wrote: Mostly it seems it is because apart from the 1 call every 30 minutes to update the forecast, 3 extra calls are also made to retrieve the maps. This also applies even if you only mostly use a home screen widget just to see the temperature.
In addition many users now have multiple Kodi devices, so the API calls can multiply very fast. More than 2 Kodi devices on all the time will already exceed the 500 calls per day free API limit:
3 (devices) x 192 (4 calls every 30 mins, per device, per 24 hours) = 576 (Total calls to the API for 3 Kodi devices).
There must be something else happening here since I only have one Kodi device and it's the only thing using this key.
In my case it wasn't the total calls in a day that caused the warning, but that it made 11 calls in one minute.


RE: Weather Underground - nmyshkin - 2017-09-27

I can't seem to get the Hi/Low temps to display in the 10-day summary using the Estouchy skin. Anyone else with this issue/solution?


RE: Weather Underground - Ices - 2017-10-23

Hi I had to reinstall everything and now all of a sudden I notice my weather states 9 degrees Celsius. When I check on The Weather Underground web site for my area it states that it is 17.2 degrees. Why is there a difference of so much?


RE: Weather Underground - Karellen - 2017-10-23

Have you checked the settings in the add-ons page for your weather add-on? You could have a different city nominated.