For your question about the log :
* Do you notice that the python script can output some log depending of the "logLevel" variable ?
logLevel=logging.DEBUG
#logLevel=logging.CRITICAL
#logOutFilename='/var/log/check_beacon_presence.log'
* If you'd rather prefer to manage your log in LUA, you can do a :
variable script "script_variable_yourname.lua"
with something like that (not tested) :
Code: Select all
commandArray = {}
fileLog ='/var/log/domoticz.beacon.log'
if uservariablechanged['your uservariable of your beacon'] then
os.execute('echo '..os.date("%Y-%m-%d %H:%M:%S",os.time())..' - beacon :'..uservariables['your uservariable of your beacon']..' >>'..fileLog)
end
return commandArray