From 3f6ef9aba3c56b746c02885bae169740c9ffa9bb Mon Sep 17 00:00:00 2001 From: yohan Date: Sat, 31 Aug 2024 14:09:46 +0000 Subject: [PATCH] Fix sensors API IP. --- thermostat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermostat.py b/thermostat.py index 877b2d2..73fc39a 100755 --- a/thermostat.py +++ b/thermostat.py @@ -124,7 +124,7 @@ def set_relay(relay, state): return "KO" def get_metric(metric, current_time, interval): - url = "http://localhost:3000/"+metric + url = "http://10.89.0.1:3000/"+metric try: r = requests.get(url) data = json.loads(r.text)