Skip to content

Latest commit

 

History

History
61 lines (54 loc) · 2.42 KB

README.md

File metadata and controls

61 lines (54 loc) · 2.42 KB

Lines of Code Duplicated Lines (%) Coverage Technical Debt OpenSSF Scorecard

mqtt-gateway

This is an example for a gateway component which receives MQTT messages from

and writes the data into InfluxDB / TimescaleDB (PostgreSQL) time series databases.

Example configuration

File config.yml in root folder:

mqttUrl: "mqtt://<hostname>:1883"
mqttClientId: "sensors_gateway"
sources:
  - name: "Sensor data"
    type: "sensor"
    prefix: "sensors"
    targets:
      - type: "influxdb"
        url: "http://<host>:8086"
        database: "sensors"
      - type: "postgresql"
        host: "<postgres host>"
        port: 5432
        user: "<psql username>"
        password: "<psql password"
        database: "sensors"
  - name: "Shelly data"
    type: "shelly"
    prefix: "shellies"
    targets:
      - type: "influxdb"
        host: "<influx host>"
        port: 8086
        database: "shelly"
      - type: "postgresql"
        host: "<postgres host>"
        port: 5433
        user: "<psql username>"
        password: "<psql password>"
        database: "shelly"
  - name: "PV data"
    type: "opendtu"
    prefix: "solar"
    targets:
      - type: "influxdb"
        host: "<influx host>"
        port: 8086
        database: "solar"