2014-10-28, 22:34
Hi,
It would be good to have API commands to turn on and off the TV (and just the TV, not the HDMI adapter nor the Kodi system).
I'm already able to do so trough the terminal on the RaspberryPi, with the following commands:
And I believe Kodi already has some internal function to do so (I don't know if it uses cec-client), since it is already able to turn my TV off after a predetermined time of inactivity, and turn on when I do any keyboard/mouse/API input. I just want a direct way to turn off trough the JSON-RPC API, basically.
Thanks!
It would be good to have API commands to turn on and off the TV (and just the TV, not the HDMI adapter nor the Kodi system).
I'm already able to do so trough the terminal on the RaspberryPi, with the following commands:
Code:
pi@raspbmc:~$ echo "on 0" | cec-client -d 1 -s #turn TV on
log level set to 1
opening a connection to the CEC adapter...
pi@raspbmc:~$ echo "standby 0" | cec-client -d 1 -s #turn TV off
log level set to 1
opening a connection to the CEC adapter...
pi@raspbmc:~$
And I believe Kodi already has some internal function to do so (I don't know if it uses cec-client), since it is already able to turn my TV off after a predetermined time of inactivity, and turn on when I do any keyboard/mouse/API input. I just want a direct way to turn off trough the JSON-RPC API, basically.
Thanks!