Error executing script from blocky

Python and python framework

Moderator: leecollings

Post Reply
dnlauto
Posts: 4
Joined: Saturday 05 May 2018 23:27
Target OS: Linux
Domoticz version:
Contact:

Error executing script from blocky

Post 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?
SweetPants

Re: Error executing script from blocky

Post by SweetPants »

Blockly Image is invisible. Please post the complete script also and be sure it's executable
dnlauto
Posts: 4
Joined: Saturday 05 May 2018 23:27
Target OS: Linux
Domoticz version:
Contact:

Re: Error executing script from blocky

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest