Git Product home page Git Product logo

qmqtt2sql's Introduction

QMQTT2SQL

QMQTT2SQL subscribes to a MQTT broker and stores all messages in a PostgreSQL database. It is published under the GPL3.0+ license.

Dependencies

Dependency Link
MQTT: https://mqtt.org/
QtMQTT: https://doc.qt.io/qt-5/qtmqtt-index.html

Install QtMQTT on raspbian

sudo apt-get install qtbase5-private-dev qt5-qtwebsockets-dev
git clone https://github.com/qt/qtmqtt.git --branch 5.15.2
cd qtmqtt
qmake-qt5 qtmqtt.pro
make
sudo make install

Configuration

The configuration is given in an INI file.

The MQTT connection parameters are given by the hostname, port, username, password, version, usetls and topic attributes. If no authentification is needed, username and password need to be empty. The version attribute excepts three values: 3 for MQTT 3.1, 4 for MQTT 3.1.1 and 5 for MQTT 5.0. If the MQTT connection is TLS encrypted the usetls attribute should be set to true, false otherwise. The MQTT topic can be filtered with the topic attribute, the default value is # (everything).

The PostgreSQL connection parameters are given by the hostname, port, username, password and database attributes.

[mqtt]
hostname=example.com
port=8883
username=USER
password=PASSWORT
version=3
usetls=true
topic=#

[psql]
hostname=example.com
port=5432
username=USER
password=PASSWORT
database=DATABASE

qmqtt2sql's People

Contributors

heinervdm avatar sergecroise avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sergecroise

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.