# Cron plus emit schedule on reboot

**URL:** https://discourse.nodered.org/t/cron-plus-emit-schedule-on-reboot/84194
**Category:** General
**Created:** [2 January 2024 05:04 UTC](https://discourse.nodered.org/t/cron-plus-emit-schedule-on-reboot/84194 "2024-01-02T05:04:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [2 January 2024 05:04 UTC](https://discourse.nodered.org/t/cron-plus-emit-schedule-on-reboot/84194/1 "2024-01-02T05:04:56Z")

</div>

trying to setup cron plus to do a simple it is sunrise, it is sunset. I can get the schedule in and get the outputs but I'm trying to fool proof in case of a power outage on the Pi. I can setup the context to store whether it's day or night but if the power goes out how can I get cron to output the last schedule or can I?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [2 January 2024 07:35 UTC](https://discourse.nodered.org/t/cron-plus-emit-schedule-on-reboot/84194/2 "2024-01-02T07:35:23Z")

</div>

Send a describe or trigger command\* to it from an inject set to inject once on start up

\*Commands are listed in the help and there are demos in the built in examples

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [2 January 2024 12:10 UTC](https://discourse.nodered.org/t/cron-plus-emit-schedule-on-reboot/84194/3 "2024-01-02T12:10:59Z")

</div>

Thanks, trigger did it. I was stuck on using status and couldn't get where I needed.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [16 January 2024 12:11 UTC](https://discourse.nodered.org/t/cron-plus-emit-schedule-on-reboot/84194/4 "2024-01-16T12:11:49Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
