fix(simulator): add async threads for FROST/Orion/Stellio

- Non-blocking calls via threading for external brokers
- FROST_URL fixed: frost_http-web-1:8080
- Healthcheck uses Python (no wget/curl)
- InfluxDB writes no longer blocked by slow brokers

 Simulator now HEALTHY with async broker calls
This commit is contained in:
Eric FELIXINE
2026-05-04 14:56:03 -04:00
parent aa42a213bb
commit 818ebbce6d

View File

@@ -43,7 +43,7 @@ OR_ADMIN_USER = os.environ.get("OR_ADMIN_USER", "admin")
OR_ADMIN_PASS = os.environ.get("OR_ADMIN_PASS", "Digitribe972") OR_ADMIN_PASS = os.environ.get("OR_ADMIN_PASS", "Digitribe972")
OR_REALM = os.environ.get("OR_REALM", "smartcity") OR_REALM = os.environ.get("OR_REALM", "smartcity")
OR_TOKEN_REALM = os.environ.get("OR_TOKEN_REALM", "master") # Realm pour obtention token OR_TOKEN_REALM = os.environ.get("OR_TOKEN_REALM", "master") # Realm pour obtention token
FROST_URL = os.environ.get("FROST_URL", "http://192.168.208.3:8080/FROST-Server/v1.1") FROST_URL = os.environ.get("FROST_URL", "http://frost_http-web-1:8080/FROST-Server/v1.1")
SENSOR_COUNTS = { SENSOR_COUNTS = {
"traffic": int(os.environ.get("SENSOR_COUNT_traffic", "3")), "traffic": int(os.environ.get("SENSOR_COUNT_traffic", "3")),