JavaScript HTML Python
Switch branches/tags
Nothing to show
Clone or download
Latest commit d928d8b Apr 7, 2018
Failed to load latest commit information.
css Update bootstrap to 3.3.6 Feb 14, 2016
dist Adding jqplot missing libs Jul 3, 2014
js Remove Apr 7, 2018
LICENSE Add year Apr 7, 2018 Update Apr 7, 2018
index.html Update year Apr 7, 2018 Fix style issues Apr 7, 2018
screenshot.png Updated Aug 24, 2013 Update year Feb 2, 2017


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.


What to see mqtt-panel in action ->

The web page is using bootstrap with jQuery.


Get the files

Clone the mqtt-panel repository

$ git clone


mqtt-panel is using the listed projects to provide its functionality:

If you are using Fedora and want to generate MQTT messages, install the paho-mqtt Python bindings.

$ sudo dnf -y install python-paho-mqtt

MQTT broker/server

A MQTT broker/server with Websocket support is needed.

  • hbmqtt - MQTT broker with build-in websockets capabilities
  • 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. Or run python3 to use mqtt-panel with hbmqtt (make sure that you installed it with pip3 install hbmqtt).
  2. Adjust var host = ''; and var port = 3000; in the file index.html to match your setup if you are not using
  3. Open index.html.

Generate MQTT messages

Start the ./ script to publish test messages if you have no other source for messages. Depending on your broker you may need to set the supported version. On line 33: protocol=mqtt.MQTTv311

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

$ mosquitto_pub -V mqttv311 -h localhost -d -t home/front/door -m "false"

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

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


mqtt-panel was inspired by the ideas of:


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