1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/social/dweetio/README.md

45 lines
1.6 KiB
Markdown
Raw Normal View History

2014-09-17 22:27:56 +02:00
node-red-node-dweetio
=====================
A <a href="http://nodered.org" target="_new">Node-RED</a> node to send and receive simple dweets.
2014-09-18 18:40:48 +02:00
This node does **NOT** support private or "locked" dweets.
2014-09-17 22:27:56 +02:00
Install
-------
2016-03-02 14:26:53 +01:00
Run the following command in your Node-RED user directory - typically `~/.node-red`
2014-09-17 22:27:56 +02:00
npm install node-red-node-dweetio
Usage
-----
2016-03-02 14:26:53 +01:00
### Output
2014-09-17 22:27:56 +02:00
2016-03-02 14:26:53 +01:00
Sends the `msg.payload` to Dweet.io
2014-09-17 22:27:56 +02:00
2016-03-02 14:26:53 +01:00
Optionally uses `msg.thing` to set the thing id, if not already set in the properties.
2014-09-17 22:27:56 +02:00
You need to make the thing id unique - you are recommended to use a GUID.
2016-03-02 14:26:53 +01:00
### Input
2014-09-17 22:27:56 +02:00
Listens for messages from Dweet.io
The thing id should be globally unique as they are all public - you are recommended to use a GUID.
2016-03-02 14:26:53 +01:00
The Thing ID is set into `msg.dweet`, and the timesamp into `msg.created`.
2014-09-17 22:27:56 +02:00
2017-04-15 13:03:22 +02:00
For further info see the <a href="https://dweet.io/" target="_new">Dweet.io website</a>
2014-09-18 18:40:48 +02:00
2016-03-02 14:26:53 +01:00
### Sample Flow
2014-09-18 18:40:48 +02:00
Cut the text below - then in Node-RED use Ctrl-I (Import) - Ctrl-V (Paste) to insert into your workspace.
[{"id":"58bfbfe.fa7404","type":"debug","name":"","active":true,"console":"false","complete":"false","x":401,"y":211,"z":"8f1399c1.70ec68","wires":[]},{"id":"bc69a077.43966","type":"dweetio out","thing":"not-very-random-big-string","name":"","x":409,"y":135,"z":"8f1399c1.70ec68","wires":[]},{"id":"aaad178a.5552e8","type":"dweetio in","thing":"not-very-random-big-string","name":"","x":153,"y":211,"z":"8f1399c1.70ec68","wires":[["58bfbfe.fa7404"]]},{"id":"db15a21f.24ea6","type":"inject","name":"","topic":"Ticktock","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":160,"y":136,"z":"8f1399c1.70ec68","wires":[["bc69a077.43966"]]}]