Page 1 of 2
[?] Does weather still work??
Posted: Wed Nov 18, 2015 4:15 pm
by sketch2k278
Every time I try to update the weather with my location it just hangs, causing me to reboot xbmc4xbox (in some cases restart my xbox)
[?] Does weather still work??
Posted: Wed Nov 18, 2015 6:04 pm
by Dom DXecutioner
Works fine for me, I'm in the US and have set up 3 cities with no issues.
You might need to upload a debug log somewhere and provide a link so someone can take a look at what's going on, otherwise we're unable to speculate.
http://www.xbmc4xbox.org.uk/forum/viewtopic.php?t=65
Re: [?] Does weather still work??
Posted: Wed Nov 18, 2015 11:48 pm
by NOTTHESAME
I was gonna post tgis thought it was only me i also need to reboot the xbox, my search for location hangs
Re: [?] Does weather still work??
Posted: Thu Nov 19, 2015 12:10 am
by Dom DXecutioner
Again, no debug log, no way to tell... Shouldn't be a hard concept to grasp.
Re: [?] Does weather still work??
Posted: Thu Nov 19, 2015 4:31 am
by Dom DXecutioner
So, i decided to check for myself (since it seems people want everything to be spoon fed with a golden spoon), while it fetches the data for locations that have already been setup, the search functionality no longer works at the weather.com because they have deactivated their service...
Try pasting the link below, which is how xbmc fetches locations, and you'll see the resulting page...
Code: Select all
http://xoap.weather.com/search/search?where=92555
Sooo, i guess we're out of luck!
Dom DXecutioner
Re: [?] Does weather still work??
Posted: Wed Nov 25, 2015 8:16 pm
by r32crazy01
Looks like the next best option now the above has been retired is the Yahoo weather API.
Code: Select all
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20geo.places%20where%20text%3D%22Auckland%22&format=xml
Re: [?] Does weather still work??
Posted: Wed Nov 25, 2015 9:44 pm
by tim619
If I understood correct, the service for finding locations of weather.com was shut down, the actual weather service still works.
A quick sniff yields:
Code: Select all
http://dsx.weather.com/x/v2/web/loc/gm%5E/%28CITY_NAME%29
Where CITY_NAME needs to be quoted e.g. urllib.quote('CITY_NAME')
For example:
http://dsx.weather.com/x/v2/web/loc/gm% ... Angeles%29
For results in different language:
http://dsx.weather.com/x/v2/web/loc/de_ ... Angeles%29
Nevertheless I prefer OpenWeatherMap as a service. If I find some time the next month, I'll have a look at it.
Re: [?] Does weather still work??
Posted: Wed Nov 25, 2015 11:38 pm
by r32crazy01
Does it return the results in XML? So the TinyXML library can parse it.
Re: [?] Does weather still work??
Posted: Wed Nov 25, 2015 11:40 pm
by Dom DXecutioner
r32crazy01 wrote:Does it return the results in XML? So the TinyXML library can parse it.
After checking it out, the results are return in json format...
Re: [?] Does weather still work??
Posted: Thu Nov 26, 2015 12:09 am
by r32crazy01
Maybe there is a argument for the output format in the address parameters available?
Re: [?] Does weather still work??
Posted: Thu Nov 26, 2015 9:19 am
by tim619
Weather.com closed all (or will close all) xml services on their site because traffic was too high.
Now that I
read only xml is valid for xbmc4xbox I would say there are only these options:
-Switch to an other weather host which supports xml (like openweathermap, check free option
here)
-Setup a php script on a server that opens the url I mentioned and returns equivalent xml. (If Python could be fired up from the xbox side before of course Python could do it, too.)
-Implement a python based way like Nuka suggested.
Re: [?] Does weather still work??
Posted: Thu Nov 26, 2015 5:50 pm
by byron
Maybe look at porting this?
http://forum.kodi.tv/showthread.php?tid=207110
I've made several attempts to get it running, but my python skills are only so-so. One thing I noticed when DanDare helped me get wunderground running a couple of years ago was that there will need to be some work done in our source code as well I think (grabbing locations should come from the addon and ours comes from xbmc4xbox if I'm not mistaken...something like that). I'd be more than happy to help here

Re: [?] Does weather still work??
Posted: Fri Nov 27, 2015 2:40 pm
by BuZz
Or get a modern HTPC with Kodi /me hides
Re: [?] Does weather still work??
Posted: Fri Nov 27, 2015 2:45 pm
by Dom DXecutioner
BuZz wrote:Or get a modern HTPC with Kodi /me hides
WTF?!!! :/
Re: [?] Does weather still work??
Posted: Fri Nov 27, 2015 2:51 pm
by BuZz
Re: [?] Does weather still work??
Posted: Fri Nov 27, 2015 7:02 pm
by RoyalX
Buzz, your kid must be older now and holding an Amiga 1200 in his hands instead of the C64.
Re: [?] Does weather still work??
Posted: Fri Nov 27, 2015 7:09 pm
by BuZz
She is 6 now, I just like this photo
Was taken on a Holiday in Cornwall. It often rains, so I thought I would take a screen and a C64 along with me. What a nerd!
Recently I have been losing to her at Mario Kart on the Wii.
Re: [?] Does weather still work??
Posted: Wed Dec 09, 2015 4:42 am
by sketch2k278
I think I was able to config the weather to my location...
simply by editing the guisettings in notepad++
just replace the current weather code with your location code and name, much easier thank I thought it would be
Re: [?] Does weather still work??
Posted: Tue Dec 22, 2015 6:50 pm
by tim619
Here is code that will most likely fix the weather problem. Unfortunately I don't have xdk installed. If no one can compile it I'll have to install it later
Changelog:
- Fixed location url, fixed weather api url
- Removed API Keys
Btw:
When changing dayf=7 to dayf=10 we could get some extra days forecast.
Re: [?] Does weather still work??
Posted: Tue Dec 22, 2015 9:11 pm
by tim619
I now compiled and tested it and can confirm that it works flawless.
Here is a testing build (33010) including weather fix and (I think) also scraper fixes.
In the picture you can see that getting location is working again, I also found a displaying bug marked in the picture.
What I said about the number of days is valid but the gui design seems to allow only ~5 days.