I have a dzVents script that should be triggered every 3rd Thursday of the month. I found many examples about triggering at minutes, hours or days but not about 3rd Thursday of the month.
Could anyone help me?
trigger ever 3rd Thursday [Solved]
Moderator: leecollings
-
- Posts: 139
- Joined: Tuesday 06 September 2016 20:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: L stab
- Location: Belgium
- Contact:
Re: trigger ever 3rd Thursday
I do this with crontab
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: trigger ever 3rd Thursday
Not very straight forward but doable.
Code: Select all
return
{
on =
{ timer =
{
function(domoticz)
return domoticz.time.matchesRule('at 12:55 on thu') and domoticz.time.matchesRule('on 15/*, 16/*, 17/*, 18/*, 19/*, 20/*, 21/*')
end
},
},
execute = function(dz, item)
dz.log('Timer event was triggered by ' .. item.trigger, dz.LOG_INFO)
end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 56
- Joined: Monday 26 March 2018 18:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: trigger ever 3rd Thursday [Solved]
Thanks @waaren, this solution works fine!
Who is online
Users browsing this forum: No registered users and 1 guest