2015-01-21, 00:58
Hi,
I'm trying to display the outdoor temperature in Kodi home screen.
So far that works, but I want it to auto refresh every 5 minutes or lets say every minute to follow the clock.
Here's how I have done it.
outdoor.xml (This file is being updated every 5 minutes.)
Home.xml
The problem is that the only way to refresh the $VAR is to reboot
Any help would be very much appreciated!
/Patric
I'm trying to display the outdoor temperature in Kodi home screen.
So far that works, but I want it to auto refresh every 5 minutes or lets say every minute to follow the clock.
Here's how I have done it.
outdoor.xml (This file is being updated every 5 minutes.)
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<includes>
<variable name="outdoor">
<value>1,0</value>
</variable>
</includes>
Home.xml
PHP Code:
...
<control type="label">
<description>outdoor</description>
<posx>20r</posx>
<posy>60</posy>
<width>200</width>
<height>15</height>
<align>right</align>
<aligny>center</aligny>
<font>font10</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>Outdoor: $VAR[outdoor] °C</label>
<include>Window_OpenClose_Animation</include>
<animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
</control>
...
The problem is that the only way to refresh the $VAR is to reboot
Any help would be very much appreciated!
/Patric