Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.32 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.32 KB

XBar plugin for Nightscout

Preview

This is an xbar plugin to show your BG levels in the OSX menu bar.

It's inspired on NightscoutBitBar.

Usage

You must edit the nighscout.1m.rb file to set up your configuration values. See the Configuration section below for extended information.

After you've setup the config vars, move the nightscout.1m.rb file into your xbar plugin folder.

Configuration

SITE must be changed to your Nightscout site name. If your Nightscout url is: https://jane-doe.herokuapp.com/ it should look like this:

SITE = 'https://jane-doe.herokuapp.com/'

Don't forget the slash at the end of the URL or the plugin won't work!

TOKEN must contain the token for the role with read access to the API. Check here the Nightscout docs on how to create an access token.

UNIT has mg/dl as default. Change it to mmol/L if that's the unit you have configured in your Nightscout site.

Limits are inside the LIMITS variable. They're setup with the default Nightscout limits for mg/dl and mmol/L. You can of course edit the values in case you need it.

Coming soon

  • Sound alerts (if supported by xbar)
  • Get limits directly from NightScout