Kodi Community Forum

Full Version: Automatic reaction to variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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-
Sounds doable with some scripting, sure.