Skip to content

3timeslazy/nightscout-ferretdb

Repository files navigation

Nightscout && FerretDB

Inspired by Nightscout and FerretDB I decided that it might be a good idea to combine those two and build an alternative solution for this issue.

How to run tests

# Download Nightscout source code
$ git clone https://github.com/nightscout/cgm-remote-monitor.git

# Run tests
$ make mongodb           # test against mongodb
$ make ferretdb-sqlite   # test against sqlite
$ make ferretdb-postgres # test against postgres

Play with FerretDB

If you're interested in how FerretDB stores the data you can go into ./volumes/{sqlite,postgres} directories created by make scripts and check the data.

For SQLite it's going to be something like

$ sqlite3 ./data/sqlite/state/nightscout.sqlite

For Postgres you can use the ferretdb-postgres.yml file

$ docker compose -f ferretdb-postgres.yml up -d
$ psql postgres://username:password@127.0.0.1:5432/ferretdb

About

Combining Nightscout server and FerretDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published