Skip to content

legoandmars/nightscout-discord-rich-presence

Repository files navigation

Nightscout Discord Rich Presence

A node project that displays blood sugar values from a Nightscout site on Discord

An example of a discord user using rich presence Another example of a discord user using rich presence

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.

Usage

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.

Development

This project is built with typescript.

Setup

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

Commands

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

Packaging

To bundle everything up into Windows/Mac/Linux executables use yarn run pkg

The compiled executables can be found in the dist folder

License

This project is MIT licensed.

The Nightscout Logo by The Nightscout Foundation is licensed under CC BY-NC-ND 4.0.

About

Allows nightscout to display your blood sugar on discord

Resources

License

Stars

Watchers

Forks

Packages

No packages published