A while ago I found this sunset/sunrise dz vents script in this forum,
but doesn't matter what I try, I can't seem to get this script triggered.
No mentioning in logs that is has been triggered too.
Perhaps someone can help me, please ? Can it be a timer issue ?
(and yes, I activated DZ vents on the settingspage.
And the names of the textdevices are the exact same as in this script)
Code: Select all
return {
on = {
timer = { "at 00.03", "at 06:03" },
}, -- twice a day to be sure and 3 min past the hour because at the hour already quite busy
execute = function( dz )
local function minutes2time(minutes) -- integer in; string out
local hour = string.format("%02d",math.floor(minutes / 60))
local minutes = string.format("%02d",minutes - (hour * 60))
return (hour .. ":" .. minutes) -- string out
end
dz.devices("Sunset").updateText(minutes2time(dz.time.sunsetInMinutes))
dz.devices("Sunrise").updateText(minutes2time(dz.time.sunriseInMinutes))
end
}