-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Dave Schmid edited this page Nov 22, 2024
·
3 revisions
Parameter | Description | Default | Required | Example |
---|---|---|---|---|
MQTT Settings | ||||
MQTT_BROKER_ADDRESS | Address of the MQTT broker | - | Yes | mqtt.example.com |
MQTT_BROKER_PORT | Port number for MQTT broker | 1883 | Yes | 1883 |
MQTT_USERNAME | Username for MQTT authentication | - | Yes | mqttuser |
MQTT_PASSWORD | Password for MQTT authentication | - | Yes | password123 |
MQTT_TOPIC | MQTT topic for subscription | qingping/# | No | qingping/# |
MQTT_KEEPALIVE | MQTT keepalive interval (seconds) | 60 | No | 60 |
MQTT_USE_TLS | Enable TLS for secure MQTT connection | false | No | true |
MQTT_CLEAN_START | Enable clean session on MQTT connect | true | No | true |
Reconnection Settings | ||||
MAX_RECONNECT_DELAY | Maximum delay between reconnection attempts (seconds) | 60 | No | 60 |
MAX_RECONNECT_ATTEMPTS | Maximum number of reconnection attempts | 5 | No | 5 |
InfluxDB Settings | ||||
INFLUXDB_URL | InfluxDB server URL | http://localhost:8086/ | Yes | http://influxdb:8086/ |
INFLUXDB_TOKEN | Token for InfluxDB | - | Yes | your-token |
INFLUXDB_ORG | InfluxDB organization | - | Yes | myorg |
INFLUXDB_BUCKET | InfluxDB bucket for data | - | Yes | qingping |
INFLUXDB_BATCH_SIZE | Number of points to batch per write | 100 | No | 100 |
INFLUXDB_FLUSH_INTERVAL | Interval for flushing writes (ms) | 5000 | No | 5000 |
INFLUXDB_ENABLE_GZIP | Enable gzip compression for writes | true | No | true |
Logging Settings | ||||
LOG_LEVEL | Logging level | INFO | No | DEBUG |
LOG_FORMAT | Logging format | %(asctime)s - %(levelname)s - %(message)s | No | Custom format |
Custom Settings | ||||
USE_CURRENT_TIME | Use current time instead of payload timestamp | 1 | No | 0 |
SET_DEVICE_INTERVALS | Automatically set device intervals on startup | 0 | No | 1 |
DEFAULT_REPORT_INTERVAL | Default report interval for devices (seconds) | 10 | No | 10 |
DEFAULT_COLLECT_INTERVAL | Default collect interval for devices (seconds) | 10 | No | 10 |