A Raspberry Pi Pico W based display for Nightscout CGM-in-the-Cloud data. Coded in MicroPython and using the PicoGraphics library.
I am currently working with data from a Libre 2 CGM which updates every 5 minutes so the display shows about 3+ hours of readings.
I am not a medical professional. Do not use for medical/dosing desicions.
- Raspberry Pi Pico W with Headers UK | US
- Pimoroni Pico Display Pack 2.0 UK | US
- USB-A to Micro-B cable data cable to configure and power
- Install the Pimononi PicoW Micropython build. See Getting started with Raspberry Pi Pico for further details.
- Edit the
main.py
file in this repo to configure theWIFI_SSID
,WIFI_PASSWORD
,NIGHTSCOUT_URL
,NIGHTSCOUT_TOKEN
andUTC_OFFSET
variables for your environment. - Install the editted
main.py
file onto your Raspberry Pi Pico W board, this can be done using the Thonny editor.
- Button A/B - Increase/Decrease Backlight
- Button X - Toggle display units (mmol/L or mg/dL)
- Button Y - Toggle Daylight Savings Time
This is just a basic implementation and has minimal error checking and exception handling. It would be nice to add a web based configuration interface however this would have required additional 3rd party libraries and make it more difficult to install. Currently it only uses standard MicroPython functions and included Pimoroni PicoGraphics libs.