This is a mythtv-style enhanced weather plugin. This plugin allows you to track the weather at multiple locations. The plugin will accept any location that is recognized by the msnbc website. To find a location code for you, goto: http://www.msnbc.com/news/WEA_Front.asp?cp1=1
Another way to obtain a valid location code is to use the yahoo weather service and extract it from the URL. For example, to get one for a city in Germany, visit this url: http://de.weather.yahoo.com/Deutschland/index.html. It shows a list of available cities. If you choose Aachen, the URL will be http://de.weather.yahoo.com/GMXX/GMXX0154/index_c.html. This gives us a location code of GMXX0154 for Aachen, Germany.
The same procedure works on http://www.weather.com. Just search a large city near your location and grab the location code from the URL.
Plugin 'weather'
When you have the weather location code(s) you wish to use, add the following to your local_conf.py
plugin.activate('weather', level=45) PLUGIN_WEATHER_LOCATIONS = [ ("<val1>", <bool>, "<lang>", "<str>"), ("<val2>", <bool>, "<lang>", "<str>"), ... ]
Where
<val#> is a zipcode or valid location code (is this standardized?) and
<bool> convert to SI Units (1) or do not convert (0) and
<str> is a custom name you wish to use for this location.
The example below demonstrates using zipcodes, SI units, and location codes:
plugin.activate('weather', level=45) PLUGIN_WEATHER_LOCATIONS = [ ("USNC0559", 1, "en", "Home sweet home"), ("12603", 0), ("15235"), ("GMXX0154", 1, "de", "Aachen, Germany") ]
Plugin 'oneclick'
Add the following to your local_conf.py
plugin.activate('oneclick', level=45) ONECLICK_LOCATIONS = [ ("<loc>", [metric], [mapuri], [location name]), ("<loc>", [metric], [mapuri], [location name]), ... ]
Where
<loc> is a zipcode or an airport code
- [metric] (1 == convert to SI Units; 0 == do not convert)
- [mapuri] is the map's url, doesn't parse the page for a map url
- [location name] is a custom name you wish to use for this location
For example:
plugin.activate('oneclick', level=45) ONECLICK_LOCATIONS = [ ("BOXX0005", [1], None, 'Minsk'), ("15235"), ]