Steve-Mcl / node-red-contrib-cron-plus

A flexible scheduler node for Node-RED (featuring full dynamic control, sunrise/sunset by location and Timezone support)
MIT License
45 stars 12 forks source link

Demo Errors #13

Closed QbaF closed 4 years ago

QbaF commented 4 years ago

Hi, first of all it looks like node cronlus could be the best multi-time-management node in Node-Red environment, congratulations!

I just started with that node so I imported Examples because docs in the area of dynamic changing schedules were not sufficient for me. Unfortunately some examples return errors. e.g. In dynamic schedules

It looks like when you use command name (e.g. start) in topic, you shouldn't use it again in payload. At the other hand, when you have topic stop-all, using as a payload again command {"command": "stop-all"} does work.

In using dates

Additional questions:

  1. does command list = status?
  2. what is payload.result.status.**modified** for?
  3. Is there a chance to have Pause/Stop for a period of time?
  4. is there a chance for prettyNext2/nextDescriptionShort which will be shorter (eg. "1 day 1h30'25"?
Steve-Mcl commented 4 years ago

Hi,

first of all it looks like node cronlus could be the best multi-time-management node in Node-Red environment, congratulations!

Thanks for the compliment - appreciated.

Unfortunately some examples return errors. e.g. In dynamic schedules... my apologies on the demos, quite a few changes were made recently & I could have sworn I updated the demos - I will get them checked ASAP.

It looks like when you use command name (e.g. start) in topic, you shouldn't use it again in payload. At the other hand, when you have topic stop-all, using as a payload again command {"command": "stop-all"} does work.

the general method of control is...

does command list = status?

Yes - its a legacy thing

what is payload.result.status.modified for?

For static entries that are changed at runtime

Is there a chance to have Pause/Stop for a period of time?

Unfortunately not - but its quite easy to achieve using delay or even another cron node I will however keep your suggestion in mind

is there a chance for prettyNext2/nextDescriptionShort which will be shorter (eg. "1 day 1h30'25"?

That certainly is possible but if I were to implement that I would likely expose a whole bunch of additinal formatting options (everyone's taste differs)

Hope that helps in some way.

I will update you on progress.

Cheers, Steve.