[MOD] Home Weather Mod for Aeon that uses the the new Weather Plugin API
#1
Thumbs Up 
This let's you choose 4 day (default), 7 day, weekend or 36 hour forecasts for the home weather popup.


Requires the Weather.com Plus Plugin which you can get with the SVN Repo Installer.

Image
Image
Image
Image

...just don't forget to enable it in settings after installing it.
Image


To use:
1. grab this package and copy folders into your aeon folder. http://xbmc-addons.googlecode.com/svn/pa...er_mod.zip
2. add this to font.xml.
PHP Code:
<!-- Widgets -->
    <
font>
   <
name>Font_WidgetLarge</name>Font_WeatherTempSmallHigh
   
<filename>aeon_title.ttf</filename>
   <
size>50</size>
 </
font>  
 <
font>
   <
name>Font_WidgetMedium</name>Font_WeatherPrecip
   
<filename>aeon_title.ttf</filename>
   <
size>45</size>
 </
font>  
    <
font>
   <
name>Font_WidgetSmall</name>Font_WeatherTempSmallLow
   
<filename>aeon_title.ttf</filename>
   <
size>40</size>
 </
font
3. add this to includes.xml
PHP Code:
<include file="Widget_Weather.xml" /> 
4. edit home.xml
PHP Code:
<include condition="!StringCompare(Weather.Plugin,weather.com plus)">Objects_WeatherPopup</include>
 <include 
condition="StringCompare(Weather.Plugin,weather.com plus)">Widget_Weather</include> 
5. edit customisation.xml after id="500"
PHP Code:
<control type="radiobutton" id="501">
   <include>
Objects_SettingsDefaultRadioButton</include>
   <
label>31254</label>
   <
onclick>Skin.Reset(WeatherWidget36Hour)</onclick>
   <
onclick>Skin.Reset(WeatherWidgetWeekend)</onclick>
   <
onclick>Skin.Reset(WeatherWidget7Day)</onclick>
   <
selected>[!Skin.HasSetting(WeatherWidget36Hour) + !Skin.HasSetting(WeatherWidgetWeekend) + !Skin.HasSetting(WeatherWidget7Day)] | !StringCompare(Weather.Plugin,weather.com plus)</selected>
            <
enable>!Skin.HasSetting(noweatherpopup)</enable>
  </
control>
  <
control type="radiobutton" id="507">
   <include>
Objects_SettingsDefaultRadioButton</include>
   <
label>31257</label>
   <
onclick>Skin.SetBool(WeatherWidget7Day)</onclick>
   <
onclick>Skin.Reset(WeatherWidget36Hour)</onclick>
   <
onclick>Skin.Reset(WeatherWidgetWeekend)</onclick>
   <
selected>Skin.HasSetting(WeatherWidget7Day)</selected>
            <
enable>!Skin.HasSetting(noweatherpopup) + StringCompare(Weather.Plugin,weather.com plus)</enable>
  </
control>
  <
control type="radiobutton" id="504">
   <include>
Objects_SettingsDefaultRadioButton</include>
   <
label>31255</label>
   <
onclick>Skin.SetBool(WeatherWidget36Hour)</onclick>
   <
onclick>Skin.Reset(WeatherWidgetWeekend)</onclick>
   <
onclick>Skin.Reset(WeatherWidget7Day)</onclick>
   <
selected>Skin.HasSetting(WeatherWidget36Hour)</selected>
            <
enable>!Skin.HasSetting(noweatherpopup) + StringCompare(Weather.Plugin,weather.com plus)</enable>
  </
control>
  <
control type="radiobutton" id="505">
   <include>
Objects_SettingsDefaultRadioButton</include>
   <
label>31256</label>
   <
onclick>Skin.SetBool(WeatherWidgetWeekend)</onclick>
   <
onclick>Skin.Reset(WeatherWidget36Hour)</onclick>
   <
onclick>Skin.Reset(WeatherWidget7Day)</onclick>
   <
selected>Skin.HasSetting(WeatherWidgetWeekend)</selected>
   <
enable>!Skin.HasSetting(noweatherpopup) + StringCompare(Weather.Plugin,weather.com plus)</enable>
  </
control
6. add these to strings.xml
PHP Code:
<string id="31254">- 4 DAY FORECAST</string>
 <
