jpmens / mqtt-svg-dash

SVG "live" dashboard from MQTT

Home Page:http://jpmens.net/2013/04/22/live-blinkenlights-dashboard-with-svg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

SVG "live" dashboard from MQTT

http://jpmens.net/2013/04/22/live-blinkenlights-dashboard-with-svg/


Languages

Language:JavaScript 92.9%Language:Python 6.8%Language:Shell 0.3%