Skip to content

A simple command-line interface for viewing Nightscout data.

License

Notifications You must be signed in to change notification settings

iamgp/NightscoutCLI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nightscout CLI

Swift 4.0 MIT @pangburnout

A simple command-line interface for viewing Nightscout data.

Built with NightscoutKit.

Installation

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.

Usage

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

License

NightscoutCLI is released under the MIT license. See LICENSE for details.

About

A simple command-line interface for viewing Nightscout data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 98.7%
  • Makefile 1.3%