Page 1 of 1
Timer schedule on week number
Posted: Saturday 25 May 2019 11:09
by ocean123
Hi,
How can I create a timer schedule that is working on week numbers.
even weeks:
switch 1
monday 10:00 - 12:00
tuesday 14:00 - 16:00
friday 20:00 - 21:00
switch 2
wednesday 6:00 - 10:00
sunday 10:00 - 12:00
uneven weeks
switch 1
wednesday 6:00 - 10:00
sunday 10:00 - 12:00
switch 2
monday 10:00 - 12:00
tuesday 14:00 - 16:00
friday 20:00 - 21:00
switch 3
tuesday 10:00 - 11:00
friday 2:00 - 3:00
Can't figure out how to work in blocky events to manage this.
Re: Timer schedule on week number
Posted: Saturday 25 May 2019 11:13
by ocean123
I can't use google calendar. The raspberry pi is not connected to the world-wide-web.

Re: Timer schedule on week number
Posted: Saturday 25 May 2019 11:23
by Xztraz
you can do that with timers on the switches
Re: Timer schedule on week number
Posted: Saturday 25 May 2019 12:45
by ocean123
Xztraz wrote: ↑Saturday 25 May 2019 11:23
you can do that with timers on the switches
there is no option for uneven and even weeks.
or is there?
Re: Timer schedule on week number
Posted: Saturday 25 May 2019 20:14
by hoeby
Code: Select all
on = {
timer = { 'every odd week',
'every even week'}
}
This would work.
Re: Timer schedule on week number
Posted: Saturday 25 May 2019 22:47
by ocean123
hoeby wrote: ↑Saturday 25 May 2019 20:14
Code: Select all
on = {
timer = { 'every odd week',
'every even week'}
}
This would work.
Your code is in LUA? Is there any code for blocky? Or can I add this someway in the blocky script.
Re: Timer schedule on week number
Posted: Saturday 25 May 2019 22:50
by waaren
ocean123 wrote: ↑Saturday 25 May 2019 22:47
Your code is in LUA? Is there any code for blocky? Or can I add this someway in the blocky script.
No this is dzVents. I would not know a way to do this using Blockly
Re: Timer schedule on week number
Posted: Tuesday 28 May 2019 18:07
by Xztraz

- oddweeks.jpg (60.69 KiB) Viewed 2497 times
Re: Timer schedule on week number
Posted: Tuesday 28 May 2019 20:50
by ocean123
that is much smarter than I expected.
thanks
Re: Timer schedule on week number
Posted: Tuesday 28 May 2019 20:53
by ocean123
Okey one step more...
Weeknumber only on Monday and Tuesday. Then between 19:00-23:00 hour.
Re: Timer schedule on week number
Posted: Tuesday 28 May 2019 23:06
by waaren
ocean123 wrote: ↑Tuesday 28 May 2019 20:53
Okey one step more...
Weeknumber only on Monday and Tuesday. Then between 19:00-23:00 hour.
can you elaborate on what you mean with 19:00- 23:00 ? Is that once at a random moment in that timeframe or once at a fixed moment or every minute in that window or something else ?
Re: Timer schedule on week number
Posted: Thursday 27 June 2019 18:08
by syrhus
Hi Ocean123,
May be this tool would be helpfull in your case:
viewtopic.php?f=31&t=20868
Re: Timer schedule on week number
Posted: Friday 28 June 2019 6:41
by ocean123
Yes, that's what I'am looking for.
Great tool, thanks for the tip.