I'm converting the philips tv script to use in a docker envoirement.
Everythings is working now except passing parameters.
It's seems that the parameter is not sending with the script:///
if i add a simple line to a test bash file like
Code: Select all
python3 /opt/domoticz/scripts/pylips/pylips.py --host $host --user $user --pass $pass --command mute
Code: Select all
script:///opt/domoticz/scripts/test.sh
but if i working with multiple commnands and a switch then the arg is not passing
Code: Select all
echo $1
case $1 in
standby)
python3 $path --host $host --user $user --pass $pass --command standby &
exit 0
;;
power_on)
python3 $path --host $host --user $user --pass $pass --command power_on &
exit 0
;;
mute)
python3 $path --host $host --user $user --pass $pass --command mute &
exit 0
;;
Code: Select all
script:///opt/domoticz/scripts/pylips/tvphilips.sh mute
In my log i also not seeing the argument passing?
Code: Select all
2022-12-20 17:57:03.944 Status: User: Admin (IP: xxx.xxx.xxx.xxx) initiated a switch command (323/test/Set Level)
2022-12-20 17:57:04.186 Status: Executing script: /opt/domoticz/scripts/pylips/tvphilips.sh