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
[REQUEST] Weather from different site than weather.com
Marx1
Senior Member Posts: 239 Joined: Jan 2011 Reputation: 2 |
2011-01-10 14:49
Post: #1
|
| find quote |
ameinild
Senior Member Posts: 106 Joined: May 2010 Reputation: 0 |
2011-01-10 16:10
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..
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2011-01-10 16:16
Post: #3
yes, we support weather add-ons. badly documented though i'm sure, should be some examples out in the wild.
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 |
Marx1
Senior Member Posts: 239 Joined: Jan 2011 Reputation: 2 |
2011-01-10 16:46
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
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2011-01-10 16:47
Post: #5
that's the where. but nobody has written any other services, so you first have to write yourself one...
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 |
Marx1
Senior Member Posts: 239 Joined: Jan 2011 Reputation: 2 |
2011-01-10 21:02
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
Posting Freak Joined: Jul 2008 Reputation: 12 |
2011-01-10 23:35
Post: #7
Weather.gov should provide more than enough information in about any format you want.
![]() Code: GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%'; |
| find quote |
Marx1
Senior Member Posts: 239 Joined: Jan 2011 Reputation: 2 |
2011-01-10 23:46
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
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2011-01-11 11:19
Post: #9
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 |
Marx1
Senior Member Posts: 239 Joined: Jan 2011 Reputation: 2 |
2011-01-11 14:47
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 |

![[Image: aeKO.jpeg]](http://i.imm.io/aeKO.jpeg)
Search
Help