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()