Skip to content

Instantly share code, notes, and snippets.

@hdoukas
Created April 21, 2014 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdoukas/355bbc35eef6662b95bd to your computer and use it in GitHub Desktop.
Save hdoukas/355bbc35eef6662b95bd to your computer and use it in GitHub Desktop.
Flash a Hue lamp with Twitter hashtags

This flow will look for specific twitter hashtags and will flash a Philips Hue lamp once when a hashtag is detected. It requires the hue node (you need to have installed node-red-nodes and the node-hue-api module) and a valid Hue access token.

It is a simple flow that also demonstrates how to set parameters on the Hue node using the message input.

[{"id":"e973b4e.f168c48","type":"twitter in","twitter":"","tags":"#iot","user":"false","name":"iot","topic":"tweets","x":111,"y":128,"z":"d192ee66.2e6d1","wires":[["a2a6b979.5d5948","74b8bc6d.8b4744"]]},{"id":"a2a6b979.5d5948","type":"function","name":"set_payload","func":"msg.payload = \"alert\";\nmsg.lamp = 2;\n\nreturn msg;","outputs":1,"x":286,"y":127,"z":"d192ee66.2e6d1","wires":[["aef74415.5108b8"]]},{"id":"aef74415.5108b8","type":"HueNode","name":"FlashHue","username":"","discovery_mode":"","lamp_id":"2","color":"EBF5FF","brightness":"100","lamp_status":"AUTO","x":467,"y":127,"z":"d192ee66.2e6d1","wires":[[]]},{"id":"74b8bc6d.8b4744","type":"debug","name":"","active":true,"console":false,"complete":false,"x":254,"y":224,"z":"d192ee66.2e6d1","wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment