Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.1 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.1 KB

Simple notifier for Mac OS X. It grabs data from pebble endpoint on nightscout site and shows it as notification on desktop vie notify() command.

There is no installer at the moment but there is also good news - it's ultra simple. You've got two files: "com.nightscout.notifier.plist" and "nsnotifier.py". To install this "software" all You have to is:

Edit nsnotifier.py top variables:

ns_url = "http://yours.nightscout_address.com/"
min = 80
max = 160

and then do:

cp com.nightscout.notifier.plist ~/Library/LaunchAgents/
sudo cp nsnotifier.py /usr/local/bin/

To load for the first time notifier do:

$ launchctl load ~/Library/LaunchAgents/com.nightscout.notifier.plist
$ launchctl start com.nightscout.notifier

Some helpful commands:

$ launchctl load ~/Library/LaunchAgents/com.nightscout.notifier.plist 
$ launchctl start com.nightscout.notifier 
$ launchctl stop com.nightscout.notifier
$ launchctl unload ~/Library/LaunchAgents/com.nightscout.notifier.plist 
$ launchctl list | grep night