# Inject node payload

**URL:** <https://discourse.nodered.org/t/inject-node-payload/12868>\
**Category:** General\
**Created:** [3 July 2019 15:14 UTC](https://discourse.nodered.org/t/inject-node-payload/12868 "2019-07-03T15:14:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Post date:** [3 July 2019 15:14 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/1 "2019-07-03T15:14:28Z")

</div>

I'm trying to use an inject node to send a simple True and another to send false at a certain time. It's not working. I have the node set to payload, repeat at a specific time, and made sure that my Pi in in the correct time zone. if I hit the tab on the side if the node it send message to the debug node. If wait for the time setting nothing. Any suggestions would be great.  
Here is the Flows

 ![15%20AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/37f8dc7d2c5511f2b24bf96401e88b0ff53b8dc0.png)  
Inside the node

 ![01%20AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/290003c7602e9f7fc6b0efba55753aec92c75ac5.png)

---

<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:** [3 July 2019 15:25 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/2 "2019-07-03T15:25:29Z")

</div>

Where are you running Node-RED?  
Have you checked that the time of the machine running Node-RED matched the timezone you are in?

---

<div class="post-metadata">

**Author:** ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Post date:** [3 July 2019 15:27 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/3 "2019-07-03T15:27:18Z")

</div>

Thank you for the advice, but yes I did.

"and made sure that my Pi in in the correct time zone"

---

<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:** [3 July 2019 15:30 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/4 "2019-07-03T15:30:01Z")

</div>

Please restart Node-RED and post the startup log.

---

<div class="post-metadata">

**Author:** ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Post date:** [3 July 2019 15:35 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/5 "2019-07-03T15:35:46Z")

</div>

Let me know if this the correct information. Thank you again!-

_To find more nodes and example flows - go to [http://flows.nodered.org](http://flows.nodered.org)_

_Starting as a systemd service._

_Started Node-RED graphical event wiring tool._

_3 Jul 08:32:17 - [info]_

_Welcome to Node-RED_

_===================_

_3 Jul 08:32:18 - [info] Node-RED version: v0.20.5_

_3 Jul 08:32:18 - [info] Node.js version: v10.15.3_

_3 Jul 08:32:18 - [info] Linux 4.14.98+ arm LE_

_3 Jul 08:32:28 - [info] Loading palette nodes_

_3 Jul 08:33:04 - [info] Dashboard version 2.14.0 started at /ui_

_3 Jul 08:33:11 - [info] Settings file : /home/pi/.node-red/settings.js_

_3 Jul 08:33:11 - [info] Context store : 'default' [module=memory]_

_3 Jul 08:33:11 - [info] User directory : /home/pi/.node-red_

_3 Jul 08:33:11 - [warn] Projects disabled : editorTheme.projects.enabled=false_

_3 Jul 08:33:11 - [info] Flows file : /home/pi/.node-red/flows\_Garden\_Bed\_1.json_

_3 Jul 08:33:13 - [warn]_

_---------------------------------------------------------------------_

_Your flow credentials file is encrypted using a system-generated key._

_If the system-generated key is lost for any reason, your credentials_

_file will not be recoverable, you will have to delete it and re-enter_

_your credentials._

_You should set your own key using the 'credentialSecret' option in_

_your settings file. Node-RED will then re-encrypt your credentials_

_file using your chosen key the next time you deploy a change._

_---------------------------------------------------------------------_

_3 Jul 08:33:13 - [info] Starting flows_

_3 Jul 08:33:22 - [info] Started flows_

_3 Jul 08:33:22 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)_

_3 Jul 08:33:23 - [info] [mqtt-broker:c5c9580d.04686] Connected to broker: mqtt:/_

---

<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:** [3 July 2019 16:01 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/6 "2019-07-03T16:01:42Z")

</div>

Why have you called it "On at 6am" but set it to repeat at 08:06?

Also, what do you see if you run, in a terminal on the PI  
`date`

---

<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:** [3 July 2019 16:10 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/7 "2019-07-03T16:10:17Z")

</div>

I seen that but looking at his log time stamps I guess he's been tweaking the time to see if it works.

I'd suggest the OP double checks he has properly deployed the flow after tweaking the time.

If it does turn out to be a bug, then perhaps he could try one of the Cron nodes (search Cron in pallete manager and install) - I used it with good success recently. (unfortunately I'm out of the country ATM so can't check which one).

---

<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:** [3 July 2019 16:12 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/8 "2019-07-03T16:12:13Z")

</div>

One other thing, as it was set for 6am, could it be that you were in bed and the browser was not open?

Debug only works with browser open.

Are you certain the event didn't occur? It could be it did but nodes beyond the inject didn't work as expected?

---

<div class="post-metadata">

**Author:** ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Post date:** [3 July 2019 16:31 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/9 "2019-07-03T16:31:35Z")

</div>

I was working on the node and had it set to inject at the next minutes time. It's named 6 am so I know what the node is supposed to do, like a post it note. I was up and waiting! it should turn on the fountain and leave it on until the other node, off at 10:00, tell it to turn off. I'll look at the cron things I sure would like to use the inject nodes, I have 7 Pi's doing various things and I hate updating all of them.

thank you all

---

<div class="post-metadata">

**Author:** ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Post date:** [3 July 2019 16:37 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/10 "2019-07-03T16:37:19Z")

</div>

Colin - I was trouble shooting the node, its faster to change the time of the event to the current time than wait 24 hours to see if the changes are working. The name of the node is a note to myself so I know what the node its doing. Its a larger flow and I like to name all of the nodes as a best practice so I know what the intention was when I made it.

When I run date I get the current time and date for my location.

---

<div class="post-metadata">

**Author:** ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Post date:** [3 July 2019 17:00 UTC](https://discourse.nodered.org/t/inject-node-payload/12868/11 "2019-07-03T17:00:30Z")

</div>

rebooted all pi's and now it works. This was just a weird glitch I guess. Thank you all for the assistance.
