Skip to content

Instantly share code, notes, and snippets.

@TotallyInformation
Last active August 29, 2015 14:20
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 TotallyInformation/272821b0b24ab133d2eb to your computer and use it in GitHub Desktop.
Save TotallyInformation/272821b0b24ab133d2eb to your computer and use it in GitHub Desktop.
Templated Web Page with live updates

This example can be used to output a standardised web page template. I've used Zurb Foundation to provide the structure.

It also shows how to use both raw websockets and MQTT over websockets (via the Paho library) to send/receive live data between the web page and Node-Red.

There are a number of dependencies, flows, subflows and files so I've put all the code on Github rather than here.

https://github.com/TotallyInformation/node-red-example-liveupdates

Output Subflow Input Listener Subflow Example Use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment