Page 1 of 1
odd/even week timer triggered every week
Posted: Saturday 29 December 2018 21:04
by hollysaiqs
Hello,
I created a script with the following timer event:
Code: Select all
between 1:00 and 1:30 on sat every odd week
Yet my script is triggered every week (odd and even). Any clue ?
Re: odd/even week timer triggered every week
Posted: Saturday 29 December 2018 23:14
by waaren
hollysaiqs wrote: ↑Saturday 29 December 2018 21:04
Hello,
I created a script with the following timer event:
Code: Select all
between 1:00 and 1:30 on sat every odd week
Yet my script is triggered every week (odd and even). Any clue ?
I am afraid the current dzVents version does not handle this correctly. I will create a PR to correct this after testing the fix and will let you know when it will be part of a next Beta.
Until then a workaround would be to trigger the script with
Code: Select all
on = {
timer = { 'on sat at 1:00-1:30' }
},
and start the body of the script with
Code: Select all
execute = function(dz)
if dz.time.matchesRule("every even week") then
return
end
Re: odd/even week timer triggered every week [SOLVED]
Posted: Sunday 30 December 2018 10:40
by waaren
hollysaiqs wrote: ↑Saturday 29 December 2018 21:04
Hello,
I created a script with the following timer event:
Code: Select all
between 1:00 and 1:30 on sat every odd week
Yet my script is triggered every week (odd and even). Any clue ?
Fixed in V4.10304
Re: odd/even week timer triggered every week
Posted: Thursday 03 January 2019 21:32
by hollysaiqs
Thank you ! I tried your workaround with success. I will wait for next stable to test your fix.
I have also a problem with
and
Do you know if these triggers shall work in stable version ?