Timer schedule on week number

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
ocean123

Timer schedule on week number

Post 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.
ocean123

Re: Timer schedule on week number

Post by ocean123 »

I can't use google calendar. The raspberry pi is not connected to the world-wide-web. :shock:
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Timer schedule on week number

Post by Xztraz »

you can do that with timers on the switches
ocean123

Re: Timer schedule on week number

Post 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?
hoeby
Posts: 531
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Timer schedule on week number

Post by hoeby »

Code: Select all

on = { 
     timer = { 'every odd week', 
               'every even week'} 
     }
This would work.
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
ocean123

Re: Timer schedule on week number

Post 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.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Timer schedule on week number

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Xztraz
Posts: 107
Joined: Tuesday 31 January 2017 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Timer schedule on week number

Post by Xztraz »

oddweeks.jpg
oddweeks.jpg (60.69 KiB) Viewed 2444 times
ocean123

Re: Timer schedule on week number

Post by ocean123 »

:lol:

that is much smarter than I expected.

thanks
ocean123

Re: Timer schedule on week number

Post by ocean123 »

Okey one step more...

Weeknumber only on Monday and Tuesday. Then between 19:00-23:00 hour.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Timer schedule on week number

Post 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 ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
syrhus
Posts: 79
Joined: Tuesday 12 December 2017 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Paris
Contact:

Re: Timer schedule on week number

Post by syrhus »

Hi Ocean123,

May be this tool would be helpfull in your case:

viewtopic.php?f=31&t=20868
ocean123

Re: Timer schedule on week number

Post by ocean123 »

Yes, that's what I'am looking for.
Great tool, thanks for the tip.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest