Compare commits

...

3 Commits

Author SHA1 Message Date
6848570758 Merge pull request 'work' (#2) from work into main
Reviewed-on: #2
2024-11-26 14:41:41 -06:00
ab6ca7fac6 accept speedest eula
All checks were successful
/ Plan (push) Successful in 57s
/ Plan (pull_request) Successful in 16s
/ Deploy (pull_request) Successful in 13s
2024-11-26 14:33:46 -06:00
96b7f4cbc0 adding logging
All checks were successful
/ Plan (push) Successful in 1m5s
2024-11-26 14:31:41 -06:00

View File

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