Weather Channel APi change

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Palvarez Offline
Junior Member
Posts: 3
Joined: Nov 2011
Reputation: 0
Post: #11
Can you use Yahoo's Api?

http://developer.yahoo.com/weather/#terms
find quote
Sranshaft Online
Posting Freak
Posts: 1,335
Joined: Dec 2008
Reputation: 19
Location: Melbourne, Australia
Post: #12
Palvarez Wrote:Can you use Yahoo's Api?

http://developer.yahoo.com/weather/#terms

Sure could and this is really where, as Spiff suggested, removing weather from the main core of XBMC and moving it to addons would shine. That way XBMC, as a whole, isn't tied to one specific weather source and the user can choose where to fetch the information depending on what they feel offers the best forecasts for their particular location.

[Image: watched-fanart.jpg]
(This post was last modified: 2011-11-07 00:01 by Sranshaft.)
find quote
jimk72 Offline
Senior Member
Posts: 148
Joined: Jan 2005
Reputation: 0
Post: #13
Sranshaft Wrote:Oh, I fully realize that. Just giving an example of how easy it is to grab the info from Google. I'm sure someone with a little more knowledge in C++ wouldn't have any trouble at all converting it. Smile

I will def look into it. I have all the code inplace for weather.com so it should be just a matter of adjusting to the new file downloaded.

Thanks!
find quote
PatrickBateman Offline
Posting Freak
Posts: 1,643
Joined: Mar 2011
Reputation: 15
Location: Another Earth
Post: #14
@spiff

Is there any indication as to when this will be removed from xbmc or in the mean time is there any known workaround to allow users to disable the weather from sending requests as it's currently searching for requests causing "busy" to appear and those requests are obviously using the old non Functioning Api.

Because of this network activity I receive a small but annoying amount of slowdown when navigating the home screen.

Are there any work arounds I could use form the time being..

If this is a skin related issue, just ignore this as I have also posted a request in the skin thread regarding removal of weather too.

Thanks in advance,

Win7
Xbmc pre Eden nighties 5th nov
Default weather plugin
find quote
locomot1f Offline
Fan
Posts: 435
Joined: Mar 2011
Reputation: 1
Location: ohio
Post: #15
or even accuweather.com

yeah, lots of choices!
find quote
Rygrath Offline
Fan
Posts: 365
Joined: Oct 2010
Reputation: 7
Post: #16
PatrickBateman Wrote:@spiff

Is there any indication as to when this will be removed from xbmc or in the mean time is there any known workaround to allow users to disable the weather from sending requests as it's currently searching for requests causing "busy" to appear and those requests are obviously using the old non Functioning Api.

Because of this network activity I receive a small but annoying amount of slowdown when navigating the home screen.

Are there any work arounds I could use form the time being..

If this is a skin related issue, just ignore this as I have also posted a request in the skin thread regarding removal of weather too.

Thanks in advance,

Win7
Xbmc pre Eden nighties 5th nov
Default weather plugin

Credit to ReducedToZero for finding this.

The quick fix is to modify the relevant bit of guisettings.xml to look like

Code:
Code:
<weather>
        <areacode1></areacode1>
        <areacode2></areacode2>
        <areacode3></areacode3>
        <currentlocation></currentlocation>
        <script></script>
        <scriptsettings></scriptsettings>
    </weather>

Just open up guisettings.xml, search for "<weather>" and erase the info that's in there to make it look like the above.

Basically you're removing the settings for the built-in weather app which should cause XBMC from looking up the info.

Being the Dev forum, probably not the best place to post "how-to's", but thought people will be looking here quite a bit for an answer to that question. Apologies if it's out of place.
find quote
hentai23 Offline
Fan
Posts: 649
Joined: Sep 2010
Reputation: 0
Location: another universe ..it would seem xD
Post: #17
let me know yall once we get the weather back and fully workin with weather plus addon, cause atm i only get complete weather forecast with the 7 day option -.-'

and sometimes the temperatures arent correct -.-'
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,181
Joined: Nov 2003
Reputation: 82
Post: #18
https://github.com/xbmc/xbmc/pull/530

changes needed to current add-ons;

there's no internal area codes any longer - it's all up to the addon.

this means
1) it has to set the property 'Locations' to the number of configured locations.
2) it has to always set all locations as properties 'Location1' 'Location2' 'Location3' etc.

this also taps into the current localization stuff for weather. this means that your strings should be according to id's 11-17, 71-89, 370-395, 1396-1450

temperatures need to be returned in celsius, as a straight number

new info label: current.winddirection. thus, current.wind should be a straight number in kmh, and winddirection 'N/S/E/W/SW/etc'.

change in parameters: instead of passing in the area code as argv[1] in the addon, it now only passes a number, e.g. '2'. this means the second location.

accuweather 503'd my ass after some dev'ing so i couldn't test it with a "real" add-on, just my script.weatherminus hack Wink

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Sranshaft Online
Posting Freak
Posts: 1,335
Joined: Dec 2008
Reputation: 19
Location: Melbourne, Australia
Post: #19
Excellent work Spiff! We should hopefully see an increase in weather-type addons. Thank a lot mate. Smile

[Image: watched-fanart.jpg]
find quote
hentai23 Offline
Fan
Posts: 649
Joined: Sep 2010
Reputation: 0
Location: another universe ..it would seem xD
Post: #20
i sure hope somebody releases an killer weather addon , i want weather back !!! -.-'


they really fd up with the move they made -.-'
find quote