Giter Site home page Giter Site logo

carelink's People

Contributors

krikke99 avatar lefrenchguy avatar paul1956 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

carelink's Issues

change unit

Is there a way to change unit from mg/dL to mmol/L?
At my country we usually use mmol/L and numbers are (or should be at best) around 5.5.
As the values are in these ranges, it messes up the graph.
image

Nightscout / sponsorship

Howdy, great work! FWIW, I notice a lot of defensive warnings that I don't think are needed:

  • Right to repair protects patient rights use third party software without violating terms of service. In certain states it is illegal for manufacturers to claim this, and it is being enforced on a federal basis by the FTC.
  • The risk is low - this is may be considered Class I, low-risk, as it is read-only data. In any case T1Pal is registered with FDA as secondary display remote monitor and would be happy to add this carelink viewer as another registered device.

I'm very interested in promoting Nightscout connectivity, how would you feel about additional synchronizing to or from Nightscout?

dotNET 7.0.0

Dear Paul,
I just updated your programm. Now I got a prompt telling me to install dotNET 7.
The issue is I already have that installed. So.... any clue?

image

CareLink3.5.6.7 works fine by the way. :)

Build errors

i get a lot of build errors in the latest version.

image

"The given key 'MMOL_L' was not present in the dictionary."

First of all, thanks for making this, it seems incredibly practical!

As soon as I log in though, i get this error: "The given key 'MMOL_L' was not present in the dictionary". I'm guessing it's relevant that I'm in Norway, and therefore use mmol/l units, but have to have my Carelink account registered as a US account to avoid the Medtronic mandated 2FA in Norway. After the error appears the app is stuck loading.

I'm using the newest version (as of 24/7) of CareLink Windows App on Windows 10.

Here is the rest of the exception text:

System.Collections.Generic.KeyNotFoundException: The given key 'MMOL_L' was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at CareLink.UserMessageHandler.GetLocalizedUnits(String unitName) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Utilities\UserMessageHandler.vb:line 81 at CareLink.Form1.UpdateRegionalData(Dictionary2 localRecentData) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\Form1.vb:line 1524
at CareLink.Form1.FinishInitialization() in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\Form1.vb:line 1877
at CareLink.Form1.DoOptionalLoginAndUpdateData(Boolean UpdateAllTabs) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\Form1.vb:line 1864
at CareLink.Form1.Form1_Shown(Object sender, EventArgs e) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\Form1.vb:line 133
at System.Windows.Forms.Form.OnShown(EventArgs e)
at System.Windows.Forms.Form.CallShownEvent()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

Short basal and correction bars

Hi Paul, as I wrote yesterday, I have an issue with short basal and correction bars with the new version CareLink3.6.0.3x64. I tried to attached the required file CareLinkLastDownload(el-GR).jso but was not allowed from the system. So I have uploaded to WeTrasnfer, here is the relative link https://we.tl/t-a9SnsvPltu . Please advise if I have to upload it in a different way. Thank you.

Error login and update

Hi when I try to login the app crashes because it can't recognize the regional format for Greece (see attached file), when I change the regional format to English (United Kingdom) it works properly for some time and then it appears the message : The format of value 'application/json; charset=utf-8' is invalid and the update stops
CareLinkErrorReport(en-US)5.txt
carelink errors.docx

The application cannot login

Hi, after the version 3.4.0.7 which worked properly, in all the others, even the last one 3.5.7.7 when I try to type the user name, the application closes by itself.

Object reference not set to an instance of an object.

at CareLink.CareLinkUserDataList.get_Item(String itemName) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Records\UserDataRecords\CareLinkUserDataList.vb:line 100
at CareLink.LoginForm1.LoginForm1_Load(Object sender, EventArgs e) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\LoginForm1.vb:line 55
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

Widget not fully showing the numbers and change to glucose levels

image

I noticed that when I have it show blood glucose in mmol/L the decimal numbers do not show correctly. Also change to the blood glucose is shown as -1 when actual change was -0.60. This issue is most likely only with european way of using mmol/L vs mg/dL, but could it be possible to show actual changes in decimals as well, as it feels like a bug or oversight.

Occasional error when logging in

This error seems to be happen a bit randomly. I can login and everything works fine, but after few captcha solves this usually comes up and takes many hours before I can log back in again.

Below is error log

--- Start of Exception ---
Value does not fall within the expected range.
--- End of Exception ---
--- Start of stack trace ---
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Web.WebView2.Core.CoreWebView2.CallDevToolsProtocolMethodAsync(String methodName, String parametersAsJson)
at Microsoft.Web.WebView2.Core.DevToolsProtocolExtension.Page.CreateIsolatedWorldAsync(String frameId, String worldName, Nullable`1 grantUniveralAccess)
at A.C.A(String)
at WebView2.DevTools.Dom.WebView2DevToolsContext.A()
at WebView2.DevTools.Dom.CoreWebView2Extensions.CreateDevToolsContextAsync(CoreWebView2 coreWebView2, ILoggerFactory loggerFactory)
--- End of stack trace from previous location ---
{
"firstName": "First",
"lastName": "Last",
"medicalDeviceSerialNumber": "NGXXXXXH" // Its 780G pump
}

image

Exception during conversion data

I have a problem with language format of numbers....
" Conversion from string " 213.275" to type "Double" is not valid.
This is error for real data and test sample data as well. I think it comes from my own national local (polish) decimal pointer settings. In my case comma is a decimal pointer not dot.

It related with float values like:
reservoirRemainingUnits 213.275
"maxAutoBasalRate": 2.0,
"maxBolusAmount": 10.0,
"averageSGFloat": 123.38095

so some Functions GetDecimalValues in MathExtensions.vb, Form1.vb should be reviewed and more universal.

Situation is more complicated because in your case comma sign is already used as json data delimeter

More details on attached file
exception.txt
.

crashes on every attempt

Hi Paul

Again, thank you for all your effort.
Sorry, I am not a programmer and cannot help you much.
At moment the latest version crashes on every attempt.
It does the login but probably graph drawing causes the crash.
And yes, we have comma as decimal separator, not dot. So a number looks like 5,43
image
CareLinkErrorReport.zip

Visual Basic error with europan date format

When I try to use Carelink, I immediately receive an error saying: System.FormatException: String '23/07/2022 11:55:18' in ToSgList line 17 was not recognized as a valid DateTime.
When I click OK, the application vanishes.

Session expires after 35 minutes

Carelink is working properly but after about 35 minutes the session expires and the program stops updating and needs a new login
carelink_session_expire

Data difference at expoort in excel file

When exporting the data from Auto Basal Delivery Markers, I noticed that the Basal Rate values ​​in the excel file are not identical to those in Carelink.
AutoBasalExcel

non mi fuziona carelik su windows

buongiorno paolo l errore che mi da e questo --- Start of Exception ---
Interfaccia non registrata.

--- End of Exception ---
--- Start of stack trace ---
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Web.WebView2.Core.CoreWebView2.CallDevToolsProtocolMethodAsync(String methodName, String parametersAsJson)
at Microsoft.Web.WebView2.Core.DevToolsProtocolExtension.Runtime.EvaluateAsync(String expression, String objectGroup, Nullable1 includeCommandLineAPI, Nullable1 silent, Nullable1 contextId, Nullable1 returnByValue, Nullable1 generatePreview, Nullable1 userGesture, Nullable1 awaitPromise, Nullable1 throwOnSideEffect, Nullable1 timeout, Nullable1 disableBreaks, Nullable1 replMode, Nullable1 allowUnsafeEvalBlockedByCSP, String uniqueContextId)
at WebView2.DevTools.Dom.ExecutionContext.A(Boolean, String)
--- End of stack trace from previous location ---
{
"firstName": "First",
"lastName": "Last",
"medicalDeviceSerialNumber": "NG1234567H"
}
se mi puoi inviare una guida per email a [email protected]

constant login requests with related CAPTCHA.

Hi everyone, I'm very sorry but I'm forced to abandon the use of the beautiful app due to the constant login requests with related CAPTCHA. I also note that if you don't want to log in, it's impossible to exit the app... until you fill in the CAPTCHA photos. Thanks anyway for the great work done
(for info "auto login" always selected)
ver. in use 4.0.1.2 x 64 but from file donwloaded result 4.0.1.3 x 64

Doesnt add up

image

Doing the maths the total insulin should be 16.1 units not 13.9

I am using the previous version as the new version shuts down while trying to enter the username.

Many Thanks

App Open Error version 3.5.6.6x64

Dear Paul,

I have the error below when open the app:
at CareLink.CareLinkUserDataList.ContainsKey(String key) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Records\UserDataRecords\CareLinkUserDataList.vb:line 164
at CareLink.LoginForm1.LoginForm1_Load(Object sender, EventArgs e) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\LoginForm1.vb:line 54
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

With Ok and Cancel option. Ok do nothing, app crashes.

Please verify.

Regards,
Koteles Ferenc

Unable to login

Unable to login on Latin America Server (Argentina).
I tried with 2 differents account and computers.

Account:
nfontan (patient)
nfontanc (care partner)
image
image

No logs on document folder

Login failed

Login failed if the application is minimized for a while.

image

Object reference not set to an instance of an object. exception in AllTabPagesUpdate at 1847

Hi,
Wanna try your app but ;)

at CareLink.Form1.UpdateActiveInsulinChart(String memberName, Int32 sourceLineNumber) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\Form1.vb:line 1961
at CareLink.Form1.AllTabPagesUpdate() in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\Form1.vb:line 1847
at CareLink.Form1.Form1_Shown(Object sender, EventArgs e) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\Form1.vb:line 258
at System.Windows.Forms.Form.OnShown(EventArgs e)
at System.Windows.Forms.Form.CallShownEvent()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

In Belgium on win10

I also used auto login but now it's impossible to go out from this mode, when I click ok or cancel the app close itself.

Thx for your work

Question about database feature

At first thank you very much for your hard work.
Anyway I have a question whether do you plan to store longer history on any database (like Nightscout) for statistic's features or not ?

i cannot log in....

--- Start of Exception ---
Η κλάση δεν έχει καταχωρηθεί

--- End of Exception ---
--- Start of stack trace ---
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Web.WebView2.Core.CoreWebView2.CallDevToolsProtocolMethodAsync(String methodName, String parametersAsJson)
at Microsoft.Web.WebView2.Core.DevToolsProtocolExtension.Runtime.EvaluateAsync(String expression, String objectGroup, Nullable1 includeCommandLineAPI, Nullable1 silent, Nullable1 contextId, Nullable1 returnByValue, Nullable1 generatePreview, Nullable1 userGesture, Nullable1 awaitPromise, Nullable1 throwOnSideEffect, Nullable1 timeout, Nullable1 disableBreaks, Nullable1 replMode, Nullable1 allowUnsafeEvalBlockedByCSP, String uniqueContextId)
at WebView2.DevTools.Dom.ExecutionContext.A(Boolean, String)
--- End of stack trace from previous location ---
{
"firstName": "First",
"lastName": "Last",
"medicalDeviceSerialNumber": "NG1234567H"
}

Widget Bg level not displaying correctly

Seems like I have an issue that doesn't display the blood glucose level on widget. It does however display the recent change to it, and also I can see the blood glucose level correctly when switching to main display.

image
image

Object reference not set to an instance of an object.

Hello,

I can't login to the application. Once I try to type my password, the application shows this error
--- Start of Exception --- Object reference not set to an instance of an object. --- End of Exception --- --- Start of stack trace --- at CareLink.LoginForm1.UsernameTextBox_Leave(Object sender, EventArgs e) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\LoginForm1.vb:line 149 at System.Windows.Forms.ContainerControl.UpdateFocusedControl() --- End of stack trace from previous location --- { "firstName": "First", "lastName": "Last", "medicalDeviceSerialNumber": "NG1234567H" }

I is the first time I opened the application. I reinstall .NET 7.0 to be sure, but the behavior stays the same.
Windows version : Win11 22H2
CareLinkErrorReport(en-US)2.txt

Application version : CareLink3.5.7.21x64

Program fails to start Windows 10

--- Start of Exception ---
Key not found (Parameter 'Key')
--- End of Exception ---
--- Start of stack trace ---
at CareLink.SummaryRecordHelpers.GetValue[T](List`1 l, String Key) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Records\Pump Records\SummaryRecordHelpers.vb:line 186
at CareLink.Form1UpdateHelpers.Is770G() in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Helpers\UiHelpers\Form1UpdateHelpers.vb:line 32
at CareLink.InitializeDialog.InitializeDialog_Load(Object sender, EventArgs e) in C:\Users\PaulM\Source\Repos\CareLink\src\CareLink\Forms\InitializeDialog.vb:line 189
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
--- End of stack trace from previous location ---
{
"firstName": "First",
"lastName": "Last",

}

SG trend not showing correctly

image
image

It is showing +5 and not +0,05, the BG unit we use here is mmol/L, thats most likely why it is off. not a real big issue.. but hey.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.