Files
Server-scripts/raspberry/scripts/samsung_remote.sh
T

12 lines
341 B
Bash
Raw Normal View History

2026-04-14 23:55:26 +02:00
#!/bin/bash
if [ "$1" == "ON" ];then
irsend SEND_ONCE SAMSUNG KEY_1;
elif [ "$1" == "OFF" ];then
irsend SEND_ONCE SAMSUNG KEY_POWER;
elif [ "$1" == "-a" ];then
irsend SEND_ONCE SAMSUNG $2;
elif [ "$1" == "-l" ]; then
irsend LIST SAMSUNG ""
else
printf "ON...Turn TV ON\nOFF...Turn TV OFF\n-a...Send Command\n-l...List Commands\n"
fi