- Notifications
You must be signed in to change notification settings - Fork1
Prototype apps for Garmin watches, PC and phones to view glucose levels from FreeStyle Libre sensors (LibreLinkUp app)
License
pleonex/LibreGlucoseWatcher
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Not for treatment decisions
The information presented in these apps should not be used for treatment ordosing decisions. Consult the glucose-monitoring system and/or a healthcareprofessional.
Prototype status
This repository contains only prototype software. It's developed at fast pacewithout considering the quality. The projects do not have any qualitystandards like tests, CI or documentation. The code may have performanceissues and bad design patterns. Check it or use it at your own risk.
Applications to monitor glucose levels fromFreeStyle Libre sensors (viaLibreLinkUp app connection). These applications do not connect to the sensordirectly but download the most recent data from servers. They require Internetconnection.
#WeAreNotWaiting
- Tested on: Garmin Forerunner 245 Music.
- Settings to configure account and glucose units.
- It updates every 5 minutes (due to Garmin API limitations).
- Requires connection to paired phone and Internet.
Widget for the main menu showing latest value available.
Data field to use during activities (e.g. running, hiking).
This is apersonal useat your own risk application. For that reason, it'snot published to the Connect IQ store. If you want to play and give it a try,you will need to perform a manual installation as follow:
- Follow thecompile steps.
- You may want to add compatibility to your product. Usually it would be justadding your watch model in the
manifest.xml
file by running the commandMonkey C: Edit Products.
- You may want to add compatibility to your product. Usually it would be justadding your watch model in the
- Connect your Garmin device into your computer.
- Copy the generated
*.prg
file into the Garmin device folderGARMIN/APPS
. - Due to a limitation in Garmin, we can't use the setting UI from GarminConnect to set the user name and password (seeissue).Follow this step instead:
- Open the project with VS Code.
- Open any *.mc file.
- Go to the tab "Run and Debug" and click its button. It will compile andrun the simulator.
- Set your email and password in the simulator fromFile > Edit PersistentStorage > Edit Application.Properties data
- Copy the setting file from the simulator (temp folder, in Windows at
%TEMP%\com.garmin.connectiq\GARMIN\APPS\SETTINGS
) into your Garmindevice:/garmin/apps/settings
.
- Install Garmin Connect IQ SDK and generate a developer license followingtheir instructions.
- Open VS Code in the subfolder of the project to compile. A file
monkey.jungle
must be in the top-level workspace. - Run the VS Code command "Build for Device".
- Uses .NET MAUI: compatible with Windows, MacOS, Android and iOS (and any newfuture platform).
- Tested on Windows and Android.
- Updates every minute. Recent changes from LibreLinkUp servers seems to onlyupdate every 15 minutes their data.
- Requires Internet connection.
As it's prototype application, no binaries are provided. Follow the steps incompile to generate the application.
- Windows: after compiling run the following command to create a portablebinary:
dotnet publish -f net7.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None
- Android: the easiest is to start debugging from Visual Studio. It willinstall the application the first time. Then you can open it from your phonewithout requiring VS.
- Install .NET 7 and MAUI followingthese steps.
- Build it using command-line or an IDE. You can usethese stepsas a reference, but opening
LibreGlucoseWatcher.sln
instead of creating anew application.
Garmin:
- Update data field app
- Create barrel
- Refactor into client + background class
- Display timestamp of last value
- Display arrow of graph
- Display message if value is quite old (> 5 min)
- Alert when it reaches threshold low and high
- Show data with colors
- Add graph like Dexcom app
Desktop / Mobile:
- Clean-up code
- Use selected units
- Create foreground service
- Show value in mobile notification
- Ring alarm (configurable) in phone
- Use Windows popups to display alerts
- Store values in a database
- Calculate stats (e.g. average, percentage, Hb1ac, histograms)
About
Prototype apps for Garmin watches, PC and phones to view glucose levels from FreeStyle Libre sensors (LibreLinkUp app)