https://github.com/wesleyac/cgmserver
Tiny nightscout-compatible server to write data from Xdrip+ to a SQLite database
https://github.com/wesleyac/cgmserver
Last synced: about 1 year ago
JSON representation
Tiny nightscout-compatible server to write data from Xdrip+ to a SQLite database
- Host: GitHub
- URL: https://github.com/wesleyac/cgmserver
- Owner: WesleyAC
- Created: 2021-01-23T12:04:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-23T13:01:07.000Z (over 5 years ago)
- Last Synced: 2025-04-19T05:29:17.403Z (about 1 year ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `cgmserver`
A very lightweight reimplementation of part of the [Nightscout](https://github.com/nightscout/cgm-remote-monitor) REST API, designed to read data from [Xdrip+](https://github.com/NightscoutFoundation/xDrip), write it to a SQLite database, and provide an API to get recent blood sugar measurements. Specifically, it implements the [`POST /api/v1/entries`](https://github.com/nightscout/cgm-remote-monitor/blob/f2fd923261e396d774e233d61421ce7ed705524e/swagger.yaml#L345) endpoint, a custom `/recents` endpoint which shows the last 45 minutes of data, and a custom `/now` endpoint which shows the most recent reading.
It should probably be run behind nginx or another reverse proxy which implements checking for the `API-Secret` header.