2009-11-23, 20:34
Is it possible to refresh the weather on demand from the home screen? I've added a submenu item to the main weather item (see picture below) but cannot work out what to call in the <onclick> tag? As far as I can tell, it only gets refreshed by default when you start XBMC - I tend to put my computer to sleep so it never appears to get updated.
I know it can be done as Showmix has a "Refresh" button in the dialog that appears when the main weather screen is activated (using code inside MyWeather.xml). Is it only possible from within MyWeather.xml?
Here's a snippet of my submenu code for the refresh item if that helps...
I know it can be done as Showmix has a "Refresh" button in the dialog that appears when the main weather screen is activated (using code inside MyWeather.xml). Is it only possible from within MyWeather.xml?
Here's a snippet of my submenu code for the refresh item if that helps...
Code:
...
...
<control type="button" id="40">
<description>refresh</description>
<include>Submenu_Button</include>
<label>Refresh</label>
<onclick>[color=green]What goes here???[/color]</onclick>
</control>
...
...