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-1.0.0.tar.gz (5.1 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-1.0.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nightscout_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6da15b887ac6bc16d12ca17c1b9b5cd22c2507b04b14c6d59af1d9f83ca80e54
MD5 5ab8d5a28f0e040aaa0a0b33ee732711
BLAKE2b-256 9b73d3724f0876eaeebb86de51a18eaba6470939415b35da10d1b4f17fd8e2e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nightscout_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a846ae0f96b96ffa85bc2ae1509f6595389876c1abc77beebe3c3488fd0e706
MD5 6652ebdf5afe9f43db1775539141a094
BLAKE2b-256 0c04c88721633abe4d0d798c0a5f72d2febdf5a76d43a67d0fb0c8027300d877

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