This is driving me nuts.
I can't get this piece of code working. Am I doing something wrong ( 3.8199 on RaspPI). Log always returns nil.
Thank you
Code: Select all
return {
active = true, -- optional
on = {
--timer = {'every 1 minutes'}
devices = { 'test' }
},
data = {
previousTime = { initial = 5 }
},
logging = {
level = domoticz.LOG_INFO,
marker = 'meteo'
},
execute = function ( domoticz, meteohubGet )
print ('Previous time stamp value : ' .. tostring(previousTime))
domoticz.data.previousTime = domoticz.data.previousTime + 1
end
}