work #2

Merged
paradizelost merged 2 commits from work into main 2024-11-26 14:41:48 -06:00
Showing only changes of commit 96b7f4cbc0 - Show all commits

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