added getting data from nightscout
This commit is contained in:
@@ -1,3 +1,37 @@
|
||||
# glucose-dashboard
|
||||
|
||||
dashboard van glucose data
|
||||
Dashboard van glucosedata, live opgehaald uit een [Nightscout](https://nightscout.github.io/)-instantie.
|
||||
Toont een rollend venster (standaard 24 uur) van je CGM-curve met insuline,
|
||||
koolhydraten en pomp-/sensorwissels overlay, plus time-in-range-cijfers.
|
||||
|
||||
## Instellen
|
||||
|
||||
1. Zorg voor een draaiende Nightscout-instantie en een API-token (Admin Tools
|
||||
> Manage Tokens in Nightscout — geef het token minimaal `readable`-rechten)
|
||||
of het klassieke API secret.
|
||||
2. Kopieer `.env.example` naar `.env` en vul `NIGHTSCOUT_URL` en één van de
|
||||
twee auth-opties in.
|
||||
3. Lokaal draaien:
|
||||
|
||||
```bash
|
||||
uv venv
|
||||
uv pip install -r requirements.txt
|
||||
set -a; source .env; set +a # of: laad de vars op je eigen manier
|
||||
streamlit run app.py
|
||||
```
|
||||
|
||||
4. Met Docker Compose:
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
`docker-compose.yml` leest `.env` via `env_file` — dat bestand wordt niet
|
||||
meegecommit (zie `.gitignore`).
|
||||
|
||||
## Tests en lint
|
||||
|
||||
```bash
|
||||
pytest tests/ -v
|
||||
ruff check .
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user