A node project that displays blood sugar values from a Nightscout site on Discord
If you're not sure what Nightscout is, check out nightscout.info for more information. I highly recommend setting up a personal Nightscout site if you're diabetic.
Simply download a Windows/Mac/Linux release from the releases tab.
Upon load, you'll be prompted to enter:
- Your Nightscout site's URL
- If you'd like the site to be linked on discord
- The values to trigger the low/high alarm status
- What units to use (mgdl or mmol)
If you'd like to modify any of these values later, they can be found in the config.yaml
file automatically generated in the same folder as the program. Either manually edit the file, or delete it to run the config wizard again.
Make sure you have discord open on the same PC. If the rich presence isn't showing up, double check that Game Activity is enabled in your settings.
This project is built with typescript.
For development, you'll need node.js and yarn.
If you don't have yarn installed, you can install it with
npm install --global yarn
To install all of the project's necessary dependencies, run yarn install
yarn run build # Run the typescript compiler
yarn run watch # Run the typescript compiler in watch mode
yarn run test # Run TSLint to check for errors
To bundle everything up into Windows/Mac/Linux executables use yarn run pkg
The compiled executables can be found in the dist
folder
This project is MIT licensed.
The Nightscout Logo by The Nightscout Foundation is licensed under CC BY-NC-ND 4.0.