[REQUEST] Weather from different site than weather.com

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Marx1 Offline
Fan
Posts: 309
Joined: Jan 2011
Reputation: 3
Post: #1
Hello
Weather in Dharma is tied to weather.com site, but it doesn't have weather from all cities on the world. Is it possible to make script/plugin which will replace default plugin with one from different site?

The simplest I would like to display is to show this on screen:
http://new.meteo.pl/php/meteorogram_list...me=Gliwice
find quote
ameinild Offline
Senior Member
Posts: 106
Joined: May 2010
Reputation: 0
Post: #2
I think it would be good to use AccuWeather as an option, as it seems to have considerably more cities in all countries..

[Image: widget]

on XBMC 10.1 Dharma
Ubuntu 10.04.1 LTS - XBMCLive
from FreeNAS 8.0-Release
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #3
yes, we support weather add-ons. badly documented though i'm sure, should be some examples out in the wild.
find quote
Marx1 Offline
Fan
Posts: 309
Joined: Jan 2011
Reputation: 3
Post: #4
OK i see in settings of weather that there can be different provider from weather.com. I click "get more" but nothing happens. Can you please be more specific about how to add another provider of weather data?
I see sth about xbmc.python.weather but no example exist.
(This post was last modified: 2011-01-10 16:53 by Marx1.)
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #5
that's the where. but nobody has written any other services, so you first have to write yourself one...
find quote
Marx1 Offline
Fan
Posts: 309
Joined: Jan 2011
Reputation: 3
Post: #6
I'm programmer but I completely don't know how to start. First I don't know if I need plugin or script (I suspect script because plugin has his own menu). I've read I need to learn python - no problem. But I need example of such a script, no weather script exists so I need any other script which is most similair to weather script.
Edit: Ok i defined XML with entrypoint and i see in XBMC my script. It was easy. Now I need to know how weather script provides content. Does it completely replace weather.com and so I need to make GUI?
(This post was last modified: 2011-01-10 22:24 by Marx1.)
find quote
darkscout Offline
Posting Freak
Posts: 2,145
Joined: Jul 2008
Reputation: 12
Post: #7
Weather.gov should provide more than enough information in about any format you want.

[Image: aeKO.jpeg]
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
find quote
Marx1 Offline
Fan
Posts: 309
Joined: Jan 2011
Reputation: 3
Post: #8
the problem I have is not how to download weather information, but how those information sent to XBMC. Simply doing script xml with entrypoint xbmc.python.weather will cause to show this script in system weather settings and allow to choose it instead of the deafult one weather.com. Now I need the guts - default.py script which download data (seems easy because there are many examples of scrapers) and in some way display those data.
I think that there are some conventions which I need to fulfill to make my script's python code compatible with weather plugins standard.
I suspect that I need to read location form parameters table, and return some form of datatable with weather data. I don't think I need to make full GUI because there would be no sense make entrypoint specifically for weather plugin.
So I need to know where I can read locations and how to return weather data.

Edit: there is already python library for weather checking at
http://code.google.com/p/python-weather-api/
so it seems even simpler.
But I need help how to pass data to xbmc
(This post was last modified: 2011-01-11 10:56 by Marx1.)
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #9
http://forum.xbmc.org/showthread.php?tid=52034
find quote
Marx1 Offline
Fan
Posts: 309
Joined: Jan 2011
Reputation: 3
Post: #10
I know this thread. I downloaded XBMC4XBOX-Weather.zip, but this plugin in one year old and doesn't fit Dharma. It's full featured plugin with his own GUI and doesn't use xbmc.python.weather extension point. I hope using this extensions point allow to only pass data and doesn't need to make GUI
find quote