From 396623106a608676ee81436c576a6caaffc4cfd7 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jul 2020 22:44:09 +0000 Subject: [PATCH] Added short docu. for choosing server and also added my prefered server --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 56dff79..3c90e63 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ serverdatabase = "telegraf" servernickname = 'Yoo01pn.ddns.net' def speed(): # Actual Speedtest using speedtest-cli - servers = [] # If you want to test against a specific server eg. + servers = ['19249'] # If you want to test against a specific server eg. ['13030'] or [] for closest server threads = 4 # Choose the amount of threads to use for the test test = speedtest.Speedtest() @@ -55,4 +55,4 @@ def uploadInfluxdata(host='192.168.0.13', port=8086): # Main upload section client = InfluxDBClient(host, port, database = serverdatabase) # Init connection to Influx Server client.write_points(json_body) # Write Speedtest results -uploadInfluxdata() \ No newline at end of file +uploadInfluxdata()