A simple command-line interface for viewing Nightscout data.
Built with NightscoutKit.
mkdir NightscoutCLI
cd NightscoutCLI
git clone https://github.com/mpangburn/NightscoutCLI.git
make
The created program, ns
, will look for the NS_SITE
environment variable if its first argument is not a URL. For easier access to your Nightscout data, add
export NS_SITE=YOUR-NIGHTSCOUT-URL
to your ~/.bash_profile
.
OVERVIEW: Display recent Nightscout entries, treatments, and device statuses
USAGE: ns [url] [options]
If no url is specified, the environment variable NS_SITE
will be checked for the Nightscout URL.
If no options are specified, 10 blood glucose entries will be displayed.
OPTIONS:
--entries, -e Display blood glucose entries [default: 10]
--treatments, -t Display treatments [default: 10]
--devices, -d Display device statuses
--help Display available options
NightscoutCLI is released under the MIT license. See LICENSE for details.