# Time based nodes do not produce output

**URL:** <https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651>\
**Category:** General\
**Created:** [29 April 2019 18:42 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651 "2019-04-29T18:42:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [29 April 2019 18:42 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/1 "2019-04-29T18:42:12Z")

</div>

I have something weird going on, if I use nodes that are based on time (like light-scheduler or moment from @TotallyInformation), they do not function properly.

inject -\> moment \> debug = no output when injecting  
lightscheduler -\> debug = no ouput. I do see the node status changing on/off, but no output, only when it is repeated each minute.

Is my install borked ? (actually a clean rasbian stretch install)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [29 April 2019 19:52 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/2 "2019-04-29T19:52:00Z")

</div>

anything in the logs?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [29 April 2019 20:12 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/3 "2019-04-29T20:12:51Z")

</div>

Nothing ☹

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 April 2019 20:54 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/4 "2019-04-29T20:54:03Z")

</div>

Can you post a mini-flow showing the problem so we can check whether we see the same problem?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [30 April 2019 04:14 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/5 "2019-04-30T04:14:37Z")

</div>

This is weird, now suddenly the moment node works, lightscheduler still doesn't.

```auto
[{"id":"10e539.f76eb2c7","type":"light-scheduler","z":"9e9808c3.7087d8","settings":"f40eca8f.c9b1d","events":"[]","topic":"test","name":"","onPayload":"ON","onPayloadType":"str","offPayload":"OFF","offPayloadType":"str","onlyWhenDark":false,"scheduleRndMax":0,"sunElevationThreshold":6,"sunShowElevationInStatus":false,"outputfreq":"output.statechange.startup","x":286,"y":506,"wires":[["feee114e.2bbfe"]]},{"id":"feee114e.2bbfe","type":"debug","z":"9e9808c3.7087d8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":644,"y":506,"wires":[]},{"id":"3c019ca5.d1f47c","type":"inject","z":"9e9808c3.7087d8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":280,"y":572,"wires":[["1e8827ce.f3e64"]]},{"id":"1e8827ce.f3e64","type":"moment","z":"9e9808c3.7087d8","name":"","topic":"","input":"","inputType":"msg","inTz":"Europe/Amsterdam","adjAmount":0,"adjType":"days","adjDir":"add","format":"","locale":"en_US","output":"payload","outputType":"msg","outTz":"Europe/Amsterdam","x":468,"y":572,"wires":[["feee114e.2bbfe"]]},{"id":"f40eca8f.c9b1d","type":"light-scheduler-settings","z":"","name":"my settings","latitude":"52","longitude":"4.4"}]

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 April 2019 05:47 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/6 "2019-04-30T05:47:26Z")

</div>

I assume this is a Pi. What versions of node/npm/node-red are you using?

Also, have you set the time zone on the Pi?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [30 April 2019 13:35 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/7 "2019-04-30T13:35:40Z")

</div>

I thought so too. But I was in contact with the developer of the light scheduler for some days trying to tackle this issue, then I found that moment didnt work for some unknown reason, rebooted, worked again.

Lightscheduler still didn't, but the dev found the culprit and updated the node, so it is all working now, sorry for the confusion.

---

<div class="post-metadata">

**Author:** ![niklaswall](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@niklaswall](https://discourse.nodered.org/u/niklaswall)\
**Post date:** [3 May 2019 08:29 UTC](https://discourse.nodered.org/t/time-based-nodes-do-not-produce-output/10651/8 "2019-05-03T08:29:56Z")

</div>

🙂 Yes, there was a problem with node-red-contrib-light-scheduler but it's fixed now.

Thank you @bakman2 for reporting it!

/Niklas Wall
