Fix sensors API IP.
This commit is contained in:
parent
2aad216f39
commit
3f6ef9aba3
@ -124,7 +124,7 @@ def set_relay(relay, state):
|
|||||||
return "KO"
|
return "KO"
|
||||||
|
|
||||||
def get_metric(metric, current_time, interval):
|
def get_metric(metric, current_time, interval):
|
||||||
url = "http://localhost:3000/"+metric
|
url = "http://10.89.0.1:3000/"+metric
|
||||||
try:
|
try:
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
data = json.loads(r.text)
|
data = json.loads(r.text)
|
||||||
|
Loading…
Reference in New Issue
Block a user