I'm afraid i was wrong.
I meant to asking if there a script like
But not changing the time, but just enable and disable it?
I think I have to change line 4, but don't know what to use.
------------------------------------------------------------------------------
I was still trying to solve my problem, but he always set the Scheduled script off, never on, also when the input value was true
Someone who knows what i do wrong?
I meant to asking if there a script like
Code:
id = 3 -- scheduled script id
value = event.getvalue()
params = string.format('%d %d * * *', value.minute, value.hour)
db:update('scripting', { params = params }, { id = id })
script.reloadsingle({ type = 'scheduled' })
But not changing the time, but just enable and disable it?
I think I have to change line 4, but don't know what to use.
------------------------------------------------------------------------------
I was still trying to solve my problem, but he always set the Scheduled script off, never on, also when the input value was true
Code:
verl_aanrecht_TM = grp.getvalue('1/4/5') --'0 verl. aanrechtblad (tm)'
if verl_aanrecht_TM == true then
script.set('12.01 Check if Light can turn Off', enable)
elseif verl_aanrecht_TM == false then
script.set('12.01 Check if Light can turn Off', disable)
end
Someone who knows what i do wrong?