/nightscout-influxdb

Push your Nightscout data into InfluxDB

Primary LanguageTypeScriptMIT LicenseMIT

Nightscout to InfluxDB

A tool for pulling Nightscout data into InfluxDB.

Getting started

  • Download the binary from the releases page
  • Or, build it yourself:
    git clone https://github.com/nielsmaerten/nightscout-influxdb
    cd nightscout-influxdb/
    make

First run

  • 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]

Crontab

To periodically pull your latest Nightscout entries into InfluxDB, simply run this tool as a cron job.

Roadmap

  • Entries (just sensor values)
  • Treatments (boluses, carbs, etc...)

Work in progress

This is a Saturday-afternoon kinda project. Not everything may work as intended.