Extend the scraper interpreter to include weather or use python plugin API for skins?
#16
Thumbs Up 
Nuka1195 Wrote:http://trac.xbmc.org/ticket/5815
Thank you Nuka1195! Cool

Everyone can read more about this new "Weather Plugins support via Python Plugins" API here:
http://forum.xbmc.org/showthread.php?p=344505

Note that this is something that skinners first needs to add to their skins for it to work!


Examples (screenshots from modded PM3.HD skin):

Image Image Image Image Image
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.
Reply
#17
Question 
I was wondering if there is anyway of changing where XBMC looks for the weather at. I know back in the day I changed it from weather.com to theweatherunderground.com on the xbox, but I can't find the xml file that has the weather http code in it anywhere with the windows version. The reason why I ask this is because weather.com just doesn't have all the weather locations that weatherunderground.com has. Plus it is easier to use weatherunderground. They also have a doppler as well. Their site is set up similar to weather.com, so it is easy to make the transition to it. So if anyone would help, that would be awesome. Thanks
Reply
#18
Lightbulb 
Thats kind of an interesting question! I think someone around here will be able to answer it for you. But that guy with the left side of his head will tell you that you need a "debuggermachine" thing.

Good Luck!

- 2 Bunny
Reply
#19
Yes it is now possible if to change the weather source in XBMC to a other website than weather.com as long as you first write a weather plugin (in python) for the specific weather site you want to use as a source, ...you see, this is a brand new feature, thus the only weather plugin available so far is for weather.com (however this plugin does have doppler radar support).

For more information on how to write a such plugin see:
http://forum.xbmc.org/showthread.php?tid=52035
and:
http://forum.xbmc.org/showthread.php?p=344505

Also note currently no skin supports this yet by default so you you will also need to edit the skins file, like Nuka1195 describes in the above linked threads.

lunerceli Wrote:I know back in the day I changed it from weather.com to theweatherunderground.com on the xbox
As far as I know that has never been possible before in XBMC, so I think you must be confusing it with some other application.
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.
Reply
#20
I would like to see an addon to another weather forecast supplier. I live in Norway where only the "big" cities are listed and I live too far away to get an accurate weather forecast.
I belive xbmc is using weather.com, but I would suggest using http://www.yr.no. See example (http://www.yr.no/place/Nord-_og_Mellom-Amerika/).
Mythtv has a script available on this page http://svn.mythtv.org/trac/browser/branc...?rev=25190

What do you think? Yr.no lists "every" little place on earth.
Reply
#21
Never thought about this. Might be a good idea because the whether.com one is a real mess and breaks regularly.

To translate what the page says:
All data is free to use. covers 6.3 million places

xml api accessed like this:
http://www.yr.no/place/Japan/Okinawa/Nago/forecast.xml

2506 most important ones, with corresponding api url:
http://fil.nrk.no/yr/viktigestader/verda.txt
The rest you can find at geonames.org
Reply
#22
weather can take any source you want you just need to write a "scraper" for it and the site you want maybe someone else can give you the details on how to achieve this but it is already possible
Reply
#23
Great idea
Now We need someone who wants to write a "scraper
Reply
#24
So how exactly do you do this? Ive been search around for some time now and the only thing i found out is that there exists an extension point called xbmc.python.weather
Reply
#25
damn this sounds great. hope some skilled ppl work this out.
Currently addicted to Night. Watch this teaser and join the forum.
Get and request your ClearLOGOs from the ClearLOGO site and forum
Try my changes to the Night skin if u like how they looks
Reply
#26
ventech Wrote:So how exactly do you do this? Ive been search around for some time now and the only thing i found out is that there exists an extension point called xbmc.python.weather

this may help but obviously it goes to the extreme and fills tonnes of stuff not used by default and not shown in many skins
though I'm not sure its up to date

http://xbmc-addons.googlecode.com/svn/tr...r.com plus
Reply
#27
Link in norwegian. http://www.yr.no/verdata/
They present weather data in xml files.. easy to parse for your convenience.
Reply
#28
Is it even possible to give your own search result? Too me it looks hardcoded. If i select my plugin as the provider it will still search and list results from weather.com.
The whole point of this addon was to get more locations; not the data itself..
Reply

Logout Mark Read Team Forum Stats Members Help
Extend the scraper interpreter to include weather or use python plugin API for skins?1