Skip to content

Instantly share code, notes, and snippets.

@ludwigm
Created June 30, 2014 14:29
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 ludwigm/2a99462a4c32ac12b48b to your computer and use it in GitHub Desktop.
Save ludwigm/2a99462a4c32ac12b48b to your computer and use it in GitHub Desktop.
Second flow for wifi presence monitoring http://flows.nodered.org/flow/697c03848c493eda297f
[{"id":"89afb086.76505","type":"http in","name":"","url":"/presence","method":"get","x":118,"y":513,"z":"79c218da.863de8","wires":[["22302f8f.ddcfd"]]},{"id":"22302f8f.ddcfd","type":"function","name":"Inject state","func":"msg.presence = context.global.state\nreturn msg;","outputs":1,"x":336,"y":512,"z":"79c218da.863de8","wires":[["167cd70a.e98329"]]},{"id":"167cd70a.e98329","type":"template","name":"Build template","template":"<h3>Presence: {{presence}}!</h3>","x":541,"y":512,"z":"79c218da.863de8","wires":[["cd28a3e8.32d76"]]},{"id":"cd28a3e8.32d76","type":"http response","name":"","x":720,"y":512,"z":"79c218da.863de8","wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment