Diabete and Linux

, par  brunocornec , popularité : 2%

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(r) 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.

https://brunocornec.files.wordpress...

PNG - 51.6 kio

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.

Filed under : FLOSS Tagged : Linux , Open Source http://feeds.wordpress.com/1.0/goco...

HTML - 7.4 kio
GIF - 43 octets

Voir en ligne : https://brunocornec.wordpress.com/2...

Sites favoris Tous les sites

84 sites référencés dans ce secteur