Can someone please help explain why this script won't run in Domoticz?

All kinds of 'OS' scripts

Moderator: leecollings

User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Can someone please help explain why this script won't run in Domoticz?

Post by Egregius »

Yes, so it's not a Domoticz problem.
Add the full path to the executable, something like /usr/bin/sky-remote-cli
Make sure the user that runs domoticz has rights to that executable.
User avatar
leecollings
Posts: 167
Joined: Tuesday 30 June 2015 18:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: United Kingdom
Contact:

Re: Can someone please help explain why this script won't run in Domoticz?

Post by leecollings »

You mean add the full path in the script file, or the log file?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Can someone please help explain why this script won't run in Domoticz?

Post by Egregius »

In the script file
sjoerd1953
Posts: 11
Joined: Monday 09 January 2017 9:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Swolgen
Contact:

Re: Can someone please help explain why this script won't run in Domoticz?

Post by sjoerd1953 »

I suppose you have made the script executable (chmod 755 scriptname) but did you add the directory where it is located to your $PATH? First check this in a terminal with: echo $PATH When your directory is not listed execute this command in the terminal: sudo export PATH=$PATH:directory name (use full directory name: e.g. /home/pi/domoticz/scripts/bash)

If this solves the problem you only have the add the above command to your .profile file and reboot. By doing this you make the command persistent on reboot, otherwise you would have to execute it manually after every reboot.
Sjoerd van Staveren

Domoticz running on a Raspberry Pi 3; Milight RGBW and Dual White bulbs; RFXcom XL;HOMEeasy switch; Flamingo switches; Sonoff switches
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest