Added short docu. for choosing server and also added my prefered server

This commit is contained in:
root 2020-07-28 22:44:09 +00:00
parent 648b2b5fa7
commit 396623106a

View File

@ -11,7 +11,7 @@ serverdatabase = "telegraf"
servernickname = 'Yoo01pn.ddns.net' servernickname = 'Yoo01pn.ddns.net'
def speed(): # Actual Speedtest using speedtest-cli 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 threads = 4
# Choose the amount of threads to use for the test # Choose the amount of threads to use for the test
test = speedtest.Speedtest() 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 = InfluxDBClient(host, port, database = serverdatabase) # Init connection to Influx Server
client.write_points(json_body) # Write Speedtest results client.write_points(json_body) # Write Speedtest results
uploadInfluxdata() uploadInfluxdata()