This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Dynamically change the Scheduled program time parameters from visualization
#14
I'm afraid i was 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?
Reply


Messages In This Thread
RE: Dynamically change the Scheduled program time parameters from visualization - by Dré - 16.09.2022, 15:39

Forum Jump: