Lua script, do i miss something?
Posted: Thursday 07 January 2016 11:17
Hello,
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.
I have put this ual script in the following folder on Rasberry Pi: /home/pi/domoticz/scripts/lua/script_device_Deurbel.lua.
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
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