Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
712 stars 189 forks source link

solved/ problem with a script #98

Open klausmollerzip opened 5 years ago

klausmollerzip commented 5 years ago

Hello everybody

I instaled samsungctl a few days ago. I work with raspibian

I connect to TV without problems, and i can send orders for example using:

samsungctl --host 192.168.0.10 --method websocket KEY_VOLDOWN

I decided to create a script, named "volumen-down.sh"

!/bin/bash

samsungctl --method websocket --host 192.168.0.10 --port 8001 -v KEY_VOLDOWN >> /dev/null exit 0

then I type: pi@raspberrypi:~/domoticz/scripts/tele $ ./volumen-down.sh

and it shows me: Sending control command: KEY_VOLDOWN

The script works but sends me this message (KEY_VOLDOWN). I think the script is wrong. I tried to look for "samsungctl" in the raspberry but i didnt find. I think the proble is that my script doesnt find samsungctl

Do you understand me? I need help

thanks