From a51ae7052855a411ff2b168e37bf98007ff581d7 Mon Sep 17 00:00:00 2001 From: Jasper Roloff Date: Wed, 21 Jun 2017 20:02:10 +0200 Subject: [PATCH] move pushbullet api token to extra file --- cron.py | 7 ++++--- pushbullet_token.txt | 0 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 pushbullet_token.txt 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