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.
Metadata
Release files for nightscout-cli 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nightscout_cli-2.0.0.tar.gz | 6.6 kB | Without provenance | Details for nightscout_cli-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nightscout_cli-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for nightscout_cli-2.0.0-py3-none-any.whl |
Total release size: 13.8 kB
Release files / nightscout_cli-2.0.0.tar.gz
| Download URL | nightscout_cli-2.0.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a67c995392e23f77df2b383f13c9ca9eb49a6d5810febb84c22442c30a441485
|
|
BLAKE2b-256 checksum How to use checksums |
7df73dac63519e7dae5cf6abf7f045483085f15a1f4fd5ba3cc7dfe1d4dfb1b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / nightscout_cli-2.0.0-py3-none-any.whl
| Download URL | nightscout_cli-2.0.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72b664918b993ef5620542909a688328a0b0963c7573568fa0690b9c1ba73d69
|
|
BLAKE2b-256 checksum How to use checksums |
1cb173b50c0a0d81196cafef8b46a8ad26ae76dbffed30489d49140b33e72421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for nightscout-cli 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.