Skip to content

ismagom/mqtt-galileo-panel

 
 

Repository files navigation

This is a fork of https://github.com/fabaff/mqtt-panel

mqtt-panel for Galileo Sensors

View VBAT, solar panel and resistor voltage published by https://github.com/ismagom/mqtt-galileo-solar in the Galileo Board.

mqtt-panel

A simple web interface which is able to subscribe to a MQTT topic and display the information.

The screenshot shows an example how to keep track on what's going in your apartment or your house. It's not about controlling, this setup is about observing various states.

screenshot

What to see mqtt-panel in action -> http://youtu.be/Qb0UJa9kf2g

The web page is using bootstrap with jQuery.

Prerequisites/Installation

Get the files

Clone the mqtt-panel repository

git clone git@github.com:fabaff/mqtt-panel.git

###Dependencies mqtt-panel depends on a couple of additional pieces:

npm install mqtt socket.io sqlite

MQTT broker/server

A MQTT broker/server is needed to run on localhost on port 1883.

  • mosca - A multi-transport MQTT broker for node.js
  • mosquitto - An Open Source MQTT v3.1 Broker

Running mqtt-panel

  1. Make sure that your MQTT broker/server is running and listening.
  2. Launch ./runner.sh which will start the node server incl. the web socket on port 3000.
  3. Run the mqtt-galileo-sensors program in the Galileo Board, or publish MQTT messages manually.
  4. Open index.html with your browser.

For manually sending messages to your MQTT broker/server you can use mosquitto_pub from mosquitto.

$ mosquitto_pub -h localhost -d -t home/solar -m "100"

To check if the messages are are ok, subscribe to the topic home/# with mosquitto_sub.

$ mosquitto_sub -h localhost -d -t home/#

Credits

mqtt-panel was insired by the ideas of:

License

mqtt-panel licensed under MIT, for more details check LICENSE.

About

A web interface for MQTT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 65.2%
  • Python 29.9%
  • Shell 4.9%