diff --git a/simulator.py b/simulator.py index 193a6127..4ff62915 100644 --- a/simulator.py +++ b/simulator.py @@ -83,7 +83,7 @@ REDPANDA_PORT = int(os.environ.get("REDPANDA_PORT", "8082")) REDPANDA_BASE = f"http://{REDPANDA_HOST}:{REDPANDA_PORT}" # InfluxDB config -ENABLE_INFLUX = os.environ.get("ENABLE_INFLUX", "1") == "1" +ENABLE_INFLUX = os.environ.get("ENABLE_INFLUX", "1").lower() in ("1", "true", "yes", "on") INFLUX_URL = os.environ.get("INFLUX_URL", "http://smart-city-influxdb:8086") # InfluxDB v2 sur smartcity-shared INFLUX_ORG = os.environ.get("INFLUX_ORG", "digitribe") INFLUX_BUCKET = os.environ.get("INFLUX_BUCKET", "iot_data")