Kodi Community Forum
Broken OpenWeatherMap Extended - 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 OpenWeatherMap Extended (/showthread.php?tid=207110)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


OpenWeatherMap Extended - ronie - 2014-10-23

OpenWeatherMap Extended

DEPRECATED! (see https://forum.kodi.tv/showthread.php?tid=207110&pid=2764716#pid2764716)
PLEASE USE THEĀ WEATHERBIT.IO ADDON INSTEAD.


If you have issues with this addon, please please (with sugar on top) post a Debug Log!

1 enable debug logging in kodi
2 enable logging in the openweathermap addon settings
3 restart kodi
4 go to the weather window
5 wait a few minutes
6 post the entire kodi.log file on http://paste.ubuntu.com/





Here are some screenshots to give you an idea on what's available...

Current Forecast and daily forecast up to 14 days:
Image

36Hour (Today-Tonight-Tomorrow) forecast:
Image

Weekend forecast:
Image

3-Hourly forecast for the next 2 days:
Image


RE: OpenWeatherMap Extended - Dilligaf - 2014-10-24

Get a script error when starting:

20:38:45 T:3176 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'thread_street' referenced before assignment
Traceback (most recent call last):
File "C:\Users\mike\AppData\Roaming\XBMC\addons\weather.openweathermap.extended\default.py", line 960, in <module>
forecast(location, locationid, locationdeg)
File "C:\Users\mike\AppData\Roaming\XBMC\addons\weather.openweathermap.extended\default.py", line 306, in forecast
thread_street.join()
UnboundLocalError: local variable 'thread_street' referenced before assignment
-->End of Python script error report<--


RE: OpenWeatherMap Extended - sveni_lee - 2014-10-24

just test on my Helix Alpha 4, Win 7 System.
Works perfect! Maps looking good..
Thanks for the graet job....


RE: OpenWeatherMap Extended - Bitboy - 2014-10-24

Hi ronie,

do you have stats how many users used wunderground?
i ask because free usage of open weathermap is limited to 3000 hits per hour or 4 000 000 hits per day.

http://openweathermap.org/price


RE: OpenWeatherMap Extended - .:B:. - 2014-10-24

Liking it, seems to be working well - as a drop-in replacement even - on XBMC 13.2 and Aeon Nox 5.1.5.

Thank you!


RE: OpenWeatherMap Extended - ronie - 2014-10-25

(2014-10-24, 13:28)Bitboy Wrote: Hi ronie,

do you have stats how many users used wunderground?
i ask because free usage of open weathermap is limited to 3000 hits per hour or 4 000 000 hits per day.

http://openweathermap.org/price

you mean 3000 per minute ;-)

with wunderground, we were close to 2 million calls a day at one point.
we manged to lower it to 1.5 million by disabling the addon by default and
making sure it didn't run on older xbmc installs anymore.


RE: OpenWeatherMap Extended - ronie - 2014-10-25

(2014-10-24, 01:26)Dilligaf Wrote: Get a script error when starting:

20:38:45 T:3176 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'thread_street' referenced before assignment
Traceback (most recent call last):
File "C:\Users\mike\AppData\Roaming\XBMC\addons\weather.openweathermap.extended\default.py", line 960, in <module>
forecast(location, locationid, locationdeg)
File "C:\Users\mike\AppData\Roaming\XBMC\addons\weather.openweathermap.extended\default.py", line 306, in forecast
thread_street.join()
UnboundLocalError: local variable 'thread_street' referenced before assignment
-->End of Python script error report<--

cool, exactly the kind of bug i'm interested in.

fixed in: weather.openweathermap.extended-0.0.2.zip


RE: OpenWeatherMap Extended - Dilligaf - 2014-10-25

(2014-10-25, 01:48)ronie Wrote: cool, exactly the kind of bug i'm interested in.

fixed in: weather.openweathermap.extended-0.0.2.zip

Seems to be working now, thanks.


RE: OpenWeatherMap Extended - black_eagle - 2014-10-25

Bug when changing location ??

Not sure if this is a general Kodi bug or an OpenWeatherMap bug, but it's with the weather addon I can replicate it so......

Helix 14 Alpha 5 built from git source today. OpenWeatherMap v 0.0.2, Confluence 2.5.4, OS - Ubuntu 14.04

Kodi is installed to a local directory, not system-wide and is running in portable mode.

Expected behaviour - When using the left blade to change locations (I have two), clicking on the up icon when showing the second location would wrap-around to the first location.

Actual behaviour - Kodi segfaults with a "AccessInit: hash collision: 3 for both 1 and 1" message in the terminal window.

Crashlog - http://pastebin.com/Gr0L5Scu

Debug log - http://pastebin.com/XA5iMeXD

@ronie, if its a general Kodi bug, I'll report it as such, but figured I would start here as I can reproduce it each time with this addon.


RE: OpenWeatherMap Extended - ronie - 2014-10-25

(2014-10-25, 21:31)black_eagle Wrote: Debug log - http://pastebin.com/XA5iMeXD

you're not using OpenWeatherMap Extended, but this addon: http://forum.xbmc.org/showthread.php?tid=180878


RE: OpenWeatherMap Extended - black_eagle - 2014-10-25

Ahh, OK. Having corrected that, issue still applies.

Quote:xbmc@Diamond:~/kodi$ ./bin/kodi -p
AccessInit: hash collision: 3 for both 1 and 1
Segmentation fault (core dumped)
Crash report available at /home/xbmc/kodi_crashlog-20141025_211756.log

debug log - http://pastebin.com/AZ6N16jb

Assuming if this is cross-addon that it's actually a bug in Kodi, as opposed to an addon.


RE: OpenWeatherMap Extended - Gade - 2014-10-25

Hi ronie.

This is amazing news!

Thanks a bunch for working so fast Smile

I will test this out with Rapier as soon as possible!

Cheers


RE: OpenWeatherMap Extended - ronie - 2014-10-26

(2014-10-25, 22:32)black_eagle Wrote: Assuming if this is cross-addon that it's actually a bug in Kodi, as opposed to an addon.

yeah, most likely.
i can't reproduce it though, running todays built on linux.


RE: OpenWeatherMap Extended - 1larryw - 2014-10-26

I have the add-on installed and running on 13.2 Gotham, an dinstalled the confluence skin update on Windows 7. I can't for the life of me, figure out how to switch the right pane views between forcasts, maps, etc. I don't see an option to change the view in the settings fly-out.

What am I missing?


*** UPDATE ***
Never mind! a quick exit and XBMC reload fixed everything. Looks good and seems to be working properly now.

L-Dub


RE: OpenWeatherMap Extended - im85288 - 2014-10-26

Maybe it is related to the clocks going back but I now get the following error:

10:50:16 T:140050796885760 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 "/storage/.xbmc/addons/weather.openweathermap.extended/default.py", line 963, in <module>
forecast(location, locationid, locationdeg)
File "/storage/.xbmc/addons/weather.openweathermap.extended/default.py", line 307, in forecast
hourly_props(hourly_weather, daynum)
File "/storage/.xbmc/addons/weather.openweathermap.extended/default.py", line 796, in hourly_props
if int(day_time) > 2:
ValueError: invalid literal for int() with base 10: ''
-->End of Python script error report<--