adding logging
All checks were successful
/ Plan (push) Successful in 1m5s

This commit is contained in:
Dan Hamik 2024-11-26 14:31:41 -06:00
parent 6616bf7fae
commit 96b7f4cbc0

View File

@ -21,6 +21,7 @@ infdbpass = os.environ["INFLUX_PASSWORD"]
influxuri = os.environ["INFLUX_URI"]
while(True):
response = sp.getstatusoutput(f"speedtest --format=json")[1]
print(response)
respjson = json.loads(response.split("\n")[1])
print(response)
downspeed = respjson['download']['bandwidth'] * 8 / 1024 / 1024