SVG "live" dashboard from MQTT
JavaScript Python Shell
Switch branches/tags
Nothing to show
Clone or download
Jan-Piet Mens
Jan-Piet Mens typo
Latest commit 0cb213f Apr 22, 2013
Permalink
Failed to load latest commit information.
lib initial import Apr 22, 2013
README.md typo Apr 22, 2013
corp.html initial import Apr 22, 2013
corp.svg initial import Apr 22, 2013
jmbp-561.jpg initial import Apr 22, 2013
pusher.js initial import Apr 22, 2013
randpub.py initial import Apr 22, 2013
run.sh initial import Apr 22, 2013

README.md

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