How mohammed-abed-alkareem/librelinkup-desktop-widget works
LibreLinkUp Desktop Monitor is a Qt desktop widget and tray app for viewing CGM readings. The principal workflow is saved-account loading, LibreLinkUp authentication and patient selection, periodic/manual refresh, then displaying the reading and trend alongside a glucose graph and tray badge. Settings, widget controls, and tray actions are additional user-facing capabilities. The source excerpts are partial; unsampled details are represented only where the README documents them, and uncertain wiring is omitted.
Main entry points: main.py Glucose Widget
Components 11
Desktop UI
- Glucose Widget
main.py - Settings Dialog
main.py - Reading Display
main.py - Glucose Graph
main.py - System Tray
main.py - Context Menus
main.py
Refresh Runtime
- Refresh Timer
main.py - Fetch Worker
main.py
Account and API
- Saved Credentials
main.py - LibreLinkUp API
Other components
- User
Connections 15
- User → Glucose Widget: uses
- Glucose Widget → Saved Credentials: loads credentials
- Glucose Widget → Settings Dialog: opens
- Settings Dialog → Glucose Widget: returns account settings
- Glucose Widget → Refresh Timer: starts timer
- Refresh Timer → Glucose Widget: triggers refresh
- Glucose Widget → Fetch Worker: starts fetch
- Fetch Worker → LibreLinkUp API: authenticates and fetches
- Fetch Worker → Glucose Widget: emits status and data
- Glucose Widget → Reading Display: updates reading
- Glucose Widget → Glucose Graph: sets graph data
- Glucose Widget → System Tray: updates badge
- User → Context Menus: invokes actions
- Context Menus → Glucose Widget: dispatches controls
- System Tray → Context Menus: opens actions