[RELEASE] World Weather Online Addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Omegatron Offline
Senior Member
Posts: 273
Joined: Jan 2011
Reputation: 0
Location: The Netherlands
Post: #76
hi guys,

is it possible to get long term forecast for this addon? i would like to see 7 days instead of 4.

Though I noticed that long term forecast on worldweatheronline.com is 15 days instead of 7. Is this a reason why its not integrated?

XBMC: XBMC 12.3 Frodo, Aeon MQ5, Win7 x64
find quote
argh! Offline
Fan
Posts: 354
Joined: Jun 2011
Reputation: 0
Post: #77
I just reinstalled XBMC and when I search for cities to add in this Add-on, I get no resutls, no matter what I enter. It worked fine on my old install..

Addon version 1.0.8
Frodo 12.2
Windows x64

city - Fort McMurray, AB.

I am able to find it on the World Weather Online website, but full city name, or Postal Code. Neither of which gives results in XBMC.
find quote
Oxize Offline
Senior Member
Posts: 112
Joined: Dec 2012
Reputation: 0
Post: #78
I get for a few months an error "script failed!:weather.worldweatheronline". reinstalling the plugins doesnt help. Neither Underground, World Weather, etc are working.

I get no readings. The temperature stays at 0c.

How can i fix this? I am using World weather version 1.0.8. on Frodo 12.2

When i removed the location, it doesnt find my city anymore. Neither if try other big cities like amsterdam. Whats happening?


Code:
09:57:42 T:4236   DEBUG: ### [World Weather Online] - clear_properties
09:57:42 T:4236   DEBUG: ### [World Weather Online] - refresh_locations
09:57:42 T:4236    INFO: Scriptresult: Success
09:57:42 T:4972   DEBUG: script.favourites: script stopped
09:57:42 T:4972    INFO: Scriptresult: Success
09:57:42 T:3108   DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0",  "id": 1, "method": "VideoLibrary.GetMusicVideos", "params": {"properties": ["title", "artist", "playcount", "year", "plot", "genre", "runtime", "fanart", "thumbnail", "file", "streamdetails", "resume"],  "limits": {"end": 20}, "sort": {"method": "random"}}}
09:57:42 T:3108   DEBUG: JSONRPC: Calling videolibrary.getmusicvideos
09:57:42 T:3108   DEBUG: CVideoDatabase::RunQuery took 0 ms for 4 items query: select * from musicvideoview
09:57:43 T:4236    INFO: Python script stopped
09:57:43 T:4236   DEBUG: Thread XBPyThread 4236 terminating
09:57:43 T:5000   DEBUG: waiting for python thread 14 (C:\Users\Oxize\AppData\Roaming\XBMC\addons\weather.worldweatheronline\default.p​y) to stop
09:57:43 T:5000   DEBUG: python thread 14 (C:\Users\Oxize\AppData\Roaming\XBMC\addons\weather.worldweatheronline\default.p​y) destructed
09:57:43 T:4972    INFO: Python script stopped
09:57:43 T:4972   DEBUG: Thread XBPyThread 4972 terminating
09:57:43 T:5000   DEBUG: waiting for python thread 11 (C:\Users\Oxize\AppData\Roaming\XBMC\addons\script.favourites\default.py) to stop
09:57:43 T:5000   DEBUG: python thread 11 (C:\Users\Oxize\AppData\Roaming\XBMC\addons\script.favourites\default.py) destructed
09:57:43 T:5116   DEBUG: LocalizeStrings: no strings.po file exist at C:\Users\Oxize\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\resources\l​anguage\English, fallback to strings.xml
09:57:43 T:5072   DEBUG: CZipManager::GetZipList - Processing zip://special%3a%2f%2fxbmc%2fmedia%2fweather.zip/
(This post was last modified: 2013-09-28 10:04 by Oxize.)
find quote
SirKhalid Offline
Junior Member
Posts: 14
Joined: Jan 2011
Reputation: 0
Post: #79
(2013-09-28 09:41)Oxize Wrote:  I get for a few months an error "script failed!:weather.worldweatheronline". reinstalling the plugins doesnt help. Neither Underground, World Weather, etc are working.

I get no readings. The temperature stays at 0c.

How can i fix this? I am using World weather version 1.0.8. on Frodo 12.2

I am also getting this.
find quote
Cyrano2 Offline
Junior Member
Posts: 10
Joined: Sep 2013
Reputation: 0
Post: #80
I have the same problem.Any idea to solve?
find quote
Martijn Offline
Team Kodi
Posts: 11,590
Joined: Jul 2011
Reputation: 167
Location: Dawn of time
Post: #81
You could try
https://github.com/amet/weather.worldweatheronline

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
HTPC Brasil Offline
Junior Member
Posts: 2
Joined: Jul 2013
Reputation: 0
Post: #82
It seems that World Weather Online has changed its free API used by the XBMC addon. World Weather Online has also blocked the original account that was used to retrieve information. So, it is necessary to get another user key to retrieve data.

