Loading repository data…
Loading repository data…
giovantenne / repository
WiFi glucose monitor that lets you check your blood sugar levels in real time with a small piece of hardware.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This is a free and open source project that lets you check your CGM-detected glucose values in real time with a small piece of hardware.
Supported CGM sources:
This is a remix of my other project CryptoGadgets v2 (CG2) that I created for my personal use. You can find the original project here

This is a stand-alone device. This means that you don’t need a PC to get it running and that you can simply power it through the usb-c port. Before doing so you will need to connect it to your WiFi network by following these simple steps:
You also can easily update the device firmware by downloading the latest version, if needed, from the following link: https://github.com/giovantenne/CG2-T1D/releases
You can check the firmware version you are currently running by simply looking at the display during the booting process, below the logo.
On every successful Wi‑Fi connection the device performs a lightweight OTA check; if a newer build is available on the update server it will show an "update in progress" screen and apply it automatically.
After reset, the device will no longer reconnect to your previous network until you reconfigure it.
The easiest way to flash firmware. Build your own CG2-T1D using the following firmware flash tool:

curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rulesgit clone https://github.com/giovantenne/CG2-T1Dcd CG2-T1D && pio run -t uploadThis project includes on‑device unit tests (Unity) for core helpers and persistence.
Build and run tests on the board:
pio test -e ttgo-t1 -vNotes:
#ifndef UNIT_TEST.src/app_state.cpp and include/app_state.h — global device state and externs (display, Wi‑Fi portal, runtime/config values)src/display.cpp and include/display.h — all rendering (fonts, icons, ticker/graph, status screens)src/api.cpp and include/api.h — LibreView HTTP client, JSON parsing into glucoseDocsrc/config.cpp and include/config.h — EEPROM persistence helpers and validationsrc/config_store.cpp and include/config_store.h — single point of mutation + persist for credentials and brightnesssrc/app_store.cpp and include/app_store.h — runtime mutation helpers (glucose values, trend, battery, points)src/portal.cpp and include/portal.h — captive portal, handlers, Wi‑Fi reset (erases NVS + credentials)src/buttons.cpp and include/buttons.h — button behaviors (brightness/zoom, deep sleep, force refresh)src/hardware.cpp and include/hardware.h — battery reading and sleep delaysrc/ota.cpp and include/ota.h — OTA check and applyinclude/board.h — board pinout and constants