Skip to main content

Command line interface for Nightscout API

Project description

Nightscout CLI

A command line interface for interacting with the nightscout glucose server.

Nightscout is a server for collecting information about blood glucose level. I am not personally a fan of the interface, but is somewhat standardized and integrated with the open source mobile app Juggluco so it makes sense to use this. Juggluco is compatible with freestyle libre devices.

Nightscout provides an API to access data (unlike commercially provided solutions). This tool provides a command line interface suitable for programming simple tools, prototyping and debugging.

Caveat

The cheapest devices you can obtain are aidex devices. These are half to a third the prices of other devices in the UK and can be obtained on aliexpress and alibaba. Some of these CGM devices are ridiculously overpriced in the US. Even buying the same device from aliexpress or similar may be substantially cheaper

The aidex 2 device shows minutely values - but unfortunately requires a chinese phone number for registration. The Aidex device requires an email but only updates every 5 minutes.

Someone (probably me) should reverse engineer these aidex devices and add them to a for of juggluco to substantially reduce the cost of these devices. But I am lazy and have limited timer

Installation

pipx install nightscout-cli

Usage

Create a user token and set a secret and your nightscout host export NIGHTSCOUT_API_SECRET=user-XXX NIGHTSCOUT_HOST=hsot

  • Get the last value: nightscout get
  • Push a new value: nightscout push 100
  • List values: nightscout list
  • Delete an entry: nightscout delete id

I will likely support a credential file in the not too distant history.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nightscout_cli-2.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nightscout_cli-2.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file nightscout_cli-2.0.0.tar.gz.

File metadata

  • Download URL: nightscout_cli-2.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nightscout_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a67c995392e23f77df2b383f13c9ca9eb49a6d5810febb84c22442c30a441485
MD5 117c2842bbd5bba5d3a41187753e1fe9
BLAKE2b-256 7df73dac63519e7dae5cf6abf7f045483085f15a1f4fd5ba3cc7dfe1d4dfb1b0

See more details on using hashes here.

File details

Details for the file nightscout_cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: nightscout_cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nightscout_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72b664918b993ef5620542909a688328a0b0963c7573568fa0690b9c1ba73d69
MD5 148ef4cb5cfd3ae31ff4689da34fc52f
BLAKE2b-256 1cb173b50c0a0d81196cafef8b46a8ad26ae76dbffed30489d49140b33e72421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page