# Very weird/unexpected signals from flow

**URL:** https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733
**Category:** General
**Created:** [24 October 2020 04:34 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733 "2020-10-24T04:34:45Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [24 October 2020 04:34 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/1 "2020-10-24T04:34:45Z")

</div>

This has now happened a couple of times to me and now I am getting confused to what/why this is happening.

I have a bit of flow which daily (at midnight) sends a signal that it is a new day.

That is sent to different parts of the flow to do things daily. But when I get signals at 15:00 I am confused.

 ![Screenshot from 2020-10-24 15-21-43](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3dc9e68d1c0e5f77b378213daf9b33a0dd42dd25.png)

This clearly shows the output of the `debug` node.  
I was wondering what it was and when I saw the node, that brought up a whole raft of questions.

First off: What time is on the machine?  
(See below)

```auto
pi@BedPi:~ $ date
Sat 24 Oct 14:39:16 AEDT 2020
pi@BedPi:~ $ 

```

Ok, so it is 14:39 local. Not 00:00.

So let's look at the bigger picture of code:  
(screen shots - sorry)

 ![Screenshot from 2020-10-24 15-21-54](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/d/cdc11f689079200de4285e748091f26f0fb800b2.png)

 ![Screenshot from 2020-10-24 15-22-06](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/db1799a911a03e4d16a4475e68b31b5db4b0a289.png)

 ![Screenshot from 2020-10-24 15-27-29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd20d270f7fc2adf621b4a9cd6080b250da167fa.png)

So, what would be causing the node to send out signals now?

Ok, I will check it isn't the other `inject` node set to inject at start up. (First and second pictures)

# Update

Ok, for clarity:

 ![Screenshot from 2020-10-24 15-36-48](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/e/9eb54d2327fc67ea292090cae2835577ec357686.png)

I have added a `debug` node on the `inject` node I mentioned - see red box.  
There is also a `delay` of `5 hours` so really it is done at 05:00 daily.  
Not really a big deal. Just that it causes this part of the flow to happen a _bit later_ than midnight.

I'll keep _you_ posted of anything that happens.

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [24 October 2020 04:56 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/2 "2020-10-24T04:56:40Z")

</div>

> [@Trying\_to\_learn](#):
>
> So, what would be causing the node to send out signals now?

It's close to Halloween so you have already some ghosts arrived in the backyard

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [24 October 2020 04:59 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/3 "2020-10-24T04:59:06Z")

</div>

But does that work in Oz and not the _USA_?

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [24 October 2020 04:59 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/4 "2020-10-24T04:59:41Z")

</div>

They are everywhere

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [24 October 2020 05:00 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/5 "2020-10-24T05:00:57Z")

</div>

Well, that may explain it. 😉

---

<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: [24 October 2020 08:58 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/6 "2020-10-24T08:58:46Z")

</div>

> [@Trying\_to\_learn](#):
>
> when I get signals at 15:00 I am confused.

Possibly this problem. Caused by node red starting up before the system clock is initialised (possibly due to slow wifi startup or similar). There doesn't seem to be a solution so far.

> [@Inject node runs late sometimes](https://discourse.nodered.org/t/inject-node-runs-late-sometimes/30365/):
>
> Hi folks, I have set up the Inject node to trigger an audible reminder using Google Home at 3.55pm on a Tuesday. But sometimes (not every day) it happens a random time later, say 4.10pm! I am running Node Red on a Raspberry Pi, native not in a Docker container. Here is some simplified code that triggers at 4pm to reproduce the problem easily: [{"id":"d3d44654.2e41c8","type":"inject","z":"f72ea602.fbc808","name":"@4pm every day","topic":"","payload":"","payloadType":"date","repeat":"","cronta…

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [24 October 2020 09:00 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/7 "2020-10-24T09:00:28Z")

</div>

Yeah, interesting.

I'll keep looking for what is happening.

---

<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: [24 October 2020 21:12 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/8 "2020-10-24T21:12:06Z")

</div>

> [@Trying\_to\_learn](#):
>
> I'll keep looking for what is happening.

If you have an inject node which is set to trigger at a particular time and it triggers at a different time, but recovers if you restart node-red, then it is almost certainly that issue.

---

<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: [25 October 2020 09:21 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/9 "2020-10-25T09:21:59Z")

</div>

I added code in Cron-plus to recognise system time updates & to refresh is scheduled accordingly. So if you want a trigger to reliably happen at 3pm it's quite easy to do that with Cron-plus.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [25 October 2020 19:55 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/10 "2020-10-25T19:55:11Z")

</div>

Yes, thanks, but I think there is a bit of confusion here.

I have an `inject` node that signals midnight (or "new day") for things around the place to be told it is a new day.

A few things use it.

Rather than having everything happen _there and then_ I added a `delay` for this part only so it didn't happen together with all the other stuff that happens at the start of a new day.

5 hours is maybe a bit excessive, but as it isn't a time critical thing, it isn't too much of a worry.

Yes, that node would be nice but in an attempt to keep things _simple_ that's how it is.

---

<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: [25 October 2020 20:14 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/11 "2020-10-25T20:14:24Z")

</div>

I thought you were saying that the inject node is triggering at the wrong time. If not then it isn't that, so what is triggering at the wrong time. Remember, once again, we don't need to know all the details of your flow. Instrument it with debug nodes and find which bit isn't working, then ask about that. Look at your original post, that is vastly more information than should be necessary to ask whatever the question is.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [25 October 2020 20:20 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/12 "2020-10-25T20:20:30Z")

</div>

**AN** `inject` node is triggered at the wrong time.

Which one: who knows.

There are two suspect `inject` nodes that could cause it in that part of the flow.  
The one that is really used is on another page and so I can't press it and see what is happening on that page.

One I used for testing and the actual one which is triggered at midnight.  
Also though not "the end of the world" using/pressing it would inject a false "new day" signal to a lot of stuff on the machine. So I added the one on the same flow.

Since then I have added a `debug` on its output to determine if it is that one of the _real_ (main) one that is miss triggering.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [25 October 2020 20:22 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/13 "2020-10-25T20:22:26Z")

</div>

Yes, I agree it is a lot more than is really needed.

I _included_ all the other stuff as that is the environment in which it is living.

That day/time I think I got 2 miss triggers. So I got curious.

---

<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: [24 December 2020 20:22 UTC](https://discourse.nodered.org/t/very-weird-unexpected-signals-from-flow/34733/14 "2020-12-24T20:22:32Z")

</div>

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