Glucoscape is a small application that helps visualize Continuous Glucose Monitoring (CGM) data quickly and intuitively. It provides a heatmap representation of time spent below range, in range, and above range, allowing for easy identification of glucose patterns.
- Loads the last 14 days of CGM data from your own Nightscout instance.
- Uses the target range you have configured in Nightscout.
- Displays a heatmap representation of time spent below/in/above your target range for each hour of each day.
- Visually summarises time in range for each day ("what was my total time in range yesterday?")
- Visually summarises time in range for each hour of day ("what's my average time in range between 9 and 10am?")
To provide access to your Nightscout data, you need to check three things:
- Find your Nightscout instance address (URL).
- Create an access token which Glucoscape will use as a password when talking to Nightscout.
- You can create a token by going to your Nightscout menu > Admin Tools > Subjects - People, Devices > Add new Subject.
- Set
Name
to whatever you like, e.g.glucoscape
. - Set
Roles
toreadable
.
- Make sure your Nightscout instance has CORS enabled.
- Add
cors
to the list of enabled plug-ins. - See Nightscout docs for details.
- Add
This is the simplest way to use the app. It is pre-built and hosted directly by GitHub Pages.
- Navigate to vitawasalreadytaken.github.io/glucoscape
- Fill in your Nightscout address and access token and click Connect
- ⭐️ Optionally bookmark the page for easier access next time (the address will look like
https://vitawasalreadytaken.github.io/glucoscape/#session=%7B%22nightscoutUrl...
)
Your Nightscout address and access token are never saved by the app. A simple way to keep them (and skip the Connect step next time) is to bookmark the page. Note that the address and access token will be a part of your bookmarked address.
- Clone this repository
npm install
npm run build
- Open
build/index.html
in your browser - Fill in your Nightscout address and access token and click Connect
I have also built Koboscout, an 'ambient' app showing a chart of your latest CGM readings on an e-reader device or tablet.
I welcome contributions from the community. If you have suggestions, bug reports, or would like to contribute code, please open an issue or pull request here on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.