From b4c033ca508d099e3fb7a156b0ef55f18246fc9b Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Mon, 1 Jun 2020 15:20:53 +0900 Subject: [PATCH] add missing inject node examples --- .../examples/common/inject/1 trigger a flow at startup.json | 1 + .../common/inject/2 trigger a flow at regular intervals.json | 1 + .../common/inject/3 trigger a flow at a specific time.json | 1 + 3 files changed, 3 insertions(+) create mode 100644 packages/node_modules/@node-red/nodes/examples/common/inject/1 trigger a flow at startup.json create mode 100644 packages/node_modules/@node-red/nodes/examples/common/inject/2 trigger a flow at regular intervals.json create mode 100644 packages/node_modules/@node-red/nodes/examples/common/inject/3 trigger a flow at a specific time.json diff --git a/packages/node_modules/@node-red/nodes/examples/common/inject/1 trigger a flow at startup.json b/packages/node_modules/@node-red/nodes/examples/common/inject/1 trigger a flow at startup.json new file mode 100644 index 0000000000..597dd337ae --- /dev/null +++ b/packages/node_modules/@node-red/nodes/examples/common/inject/1 trigger a flow at startup.json @@ -0,0 +1 @@ +[{"id":"eca30de2.7f1b1","type":"comment","z":"6e4ff5ca.fbc3ec","name":"Trigger a flow whenever Node-RED starts","info":"Inject node can be used to trigger a flow whenever Node-RED starts.\n\n*This could be used to initialise context variables, or to send a notification that Node-RED has been restarted.*\n\nSee Node-RED cookbook [item](https://cookbook.nodered.org/basic/trigger-on-start).","x":220,"y":60,"wires":[]},{"id":"8189f250.ddfb2","type":"inject","z":"6e4ff5ca.fbc3ec","name":"","topic":"","payload":"Started!","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":200,"y":120,"wires":[["9a0150e8.6d0b3"]]},{"id":"9a0150e8.6d0b3","type":"debug","z":"6e4ff5ca.fbc3ec","name":"","active":true,"console":"false","complete":"false","x":470,"y":120,"wires":[]}] \ No newline at end of file diff --git a/packages/node_modules/@node-red/nodes/examples/common/inject/2 trigger a flow at regular intervals.json b/packages/node_modules/@node-red/nodes/examples/common/inject/2 trigger a flow at regular intervals.json new file mode 100644 index 0000000000..1d51ffeab7 --- /dev/null +++ b/packages/node_modules/@node-red/nodes/examples/common/inject/2 trigger a flow at regular intervals.json @@ -0,0 +1 @@ +[{"id":"64c1d7b3.a65b38","type":"comment","z":"bfaec8ca.105278","name":"Trigger a flow at regular intervals","info":"Inject node can be used to trigger a flow at regular intervals. \n\nSee Node-RED cookbook [item](https://cookbook.nodered.org/basic/trigger-at-interval).","x":190,"y":60,"wires":[]},{"id":"7c820e88.2db33","type":"inject","z":"bfaec8ca.105278","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"x":190,"y":120,"wires":[["8f135212.6a9a9"]]},{"id":"8f135212.6a9a9","type":"debug","z":"bfaec8ca.105278","name":"","active":true,"console":"false","complete":"false","x":450,"y":120,"wires":[]}] \ No newline at end of file diff --git a/packages/node_modules/@node-red/nodes/examples/common/inject/3 trigger a flow at a specific time.json b/packages/node_modules/@node-red/nodes/examples/common/inject/3 trigger a flow at a specific time.json new file mode 100644 index 0000000000..03637a8319 --- /dev/null +++ b/packages/node_modules/@node-red/nodes/examples/common/inject/3 trigger a flow at a specific time.json @@ -0,0 +1 @@ +[{"id":"a4060d5d.a3c92","type":"comment","z":"568c3a2a.5efbf4","name":"Trigger a flow at a specific time","info":"Inject node can be used to trigger a flow at a specific time. \n\nSee Node-RED cookbook [item](https://cookbook.nodered.org/basic/trigger-at-time).","x":190,"y":60,"wires":[]},{"id":"468db06c.bafdd","type":"inject","z":"568c3a2a.5efbf4","name":"","topic":"","payload":"It is 4pm on a weekday!","payloadType":"str","repeat":"","crontab":"00 16 * * 1,2,3,4,5","once":false,"x":250,"y":120,"wires":[["1ccc3174.cb926f"]]},{"id":"1ccc3174.cb926f","type":"debug","z":"568c3a2a.5efbf4","name":"","active":true,"console":"false","complete":"false","x":470,"y":120,"wires":[]}] \ No newline at end of file