I have a script running to push some value's. The script was made by @waaren and looks like this.
Code: Select all
return
{
on =
{
timer =
{
'every minute' ,
},
},
logging =
{
level = domoticz.LOG_ERROR, -- change to domoticz.LOG_DEBUG when not working as expected
marker = 'forcePushToInfluxdb with filter Example',
},
execute = function(dz)
local myInfluxDevices =
{
64, 73, 29, 33, 76, 77, 79, 86, 16, 71
}
local function forcePushToInfluxdb(dv)
dz.log('Forcing push to influxDb of ' .. dv.name .. ' : ' ..dv.sValue, dz.LOG_FORCE)
local url = dz.settings['Domoticz url'] .. '/json.htm?type=command¶m=udevice&idx=' .. dv.idx ..
'&nvalue=' .. ( dv.nValue or 0 ) ..
'&svalue=' .. ( dv.sValue or '' )
dz.openURL(url)
end
dz.devices().filter(myInfluxDevices).forEach(function(dv)
forcePushToInfluxdb(dv)
end)
end
}
Code: Select all
2021-02-07 20:11:54.768 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2021-02-07 20:12:31.426 Error: MQTT: disconnected, restarting (rc=14)
2021-02-07 20:12:39.128 Error: dzVents: Error: (3.0.2) forcePushToInfluxdb with filter Example: ------ Finished Influx push force after >10 seconds. (using 1.341 seconds CPU time !)
2021-02-07 20:12:40.034 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2021-02-07 20:12:51.884 Error: EventSystem: Warning!, lua script /home/pi/domoticz/dzVents/runtime/dzVents.lua has been running for more than 10 seconds
2021-02-07 20:12:51.946 Error: BasePush: Could not determine data push value
2021-02-07 20:12:51.951 Error: BasePush: Could not determine data push value
2021-02-07 20:12:53.115 Error: BasePush: Could not determine data push value
2021-02-07 20:12:53.116 Error: BasePush: Could not determine data push value