move pushbullet api token to extra file
This commit is contained in:
parent
744be2ee7d
commit
a51ae70528
7
cron.py
7
cron.py
|
|
@ -3,8 +3,9 @@ import csv
|
||||||
|
|
||||||
from pushbullet import Pushbullet
|
from pushbullet import Pushbullet
|
||||||
|
|
||||||
# pushbullet API token
|
# read pushbullet API token from pushbullet_token.txt
|
||||||
access_token = ''
|
with open('pushbullet_token.txt') as token_txt:
|
||||||
|
access_token = token_txt.readline()
|
||||||
|
|
||||||
# min download bandwith (bit/s)
|
# min download bandwith (bit/s)
|
||||||
download_min = 75000000
|
download_min = 75000000
|
||||||
|
|
@ -16,7 +17,7 @@ upload_min = 25000000
|
||||||
ping_max = 30
|
ping_max = 30
|
||||||
|
|
||||||
# disable in production
|
# disable in production
|
||||||
test_run = False
|
test_run = True
|
||||||
|
|
||||||
servers = []
|
servers = []
|
||||||
s = speedtest.Speedtest()
|
s = speedtest.Speedtest()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue