CEC client on remote PI

Moderator: leecollings

Post Reply
Deluka
Posts: 19
Joined: Thursday 03 March 2016 18:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

CEC client on remote PI

Post by Deluka »

I am trying to use CEC-client to controle my TV and STB
When i run this command in a shell

Code: Select all

ssh [email protected] 'echo on 3 | cec-client -s -d 1'
the STB turns on

But when i try this in lua

Code: Select all

os.execute(  'ssh [email protected] echo “on 3” | cec-client -s -d 1')
nothing happens.
Im pretty sure its a format problem but i cant seem to find the right answer using google
Any help would be more then welcome
Deluka
Posts: 19
Joined: Thursday 03 March 2016 18:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: CEC client on remote PI

Post by Deluka »

The follwing format solved the problem

Code: Select all

os.execute(  'ssh [email protected] "echo standby 0| cec-client -s -d 1 "' )
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest