/CareLink

Repo for CareLink Windows App

Primary LanguageVisual Basic .NETMIT LicenseMIT

CareLink™ For Windows

Download Latest Release from

https://GitHub.com/paul1956/CareLink/releases/

Description

This application is designed to show all the available pump data in a visual version that mimics the one on iPhone and in tables that can be exported to Microsoft Excel or the Clipboard.

Same display

Some data is filtered out by default because I could not see any use for it. You can turn off filters from Options Menu. but performance will suffer.

Disclaimer And Warning

This project is intended for educational and informational purposes only. It relies on a series of fragile components and assumptions, any of which may break at any time. It is not FDA approved and should not be used to make medical decisions. It is neither affiliated with nor endorsed by Medtronic, and may violate their Terms of Service. Use of this code is without warranty or formal support of any kind. Try it out and send feedback.

Required Settings

A directory MyDocuments/CareLink/Settings contains a Settings File which is initially blank it will contain information about your pump that is not available from CareLink™.

  • Pump AIT
  • Insulin Type from drop down List, currently limited to 5 popular pump insulin type open issue it yours is missing and one listed isn't close
  • A check box to allow selection of AIT decay algorithm (one uses pump value for 770G only and an advanced one that is based on Insulin Type).
  • For MiniMed™ 780G it allows setting you pump Target SG for MiniMed™ 770G its fixed at 120
  • Lastly is an area where you can enter your Carb Ratio by time.

Updated

07/22/2024

What's New

New in 4.0.1.5

  • Update NuGet packages
  • Remove form.Closing and replace with FormClosing

New in 4.0.1.3

  • Fix another login issue after EU Server Update #59

  • Update NuGet Packages

  • New in 4.0.1.2

  • Fix issue Session expires after 35 minutes #58

  • New in 4.0.1.0

  • Fix ExpireTokenFormat

  • Add new Pump message

  • Complete rewrite of PDF file handling

New in 4.0.0.16

  • Fix RoundTo025 which was rounding wrong

New in 4.0.0.15

  • Improve Cleanup of obsolete files
  • Prevent crash when GitHub is unavailable

New in 4.0.0.14

  • More crash prevention
  • There is a change if Login FLow outside US that I have not been able to fix yet. After successfully logging in the code is redirected to log in again.
  • Improve Debug Display

New in 4.0.0.11

  • Update reCaptcha handling with code from marcindanek85
  • Improve Exit handling from Start Menu
  • Fix version checking crash when GitHub is not accessible

New in 4.0.0.10

  • Update NuGet's

New in 4.0.0.5

  • More fixes for reCaptcha

New in 4.0.0.0

  • Add some support for reCAPTCHA login
  • Add support for 740G Pump
  • Fix Pump Settings for Military Time
  • Add support for Manual Basal
  • Plot when pump is suspended
  • Improve error handling when download CareLink Settings

New in 3.9.1.0

  • Program will attempt to automatically download your CareLink Device Settings Report image
    • If successful it will update pump settings data from CareLink Report
    • If it fails you can manually download report to your computers download directory and under "Start Here" menu there is a option to manually import your settings. It will only be enabled if the program was unable to do it was unable to do it automatically. The program checks every 30 days automatically.
    • The second option is to show your settings in a way that maps to pump setup (experimental). Please report any issue with your CareLink report. Not every possible pump setting is in the PDF file on CareLink and I have not tested every possible report.
    • All settings and reports are stored in your MyDocuments\CareLink\Settings folder.

New in 3.8.5.1

  • Fix G4 Sensor life calculation and Warmup time

New in 3.8.5.0

  • Improve login logic for new CareLink servers including fix for EU Security upgrades
  • Add support for new 780G unknownIncompletedFlag
  • Add new error messages
  • Cleanup sorting and display of Record Number
  • More support for Pump, Local and UTC time zones

New in 3.8.4.1

  • Fixed support for Canada

  • Add support for 780G US new features

  • Voice recognition and speech

    • You can now ask "What is my SG" and other questions using your voice
    • Audio Alerts can be disabled by unchecking "Audio Alerts Enabled" under Options menu, this also disables speech recognition
    • Speech recognition also can be disabled by unchecking "Speech Recognition enabled" in Options menu
    • Announcement for out of range blood glucose in mmol/L
  • Improve label and calculations for TIR Compliance measurement

  • Improved fonts and images

New in 3.8.3.1

  • Improve display of Sg values in mmol/M
  • Make Tray Icon larger
  • Add Icon to Update Message in StatusBar
  • Add additional messages
  • Correct spelling errors in variable names
  • Align Sensor messages
  • Redo Standard Deviations Handling

New in 3.8.3.0

  • Correctly handle CareLink Authorization Server redirect
  • Correct application version display
  • Update help messages for copy of tables in DataGridViews
  • Handle CareLink Partners without Patient ID
  • Fix highlighting in StatusBar TimeZone field
  • Fix TimeZone display in status bar to provide additional information and handle Daylight Savings Time
  • Temp Target display for mmol/L
  • Fix parsing of command line parameters /Safe will clear Auto Login
  • Update formatting on home page for easier viewing
  • Improve Sensor error message display when missing and add missing messages

Requires for running

  • .NET Core 7.0.7 or later
  • Windows 10 or later

Requires for development

  • Visual Studio 2022 Version 17.6.4 later
  • .NET Core 7.0.7 or later
  • Windows 10 or later

License

  • MIT

Technologies

  • Windows Forms
  • dotnet-core

Topics

  • Medtronic CareLink™ data display

Known Issue for developers only

For the visualization layer I use the open source System.Windows.Forms.DataVisualization library https://GitHub.com/Kirsan31/WinForms-DataVisualization

  • If you get the error below

"System.Configuration.ConfigurationErrorsException: 'Configuration system failed to initialize'" will need to edit CareLink\src\CareLink\bin\Debug\net7.0-windows\CareLink.dll.config and remove the following lines

<system.diagnostics>
    <sources>
        <!-- This section defines the logging configuration for My.Application.Log -->
        <source name="DefaultSource" switchName="DefaultSwitch">
            <listeners>
                <add name="FileLog"/>
                <!-- Uncomment the below section to write to the Application Event Log -->
                <!--<add name="EventLog"/>-->
            </listeners>
        </source>
    </sources>
    <switches>
        <add name="DefaultSwitch" value="Information" />
    </switches>
    <sharedListeners>
        <add name="FileLog"
                type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
                initializeData="FileLogWriter"/>
        <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
        <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
    </sharedListeners>
</system.diagnostics>