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.