string id="31255">- 36 HOUR FORECAST</string>
 <
string id="31256">- WEEKEND FORECAST</string>
 <
string id="31257">- 7 DAY FORECAST</string>
 
 <
string id="31630">4 DAY</string>
 <
string id="31631">7 DAY</string>
 <
string id="31632">36 HOUR</string>
 <
string id="31633">WEEKEND</string>
 <
string id="31634">ALERT(S)</string

PS! This uses the new Weather Plugin API in XBMC and the Weather.com Plus Plugin for that API.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
Screenshots look nice Nod
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#3
Thanks for this, Nuka!
Reply
#4
looks great - thanks Nuka
Reply
#5
Oooo nice
Reply
#6
i get this when try to do your mod ?

Code:
23:38:01 T:2962391040 M:7971979264  NOTICE: Exception in thread Thread-5:
                             Traceback (most recent call last):
                               File "../Python/Lib/threading.py", line 442, in __bootstrap
                                 self.run()
                               File "/Users/andyblac/Library/Application Support/XBMC/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 351, in run
                                 self.method()
                               File "/Users/andyblac/Library/Application Support/XBMC/plugins/weather/weather.com plus/resources/lib/xbmcplugin_weather.py", line 179, in _fetch_map_list
                                 current_map = maps[ 0 ][ 0 ]
                             IndexError: list index out of range
Reply
#7
hi Nuka, is it possible to show the humidity percents along side of the temp? currently it shows rain %?
Reply
#8
@andyblac, on xbox? there is an xbmc bug if you use the weather plugin and are launching the recentlyadded.py script, they can error. on windows it crashes xbmc, there is a fix on trac, but it may not be a proper fix since they didn't commit it.

@logictester, http://forum.xbmc.org/showthread.php?tid...her+plugin all the properties are listed in the first post. 36 hour humidity is not available.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#9
Nuka1195 Wrote:@andyblac, on xbox? there is an xbmc bug if you use the weather plugin and are launching the recentlyadded.py script, they can error. on windows it crashes xbmc, there is a fix on trac, but it may not be a proper fix since they didn't commit it.

@logictester, http://forum.xbmc.org/showthread.php?tid...her+plugin all the properties are listed in the first post. 36 hour humidity is not available.

nope i'm on mac, i think it's not finding my location.
Reply
#10
it's finding your location or else you have errors for each section. the info for 36 hour or weekend should still work.

works fine for me on osx, what is your location.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#11
Nuka1195 Wrote:it's finding your location or else you have errors for each section. the info for 36 hour or weekend should still work.

works fine for me on osx, what is your location.

nope get nothing in those(36 hour / Weekend), but the 4 day works no problem. if i set it to London, United Kingdom. it works fine, but if i set it to Spennymoor, United Kingdom. dont see any changes (it stays London and after i restart (after setting Spennnymoor to default) i get those errors and nothing displays

Andy.
Reply
#12
spennymoor, UK is not found at www.weather.com even though the city does show in the search field. it would use uk.weather.com. the pages are different so you would need a new plugin.

maybe some enterprising uk resident will make one.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#13
@Nuka1195

Hi,

your Mod looks very nice, so i would give it a try. But i'm new to the Aeon skin. Can you please tell me how i can add the weather.com plugin. Under Mediastream i can add plugins and scripts via menu, but in Aeon i can't find it.

Thanx

Efty
Reply
#14
efty.edge Wrote:@Nuka1195

Hi,

your Mod looks very nice, so i would give it a try. But i'm new to the Aeon skin. Can you please tell me how i can add the weather.com plugin. Under Mediastream i can add plugins and scripts via menu, but in Aeon i can't find it.

Thanx

Efty

use svn repo installer
Reply
#15
@logictester

Thanx for the advice, but under Mediastream i found the Repo Installer under Settings/Plugins. Nod Here in Aeon i didn't find the Plugins. Sad So i can't use the Repo Installer to install the Weather.com Plugin. Shocked

Can you please tell me where i find the Plugins under Aeon!?

Thanx again.

Efty
Reply

Logout Mark Read Team Forum Stats Members Help
[MOD] Home Weather Mod for Aeon that uses the the new Weather Plugin API0