Solved Having the capability to execute command/script on xbmc CEC status change
#1
Hi,

I'm looking for the capability to execute some command when through CEC status I detect that xbmc is the active source and TV is on or when xbmc is not active source or tv if off.

Use case :

1)I'm using raspberry so I can't use xbmc sleep mode associated to wakeOnlan Addon
first usage : with TV on, when xbmc become active source => send magic packet to wakeUp my NAS

2) I'm using 2 profiles (children/adult) to avoid children to access inapropriate movies/tvshow.
the second use case would be : When TV goes off or when xbmc is no more the active source => restart xbmc or force profile to children

thanks
Reply
#2
Without being sure, I think this can't be done. However look for xbmc boolean conditions (http://wiki.xbmc.org/index.php?title=Lis...conditions). You can easily check XBMC for a X idle time:

System.IdleTime(time) Returns true if XBMC has had no input for ?time? amount of seconds.

You can easily create a service addon that checks for idletime and wakeup/shutdown your NAS accordingly.
Not sure if there is a better solution to do this.
Reply
#3
I would have a very similar proposition.
As you I am using a raspberry pi to run XMBC on.

Most of the time I leave the PI running and just turn off the monitor.
I would like to be able to switch the monitor off and on via the XBMC phone remote app - pretty much for convenience - not to have to get up out of bed when finished watching.

At the moment this is possible via external Relays operated via shell script.

There doesn't seem to be any solution to map a custom button onto the XBMC remote app?!

Any help would be greatly appreciated.
Reply
#4
Solved by using http://forum.xbmc.org/showthread.php?tid=151011
Reply
#5
(2014-09-02, 07:25)kulgan Wrote: Solved by using http://forum.xbmc.org/showthread.php?tid=151011

How did you use that plugin to detect when XBMC's CEC status changed? It doesn't seem to support that.

thanks
Reply
#6
I would need the same functionality. How did you solve it?
Reply

Logout Mark Read Team Forum Stats Members Help
Having the capability to execute command/script on xbmc CEC status change0