Skip to content

mattyjones/pyportal_monitoring

Repository files navigation

T1D Monitoring with a Pyportal

LicenseDateReleases

Twitter

img

This uses an AdaFruit Pyportal to display the latest blood sugar from Nightscout along with a name and the current trend. The background color is determined by the current level and gives a quick visual as to the current state.

Prerequisites

  • A pyportal
  • A usb cable capable of transmitting data
  • A wifi connection
  • This requires version 4 of circuit python. You can download the latest file and install it using these instructions.
  • A functioning nightscout site

Installation

Once you have installed circuitpython copy the following to the CIRCUITPY folder.

  • lib/
  • fonts/
  • code.py
  • secrets.py
  • pyportal_startup.bmp
  • pyportal_startup.wav

You will also need to edit the secrets.py file and fill in the necessary configuration pieces. If your nightscout site has auth you will need to add the SHA1 hash of the secret as well. This can be ignored otherwise. The file contains further details.

The pyportal will automatically restart and if everything is configured properly then it should work.

Usage

The name displayed can be set in secrets.py and the position can be adjusted on the screen following the comments in code.py.

The background will change based on alert levels and will go purple if the data coming back from nightscout is stale (over a given threshold). These values can all be adjusted in code.py.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Nightscout on a PyPortal. Forked and expanded on from https://github.com/shanselman/NightscoutPyPortal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages