I have written a small python script to record from IP cameras. The script is to be run if the alarm is set and motion is detected by a sensor.
The script works fine from the shell. However I get a weird error when domoticz tries to execute the script.
It seems domoticz adds a # at the end of the filename of the script. Regardless if I add parameters to the script execution or not. Which results in the script not being found.
Code: Select all
2018-05-05 23:08:27.242 Executing script: /opt/domoticz/scripts/video_events/imagefetch.py#livingroom
2018-05-05 23:08:27.246 Error: Error executing script command (/opt/domoticz/scripts/video_events/imagefetch.py#livingroom). returned: 32512
2018-05-05 23:16:16.970 Executing script: /opt/domoticz/scripts/video_events/livingroom.sh#
2018-05-05 23:16:16.973 Error: Error executing script command (/opt/domoticz/scripts/video_events/livingroom.sh#). returned: 32512

Anyone have any ideas why this is happening?