I have copied a small lua script to trigger a shell script, but it seems not to work. The .sh script on itself works, tested in a shell under the same username as where Domticz is running in.
Code: Select all
commandArray = {}
if (devicechanged['Deurbel']=='On') then
os.execute('/home/pi/domoticz/scripts/SentSnapshot.sh')
print('Script Deurbel is ingedrukt')
end
return commandArray
My questions are:
Is there something wrong with the script?
The device name in the script, is this the same name you give when you add the device in Domoticz?
According to some documentation i should see a log in /var/log/domoticz, is this correct? i do not seem to have this.
Any other suggestions?
As you can see i am not sure how the mechanism of the domoticz and ual scripts is working, i found some documentation but most are about the ual scripting itself.
Any help is appriciated.
Francis