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

Not an issue, but a question. #69

Closed MikeHotel0815 closed 10 months ago

MikeHotel0815 commented 11 months ago

How to fire the cron-plus event on nodeRed startup? As known "inject once after startup" from the default node.

Steve-Mcl commented 11 months ago

It is something I could never find a "great" way of supporting. It never felt like a useful thing for me as it can be achieved by a separate inject.

But if you really want to trigger a schedule on start up, I did add support by passing a msg in (from an inject, set to trigger on start). Set the topic to "trigger" and payload to "name-of-schedule"

Steve-Mcl commented 11 months ago

Or topic of "trigger-all" (I think I added support for that- check the built in help)

MikeHotel0815 commented 11 months ago

I can work with that, thank you for replying. I just thought I missed something in the UI. Of course I can just plug a standard inject node in front of yours. Great plug in by the way. 👍🏼