ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

[Bug]: Wizard/Schedule not working as expected

Open achimu opened this issue 1 year ago • 0 comments

I'm sure that

  • [X] This issue is still present in the current beta version of this adapter
  • [X] There is no other (open) issue with the same topic (use the search!)
  • [X] This issue is not described in the adapter documentation / FAQ (read the docs!)

Script type

Blockly schedule cron

The problem

the Blockly "timeschedule" cron job "monthly" is not working. After the startdate, the schedule is executed every day. The schedule wizard says: "on any date of every month at 00:01 from 03/01/2024".

The line in JS is:

schedule2 = schedule('{"time":{"exactTime":true,"start":"00:01"},"valid":{"from":"01.03.2024"},"period":{"months":1}}', async () => {});

From my side, there is something missing if I compare the lines with -> every week

schedule2 = schedule('{"time":{"exactTime":true,"start":"00:01"},"valid":{"from":"01.03.2024"},"period":{"weeks":1,"dows":"[0]"}}', async () => {});

-> every year

schedule2 = schedule('{"time":{"exactTime":true,"start":"00:01"},"valid":{"from":"01.03.2024"},"period":{"years":1,"yearDate":1,"yearMonth":1}}', async () => {});

iobroker.current.log (in debug mode!)

No response

Version of nodejs

18.17.1

Version of ioBroker js-controller

5.0.17

Version of adapter

7.7.0

achimu avatar Feb 02 '24 19:02 achimu