• Stars
    star
    404
  • Rank 106,897 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A web interface for MQTT

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

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 [email protected]:fabaff/mqtt-panel.git

Dependencies

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 for test-messages.py.

$ sudo dnf -y install python-paho-mqtt

MQTT broker/server

A MQTT broker/server with Websocket support is needed.

  • mosquitto - An Open Source MQTT v3.1/3.11 broker
  • mosca - A multi-transport MQTT broker for node.js (Project seems abandoned)

Running mqtt-panel

  1. Make sure that your MQTT broker/server is running and listening.
  2. Adjust var host = '127.0.0.1'; and var port = 3000; in the file js/index.js to match your setup. Also, var topic = '#';.
  3. Open index.html in a modern web browser.

Generate MQTT messages

Start the ./test-messages.py 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 and adjust the broker and its port.

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

$ 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/#

Credits

mqtt-panel was inspired by the ideas of:

License

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

More Repositories

1

nix-security-box

Tool set for Information security professionals and all others
Nix
182
star
2

fedora-ansible

Ansible playbooks for Fedora
Jinja
102
star
3

alpine-ansible

Alpine Linux - Ansible Contrib Repository
Jinja
31
star
4

security-lab

Fedora Security Lab - The Fedora Security Lab (FSL) provides a safe test environment to work on security auditing, forensics, system rescue and teaching security testing methodologies in universities and other organizations. This repository is a copy of the original development.
JavaScript
29
star
5

fsl-test-bench

FSL Test bench - Ansible playbook repository to setup a save environment for security auditing and testing. It can be used for teaching security testing methodologies, testing tools, learning, and playing.
Jinja
25
star
6

make_centos

Create customized CentOS ISO images
Shell
16
star
7

mqtt-randompub

A publisher for random MQTT message to random topics.
Python
8
star
8

mqtt-dbus

Desktop notifications with Python DBus bindings if a MQTT message arrives
Python
7
star
9

penin

Information gathering and penetration testing framework
Python
3
star
10

pysysbot

Python based system jabber bot
Python
3
star
11

mqtt-notify

Desktop notifications with libnotify if a MQTT message arrives
Python
2
star
12

zerotier-client

A Python client wrapper for the ZeroTier API
Python
2
star
13

ch.bfh.bti7081.s2013.white

Software Engineering and Design - Group White
Java
1
star
14

mqtt-zenity

Desktop notifications with zenity if a MQTT message arrives
Shell
1
star
15

simpserial

A very simple tool to get data from serial ports
Python
1
star
16

set-bridge

Simple script to create a bridge for wire-tapping
Shell
1
star