Created
September 23, 2014 20:19
-
-
Save hardillb/5109c5f21ed8d7f9fcfc to your computer and use it in GitHub Desktop.
Flow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"850a2c6d.e68098","type":"twilio-api","sid":"update-this","from":"+15005550006","name":"SMS out"},{"id":"2672a104.4e7d26","type":"inject","name":"","topic":"","payload":"helloWorld","payloadType":"string","repeat":"","crontab":"","once":false,"x":248.0833282470703,"y":266.9999771118164,"z":"9a815f24.3bf388","wires":[["e758f3a5.ccf1d8"]]},{"id":"e758f3a5.ccf1d8","type":"twilio out","twilio":"850a2c6d.e68098","number":"+4455555555","name":"SMS","x":433.0833282470703,"y":143.00000762939453,"z":"9a815f24.3bf388","wires":[]}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Checkout Node-Red (git clone https://github.com/node-red/node-red.git) | |
2) cd in node-red/nodes | |
3) checkout extra nodes (git clone https://github.com/node-red/node-red-nodes.git) | |
4) cd to the node-red root | |
5) npm install --production | |
6) npm install twilio | |
7) run node red (node red) | |
8) connect to node-red console with browser (http://localhost:1880/) | |
9) Click on the hamburger icon (top right) and click Import -> from clipboard | |
10) paste the Flow included in this gist into the popup | |
11) click on the canvas to secure the flow | |
12) double click on the twilio node (pink node labelled sms) | |
13) click on the pencil icon to open the credentials dialog | |
14) update the SID and add a API secret | |
15) click ok to return to the basic node settings | |
16) update to sms number | |
17) click deploy (top right) | |
18) click on small blue square at the left hand end of the helloWorld inject node to try and send a message. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment