/mqtt-svg-dash

SVG "live" dashboard from MQTT

Primary LanguageJavaScript

mqtt-svg-dash

Subscribe to MQTT, extract JSON from a message and make lights blink on an SVG page.

Pre-requisites

npm install socket.io

Running

  1. Make sure your MQTT server is running and listening on localhost.
  2. Launch ./run.sh which starts the Node socket server
  3. Point your Web browser at your Web server, to .../corp.html. You should see the connection in the terminal window running node.
  4. Start publishing something on MQTT, as per the example in randpub.py

Credits

  • The socket.io example for Node (pusher.js) and some bits of corp.html are by Robert Hekkers