I have already got another key, which i used in the code below. You can use it, or, if you want, you can get you own key here:
http://developer.worldweatheronline.com/member/register

To fix the problem, do this (linux code):

1. change to the addon directory :
cd ~/.xbmc/addons/weather.worldweatheronline

2. Backup your original addon script:
cp default.py default.py.bak

3.Edit the addon script:
nano default.py

4. Find these lines:

DEVELOPER_KEY = "75b745967f114856110511"
NUMBER_OF_DAYS = 4
SEARCH_URL = "http://free.worldweatheronline.com/feed/search.ashx?key=%s&query=%s&format=xml"
LOCATION_URL = "http://free.worldweatheronline.com/feed/weather.ashx?q=%s&format=xml&num_of_days=%i&key=%s"

5. Replace by these:

DEVELOPER_KEY = "xqm663h7z67etx9bku8k8rbn"
NUMBER_OF_DAYS = 4
SEARCH_URL = "http://api.worldweatheronline.com/free/v1/search.ashx?key=%s&query=%s&format=xml"
LOCATION_URL = "http://api.worldweatheronline.com/free/v1/weather.ashx?q=%s&format=xml&num_of_days=%i&key=%s"

6. Save and Exit : ctrl+O ctrl+X

You are ready to go. Enjoy.

P.S. Note that I used my key ( "xqm663h7z67etx9bku8k8rbn" ) in the script. If you prefer you can replace by your own key.
P.S.2 If anything goes wrong, you can restore the original script you have backup.

It seems that World Weather Online has changed its free API used by the XBMC addon. World Weather Online has also blocked the original account that was used to retrieve information. So, it is necessary to get another user key to retrieve data.

I have already got another key, which i used in the code below. You can use it, or, if you want, you can get you own key here:
http://developer.worldweatheronline.com/member/register

To fix the problem, do this (linux code):

1. change to the addon directory :
cd ~/.xbmc/addons/weather.worldweatheronline

2. Backup your original addon script:
cp default.py default.py.bak

3.Edit the addon script:
nano default.py

4. Find these lines:

DEVELOPER_KEY = "75b745967f114856110511"
NUMBER_OF_DAYS = 4
SEARCH_URL = "http://free.worldweatheronline.com/feed/search.ashx?key=%s&query=%s&format=xml"
LOCATION_URL = "http://free.worldweatheronline.com/feed/weather.ashx?q=%s&format=xml&num_of_days=%i&key=%s"

5. Replace by these:

DEVELOPER_KEY = "xqm663h7z67etx9bku8k8rbn"
NUMBER_OF_DAYS = 4
SEARCH_URL = "http://api.worldweatheronline.com/free/v1/search.ashx?key=%s&query=%s&format=xml"
LOCATION_URL = "http://api.worldweatheronline.com/free/v1/weather.ashx?q=%s&format=xml&num_of_days=%i&key=%s"

6. Save and Exit : ctrl+O ctrl+X

You are ready to go. Enjoy.

P.S. Note that I used my key ( "xqm663h7z67etx9bku8k8rbn" ) in the script. If you prefer you can replace by your own key.
P.S.2 If anything goes wrong, you can restore the original script you have backup.
(This post was last modified: 2013-10-21 02:13 by HTPC Brasil.)
find quote
harbingerofdoom Offline
Member
Posts: 97
Joined: Aug 2009
Reputation: 0
Post: #83
thanks brasil, i have a slightly different problem now- its just sitting there with a screen that says fetching forecast info [my zip code] and never moves on past that.
any pointers on where to look for the problem?
find quote
Oxize Offline
Senior Member
Posts: 112
Joined: Dec 2012
Reputation: 0
Post: #84
Same here.

Weather Underground can fetch forecast info perfectly, but World Weather Online keeps searching infinite. Would be nice if the forecast would work again.

The lines which HTPCBrasil uses dont work for me, i dont get any available information. I get script errors and "N/A" warnings for my location with those lines!

I am using atm these lines.

DEVELOPER_KEY = "Njh2dGpwYWJ1OXg5YW1yY21rbnZiaHBq"
NUMBER_OF_DAYS = 4
SEARCH_URL = "http://api.worldweatheronline.com/free/v1/search.ashx?key=%s&query=%s&format=xml"
LOCATION_URL = "http://api.worldweatheronline.com/free/v1/weather.ashx?q=%s&format=xml&num_of_days=%i&key=%s"

But these only give me standard info, and NO forecast.

How can i fix the forecast part? I tried with an own key, but then i get errors and N/A warnings again.
(This post was last modified: 2013-12-08 18:56 by Oxize.)
find quote
Post Reply