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.
Can someone please help explain why this script won't run in Domoticz?
Moderator: leecollings
- 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?
You mean add the full path in the script file, or the log file?
-
- 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?
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.
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
Domoticz running on a Raspberry Pi 3; Milight RGBW and Dual White bulbs; RFXcom XL;HOMEeasy switch; Flamingo switches; Sonoff switches
Who is online
Users browsing this forum: No registered users and 1 guest