Kodi Community Forum
Automatic reaction to variable - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Automatic reaction to variable (/showthread.php?tid=62047)



Automatic reaction to variable - ChristianW - 2009-11-20

I'm still planning (in my head) a car-interface for XBMC, and for that I was wondering if I could make the XBMC gui do something automatically as a variable changes?

If I somehow (python script?) manage to create a variable that updates every 5 seconds with my current speed (extracted from gps), could I use this variable to trigger a "scene change" in the ui?

For example, if the variable excedes 20 (km/h), XBMC pops up a simple control-screen containing only play,pause,next etc with BIG buttons. To make it safe® to use when driving... You should not be able to close this screen without slowing the car down...

The same concept could be used with a light-sensor to dim/brighten the screen depending on the light-situation...

-C-


- jmarshall - 2009-11-21

Sounds doable with some scripting, sure.