Release - OpenWeatherMap Extended

  Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ronie Offline
Team-Kodi Member
Posts: 13,120
Joined: Jan 2009
Reputation: 385
Post: #1
OpenWeatherMap Extended

The new OpenWeatherMap weather addon provides extensive weather information.

The addon is avialable through the addon repo.


Personal API Key
To use this addon, it is recommended to get your own api key and enter it in the addon settings.
This will allow you to use the addon without any restrictions. you can get your api key at: http://openweathermap.org/appid

No Personal API Key
If you don't supply a personal API key, the following restrictions apply to this addon:
It will only refresh the weather info for the current location 1 time per hour.
Reason for this is that we've receided a warning from OpenWeatherMap that our own API key is making too many calls.



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: IpSHrVQ.png]

36Hour (Today-Tonight-Tomorrow) forecast:
[Image: NEGrhRV.png]

Weekend forecast:
[Image: l13pZvh.png]

3-Hourly forecast for the next 2 days:
[Image: FzjTnBX.png]

Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ and Search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2017-02-05 16:51 by ronie.)
find quote
Dilligaf Offline
Posting Freak
Posts: 971
Joined: Dec 2008
Reputation: 44
Post: #2
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\defaul​t.py", line 960, in <module>
forecast(location, locationid, locationdeg)
File "C:\Users\mike\AppData\Roaming\XBMC\addons\weather.openweathermap.extended\defaul​t.py", line 306, in forecast
thread_street.join()
UnboundLocalError: local variable 'thread_street' referenced before assignment
-->End of Python script error report<--

If I have been of help, please add to my reputation as a way of saying thanks, it's free.
(This post was last modified: 2014-10-24 02:41 by Dilligaf.)
find quote
sveni_lee Offline
Fan
Posts: 537
Joined: Jan 2013
Reputation: 9
Post: #3
just test on my Helix Alpha 4, Win 7 System.
Works perfect! Maps looking good..
Thanks for the graet job....

Board: B85M-ITX
CPU: i3 4330
GPU: Geforce GTX 750ti
find quote
Bitboy Offline
Junior Member
Posts: 36
Joined: Dec 2013
Reputation: 2
Location: Germany
Post: #4
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
find quote
.:B:. Offline
Donor
Posts: 498
Joined: Mar 2010
Reputation: 1
Post: #5
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!

* D-Link DIR-860L rev B1, LEDE git :: HP Procurve V1410-8G switch
* LibreELEC: HTPC Gigabyte Brix GB-BXA8-5545 with CEC adapter, Sony KDL52-NX800 :: Desktop Phenom II X4 980 BE / AMD HD6950 / 23" Dell Full HD
* Debian Stretch x86_64: Celeron G1610, NFS/MySQL/ZFS server
* Blog
find quote
ronie Offline
Team-Kodi Member
Posts: 13,120
Joined: Jan 2009
Reputation: 385
Post: #6
(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.

Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ and Search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-Kodi Member
Posts: 13,120
Joined: Jan 2009
Reputation: 385
Post: #7
(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\defaul​t.py", line 960, in <module>
forecast(location, locationid, locationdeg)
File "C:\Users\mike\AppData\Roaming\XBMC\addons\weather.openweathermap.extended\defaul​t.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

Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ and Search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Dilligaf Offline
Posting Freak
Posts: 971
Joined: Dec 2008
Reputation: 44
Post: #8
(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.

If I have been of help, please add to my reputation as a way of saying thanks, it's free.
find quote
black_eagle Offline
Posting Freak
Posts: 1,815
Joined: Sep 2013
Reputation: 78
Location: East Yorkshire, UK
Post: #9
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.

Learning Linux the hard way !!
find quote
ronie Offline
Team-Kodi Member
Posts: 13,120
Joined: Jan 2009
Reputation: 385
Post: #10
(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

Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ and Search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote
black_eagle Offline
Posting Freak
Posts: 1,815
Joined: Sep 2013
Reputation: 78
Location: East Yorkshire, UK
Post: #11
Ahh, OK. Having corrected that, issue still applies.

Quote:[email protected]:~/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.

Learning Linux the hard way !!
find quote
Gade Offline
Skilled Skinner
Posts: 1,816
Joined: Jan 2013
Reputation: 61
Location: Copenhagen, Denmark
Post: #12
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
find quote
ronie Offline
Team-Kodi Member
Posts: 13,120
Joined: Jan 2009
Reputation: 385
Post: #13
(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.

Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ and Search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote
1larryw Offline
Junior Member
Posts: 2
Joined: Dec 2011
Reputation: 0
Post: #14
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
(This post was last modified: 2014-10-26 06:36 by 1larryw.)
find quote
im85288 Offline
Skilled Skinner
Posts: 1,438
Joined: Aug 2011
Reputation: 39
Location: United Kingdom
Post: #15
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<--
find quote
Post Reply