This is a webapp that allows Nightscout users to grant people temporary access to the server. Inspired by Google Maps' location sharing feature.
The webapp will prompt the user for an email address of the person to share access with, as well as the amount of time they will ahve access. It will generate a token and email it to the person. After the given time has passed, the app will revoke the token.
You will need
- a Nightscout server
- a subject with the
admin
role (created in Nightscout's admin page) - SMTP login info (look up how to get this from your email provider)
I want to eventually have a way to limit the bg values that can be seen by a temporary user to only values in their time frame. In other words, someone that has been given access from 1pm-3pm should only be able to see values from 1pm-3pm.
-
Check out the repo.
-
Install the Python requirements.
virtualenv -p python3 venv && source venv/bin/active && pip install -r requirements.txt
-
Create
config.yml
.cp config.yml.original config.yml
-
Open it and fill in the needed data for the smtp, nightscout, and login sections.
-
Start it up.
source venv/bin/activate && python run.py
-
Check out the repo.
-
Create
config.yml
.cp config.yml.original config.yml
-
Open it and fill in the needed data for the smtp, nightscout, and login sections.
-
Build the image.
docker-compose build
-
Start it up.
docker-compose up -d