I wrote a script.sh and it works really well in terminal. I set a dummy switch and in the on action I set the script.
Code: Select all
#!/bin/sh
# Start Recording RTSP stream via VLC
vlc rtsp://192.168.1.3/unicast --sout=file/mp4:/home/pi/Desktop/Soggiorno-$(date +%m%d%H%M%S).mp4 -I dummy --stop-time=10 vlc://quit
exit 0
In domoticz log I see
Code: Select all
Executing script: /home/pi/domoticz/scripts/soggiorno.sh