From fd68c7b4da889282065adbc7bc3412aab7873b83 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 3 Nov 2017 11:31:19 +0100 Subject: [PATCH] Token moved to pushbullet section --- config.yaml | 5 ++++- notifier.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index 581db4de..b3bf9ef6 100644 --- a/config.yaml +++ b/config.yaml @@ -1,4 +1,7 @@ -pushbullet_token: o.EHMMnZneJdpNQv9FSFbyY2busin7floe +pushbullet: + token: o.EHMMnZneJdpNQv9FSFbyY2busin7floe + device: turing # Virtual PushBullet device linked to notifier + # device_id: (default: hostname) # debug: True (default: False) diff --git a/notifier.py b/notifier.py index f189b3f3..ac683473 100644 --- a/notifier.py +++ b/notifier.py @@ -28,7 +28,7 @@ config = {} with open(config_file,'r') as f: config = yaml.load(f) -API_KEY = config['pushbullet_token'] +API_KEY = config['pushbullet']['token'] DEVICE_ID = config['device_id'] \ if 'device_id' in config else socket.gethostname()