Fix sensors API IP.

This commit is contained in:
yohan 2024-08-31 14:09:46 +00:00
parent 2aad216f39
commit 3f6ef9aba3

View File

@ -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)