Code: Select all
commandArray = {}
commandArray['UpdateDevice'] = '22|1|On'
Moderator: leecollings
Code: Select all
commandArray = {}
commandArray['UpdateDevice'] = '22|1|On'
Hi,tapas wrote:I'm trying to run it from linux shell lua script.lua with no luck, what am I missing?
Yes, it works now, thank you! One of my problem was that script names were wrong. Should have read that wiki better.mivo wrote:Hi,tapas wrote:I'm trying to run it from linux shell lua script.lua with no luck, what am I missing?
starting LUA script from Linux shell will not work, there is no Domoticz API available. You should create script in designated folder and correct name - in subfolder of domoticz installation: scripts/lua. Then scrips are started by Domoticz event system.
Look at this, there are good examples:
https://www.domoticz.com/wiki/Events#By ... ion_folder.
Users browsing this forum: No registered users and 1 guest