dev #1

Merged
adebaumann merged 9 commits from dev into main 2026-04-11 17:47:38 +00:00
Showing only changes of commit 787a922bd6 - Show all commits

View File

@@ -42,8 +42,11 @@ def log(level, msg):
print(f"[{_ts()}] {level:5s} {msg}")
_DEBUG = False
def info(msg):
if _cfg.get("debug", False):
if _DEBUG:
log("INFO", msg)
@@ -76,6 +79,10 @@ def _load_config():
_cfg = _load_config()
DEBUG = _cfg.get("debug", False)
global _DEBUG
_DEBUG = DEBUG
WIFI_SSID = _cfg["wifi_ssid"]
WIFI_PASSWORD = _cfg["wifi_password"]
MQTT_BROKER = _cfg["mqtt_broker"]