hier mal meine conf.
Code: Alles auswählen
{
"retry": 0,
"daemon": true,
"verbosity": 0,
"log": "/var/log/vzlogger.log",
"local": {
"enabled": false,
"port": 8080,
"index": false,
"timeout": 0,
"buffer": 0
},
"mqtt": {
"enabled": true, // enable mqtt client. needs host and port as well
"host": "192.168.1.2", // mqtt server addr
"port": 1883, // 1883 for unencrypted, 8883 enc, 8884 enc cert needed,
"topic": "vzlogger/data",
"user": "mosquitto", // optional user name for the mqtt server
"pass": "*****", // optional password for the mqtt server
"timestamp": true
},
"meters": [
{
"enabled": true,
"allowskip": false,
"aggtime": 10,
"aggfixedinterval": true,
"protocol": "sml",
"device": "/dev/ttyUSB0",
"baudrate": 9600,
"parity": "8n1",
"read_timeout": 10,
"use_local_time": true,
"channels": [{
"api": "influxdb",
"host": "192.168.1.2:8086",
"database": "vzlogger",
"measurement_name": "vz_measurement",
"username": "vzlogger",
"password": "*****",
"uuid" : "a459ce20-f9fb-11ec-9325-370205639ef0",
"identifier" : "1-0:16.7.0",
"aggmode": "avg"
},{
"api": "influxdb",
"host": "192.168.1.2:8086",
"database": "vzlogger",
"measurement_name": "vz_measurement",
"username": "vzlogger",
"password": "*****",
"uuid" : "4bbe4d30-2609-11ec-964c-9b38916f31b2",
"identifier" : "1-0:1.8.0",
"aggmode": "max"
},{
"api": "influxdb",
"host": "192.168.1.2:8086",
"database": "vzlogger",
"measurement_name": "vz_measurement",
"username": "vzlogger",
"password": "*****",
"uuid" : "6afec810-2609-11ec-a2e3-d1cbc17562af",
"identifier" : "1-0:2.8.0",
"aggmode": "max"
}]
}
]
}