diff --git a/cron.py b/cron.py index acb4701..ac1e637 100644 --- a/cron.py +++ b/cron.py @@ -3,8 +3,9 @@ import csv from pushbullet import Pushbullet -# pushbullet API token -access_token = '' +# read pushbullet API token from pushbullet_token.txt +with open('pushbullet_token.txt') as token_txt: + access_token = token_txt.readline() # min download bandwith (bit/s) download_min = 75000000 @@ -16,7 +17,7 @@ upload_min = 25000000 ping_max = 30 # disable in production -test_run = False +test_run = True servers = [] s = speedtest.Speedtest() diff --git a/pushbullet_token.txt b/pushbullet_token.txt new file mode 100644 index 0000000..e69de29