Diabete and Linux

Last September, I was diagnosed with diabete. I had to pass 5 days in the hospital for complete exams, and was given insulin to solve that issue.

One of the thing you have to do in such case is take your blood sugar level very regularly to check that evrything is fine. And to do that, you have a small equipment which puch your finger, measure the level and store it. Of course, you want to be able to keep that for analysis, communication with your doctors, …

So I was provided with 3 different equipment at the hospital. One was working very well with Linux. USB connection, seen as a drive, equiped with an html page and some javascript to make graphs, stats, tables, … That was the only working so nice with Linux so I went for it. That model is the Accu-Chek® Mobile from Roche. And of course, it’s also a excellent medical choice as it provides everything in it, no test strip to handle, needles included. Very handy.

Accu-Chek Mobile demo

In order to prepare my meeting with the specialist, after 3 months, I wanted to copy everything on my Linux system, and prepare graphs and tables locally, as well as making a backup. But the software provided wasn’t working at all once copied on my system. I had the main page, but nothing was creating the pictures I was used to see when using the device connected through USB.

It turns out there are issues with upper and lower case in the code made on the device. Probably few people have tested it with Linux before😉
So I made a patch to apply after copying the content of the device on my hard drive, and now everything works as expected.

The patch is the following:

diff -ru /run/media/bruno/ACCU-CHEK/html/start_body.htm ./html/start_body.htm
--- /run/media/bruno/ACCU-CHEK/html/start_body.htm      2012-07-18 13:08:50.000000000 +0200
+++ ./html/start_body.htm       2015-10-29 00:41:52.903662869 +0100
@@ -15,7 +15,7 @@
     http://../jquery/jquery.blockUI.js
     http://../jquery/base64.js
     http://../jquery/canvas2image.js
-    http://../js/setting.js
+    http://../js/Setting.js
     http://../js/bg_raw_data.js
     http://../js/bg_database.js
     http://../js/Trend_graph.js
diff -ru /run/media/bruno/ACCU-CHEK/html/start_header.htm ./html/start_header.htm
--- /run/media/bruno/ACCU-CHEK/html/start_header.htm    2012-07-18 13:08:50.000000000 +0200
+++ ./html/start_header.htm     2015-10-29 02:10:58.384108253 +0100
@@ -6,7 +6,7 @@
     
     http://../flot/jquery.js
     http://../jquery/jquery.i18n.properties.js
-    http://../js/setting.js
+    http://../js/Setting.js
     http://../js/Messages.js
     http://../js/Tools.js
 
@@ -104,7 +104,7 @@
         //crc check
         if (settings[14] === 1 && (m_useIE || m_useFF || (m_useOpera && m_useOperaVer < 11) || m_useSafari)) {
             g_totalCRC32 = 0;
-            checkCrcValue('../start.html');
+            checkCrcValue('../Start.html');
             checkCrcValue('../html/start_body.htm');
             checkCrcValue('../html/start_header.htm');
             checkCrcValue('../bundle/Messages_de.properties');
@@ -184,6 +184,8 @@
                 alt: 'len error'
             });
         }
+               // BCO
+               m_checkjs = 0;
         //title
         if (m_useIE || m_useFF) {
             window.parent.document.title = jQuery.i18n.prop('msg_HTMLTitle')

The last patch avoids a check based on the serial number to be done, which was creating issues for me so that’s why I desactivated it.

You also need to rename an image:

mv images/KLine.JPG KLine.jpg

Once you’ve done that, you can enjoy using your device content locally without an issue !
If someone from Roche reads this, would be great to modify upstream for future versions.

Anyway, since January, I’ve stppoed insulin as my level was extremely good and I wasn’t needed it anymore. Doing 30′ of bicycle per day and paying more attention to not eat 3 desserts too often (or very large milk-shakes as during our trip in the US, just before my blood test) is definitely helping. The next stpe is to reduce the number of medicines I’m still taking. I should start to test that next month.

Tags: ,

2 Responses to “Diabete and Linux”

  1. Simon Says:

    Look after yourself Bruno as your health is more important than a patch.

    Keep up the good work.

    Cheers

    • brunocornec Says:

      Well, of course you’re right. But that should underline that in the health care sector, having Open Source software is even more important due to the fact that, well, its your life !!
      So if you’re given all the means to act to improve it, it’s indeed better for you. And this patch is a proof of that IMO.

      Thanks a lot for your support Simon !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: