2011-12-09, 05:40
Ok now that the weather system is based on add ons, I have downloaded Ronie's weather.wunderground and have started to hack (and I do mean hack!) a plugin to pull date from the Australian Bureau of Meteorology data.
https://github.com/bossanova808/bossanova808-xbmc-addons
Fair warning - I am entirely new to git AND python AND xbmc at a coding level. I may break things, have set up the repo stupidly etc. I really have no idea - help appreciated!
As every Aussie knows, the BOM is the only good weather data in Australia. Most other sources are off in both current and forecast decisions by several degrees at a minimum.
I have currently hardcoded (as these happen to be near me) at the top of default.py
Essendon Airport Current Observations
Melbourne Metro Forecast
************* Working & displayed in XBMC:
Current conditions
4 day for 'precis' forecast (missing the minimum for the current day as BOM don't supply that)
************* Not working:
Locations - currently hardcoded - the BOM use some highly obscure location IDs and for most users the best way will be to go to the BOM site and from there determine the best feed URLs and maybe input these URLs as a plug in setting? I can't really see how to map XBMC locations BOM IDs and quite frankly the BOM don't provide an API or even a decent index as far as I can tell...
Icons - I am not sure how this works in XBMC and I am not really sure what to map here, as there is no neat table of possible descriptions/forecasts from the BOM to work rom - it's 30 chars of free text I think.
Can anyone explain roughly how these icons work in XBMC and how one might map in a forecast of 'Thunderstorms then showers later' to an icon??
* I really am no expert at all in this and have very limited time so if anyone with Python and XBMC skills wants to run with this that would be awesome!!
@ronie or other XBMC dev - anyone want to run through the basics of a weather plugin, particularly the harder parts of icons/locations??
https://github.com/bossanova808/bossanova808-xbmc-addons
Fair warning - I am entirely new to git AND python AND xbmc at a coding level. I may break things, have set up the repo stupidly etc. I really have no idea - help appreciated!
As every Aussie knows, the BOM is the only good weather data in Australia. Most other sources are off in both current and forecast decisions by several degrees at a minimum.
I have currently hardcoded (as these happen to be near me) at the top of default.py
Essendon Airport Current Observations
Melbourne Metro Forecast
************* Working & displayed in XBMC:
Current conditions
4 day for 'precis' forecast (missing the minimum for the current day as BOM don't supply that)
************* Not working:
Locations - currently hardcoded - the BOM use some highly obscure location IDs and for most users the best way will be to go to the BOM site and from there determine the best feed URLs and maybe input these URLs as a plug in setting? I can't really see how to map XBMC locations BOM IDs and quite frankly the BOM don't provide an API or even a decent index as far as I can tell...
Icons - I am not sure how this works in XBMC and I am not really sure what to map here, as there is no neat table of possible descriptions/forecasts from the BOM to work rom - it's 30 chars of free text I think.
Can anyone explain roughly how these icons work in XBMC and how one might map in a forecast of 'Thunderstorms then showers later' to an icon??
* I really am no expert at all in this and have very limited time so if anyone with Python and XBMC skills wants to run with this that would be awesome!!
@ronie or other XBMC dev - anyone want to run through the basics of a weather plugin, particularly the harder parts of icons/locations??