mqtt-svg-dash
April 22, 2013 ยท View on GitHub
Subscribe to MQTT, extract JSON from a message and make lights blink on an SVG page.

Pre-requisites
npm install socket.io
Running
- Make sure your MQTT server is running and listening on localhost.
- Launch
./run.shwhich starts the Node socket server - Point your Web browser at your Web server, to
.../corp.html. You should see the connection in the terminal window running node. - Start publishing something on MQTT, as per the example in
randpub.py
Credits
-
The
socket.ioexample for Node (pusher.js) and some bits ofcorp.htmlare by Robert Hekkers