#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Configuration for TTN VEGAPULS Air Prometheus Exporter Author: Hendrik Schutter, mail@hendrikschutter.com """ # HTTP Server configuration hostName = "127.0.0.1" serverPort = 9106 exporter_prefix = "vegapulsair_" # TTN MQTT Configuration # Get your credentials from TTN Console -> Applications -> Your App -> Integrations -> MQTT ttn_user = "appid@ttn" # Your application ID ttn_key = "THE APP API KEY FROM TTN CONSOLE" # Your API key ttn_region = "EU1" # TTN region: EU1, NAM1, AU1, etc. # Integration method: "mqtt" or "http" # - mqtt: Subscribe to TTN MQTT broker (recommended for real-time updates) # - http: Use HTTP Integration webhook (requires TTN webhook configuration) integration_method = "mqtt" # Timeout configuration # Time in hours after which a sensor is considered offline if no uplink is received sensor_timeout_hours = 19 # MQTT specific settings mqtt_keepalive = 60 # MQTT keepalive interval in seconds mqtt_reconnect_delay = 5 # Delay between reconnection attempts in seconds mqtt_reconnect_max_delay = 300 # Maximum delay between reconnection attempts # Logging configuration log_level = "INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL log_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" # Cache configuration cache_cleanup_interval = 3600 # Cleanup old cache entries every hour max_cache_age_hours = 72 # Remove cache entries older than 72 hours