A tool for pulling Nightscout data into InfluxDB.
- Download the binary from the releases page
- Or, build it yourself:
git clone https://github.com/nielsmaerten/nightscout-influxdb cd nightscout-influxdb/ make
- Copy
example.env
to.env
and fill in the values - Use the
--env
flag if the file is not in the working directory:
nightflux [--env /path/to/.env]
By default, running nightflux
will attempt to transfer all entries from
your Nightscout site to the target InfluxDB. If you want to use a custom
timeframe, use the --from
and --to
flags:
nightflux [--from 2024-10-01] [--to 2024-11-01]
To periodically pull your latest Nightscout entries into InfluxDB, simply run this tool as a cron job.
- Entries (just sensor values)
- Treatments (boluses, carbs, etc...)
This is a Saturday-afternoon kinda project. Not everything may work as intended.