Page 1 of 1

Error executing script from blocky

Posted: Saturday 05 May 2018 23:34
by dnlauto
Hi

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
Here's the blockly setup, which works. (except for the script execution)
Image

Anyone have any ideas why this is happening?

Re: Error executing script from blocky

Posted: Sunday 06 May 2018 10:59
by SweetPants
Blockly Image is invisible. Please post the complete script also and be sure it's executable

Re: Error executing script from blocky

Posted: Monday 07 May 2018 10:15
by dnlauto
Strange, the image is hosted om imager and is visible to me :|

The issue has nothing to do with the contents of the script. I can reference an empty executable file with the same results.

The issue is that domoticz adds a # at the end of the file, regardless of if the filename is a .sh or a .py or no ending at all.

It's driving me nuts.