2010-12-12, 02:30
Hello all,
I am trying to add a window on the home page that would display the real temperature outside my home read from my weatherstation.
Using an application called open2300, I am able to read this temperature outside of XBMC. This data is then available to XBMC either in a file or via HTTP (XML, JSON, whatever).
I created an addon that reads this file/url, and this works fine. Now I am struggling to have the skinning engine use this data. I was thinking about running the addon at startup and then store the temperature inside some XBMC global setting. (For the Java programmers out there, this would be the equivalent of System.setProperty("temp","5°C"), which make the "temp" property available to anuthing in the JVM)
I have found that addons can done this with the following label:However in my case, I am not running within the context of an addon.
Any idea? (or any suggestion for a better approach to this problem)?
Thank you.
V.
I am trying to add a window on the home page that would display the real temperature outside my home read from my weatherstation.
Using an application called open2300, I am able to read this temperature outside of XBMC. This data is then available to XBMC either in a file or via HTTP (XML, JSON, whatever).
I created an addon that reads this file/url, and this works fine. Now I am struggling to have the skinning engine use this data. I was thinking about running the addon at startup and then store the temperature inside some XBMC global setting. (For the Java programmers out there, this would be the equivalent of System.setProperty("temp","5°C"), which make the "temp" property available to anuthing in the JVM)
I have found that addons can done this with the following label:
Code:
<label>$ADDON[script.cdartmanager 32067]</label>
Any idea? (or any suggestion for a better approach to this problem)?
Thank you.
V.