Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Roche Accu-Chek Smart Pix device #1432

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

mrinnetmaki
Copy link
Contributor

This is an initial pull request, to start discussion on supporting the Smart Pix reader device.

This version supports only model 1 / gray SmartPix readers, reading only insulin pumps (not glucometers yet).
The reader must be attached and mounted (it shows as mass storage device) before reading is started.

The XML part expects the document to be read with xml2js.

The pump data parser understands only name of Spirit/Combo pump, but assuming that it is the reader that generates the report format, it should handle other pumps too.

The parser understands data generated by Smart Pix 1 firmwares 3.01.03
and 3.05.01, but others should work too.

Time zone and time changes are not yet handled properly.

Props mainly to @jlaunonen for the work this far.

jlaunonen and others added 12 commits August 31, 2021 18:04
This version supports only model 1 / gray SmartPix readers, reading
insulin pumps.
The reader must be attached and mounted (it shows as mass storage
device) before reading is started.

The XML part expects the document to be read with xml2js.
The pump data parser understands only name of Spirit/Combo pump, but
assuming that it is the reader that generates the report format, it
should handle other pumps too.

The parser understands data generated by Smart Pix 1 firmwares 3.01.03
and 3.05.01, but others should work too.
This continues the support for model 1 / gray SmartPix reader, adding
blood glucose measurement parsing.

The meter data parser understands only name of Aviva Combo, but
assuming that it is the reader that generates the report format, it
should handle other meters too.

The parser understands data generated by Smart Pix 1 firmwares 3.05.01,
but others should work too.
To make it easier to read a externally stored report, make
QUICKK_SINGLE_REPORT also accept a string as path to the report.
This requires that the Driver.process accepts full path directly as
argument instead of assuming it being a relative path.
makeFood() object was changed to have with_amount() in place of
with_carbs().

- Fix few style etc issues.
- Remove unneeded clockDriftOffset from both BG and IP parsers.
The implementation does not handle time changes (usually DST) and so
might produce offset on time in one side of the jump.
- Use default export for the parser implementations' entry functions.
- Shorten a too long line.
- Disable few eslint rules for require('drivelist'), same pattern used
elsewhere in the project.
@gniezen
Copy link
Member

gniezen commented Feb 20, 2023

@mrinnetmaki Will you be able to agree to the VCLA on https://developer.tidepool.org/contributors/ ?

@mrinnetmaki
Copy link
Contributor Author

@mrinnetmaki Will you be able to agree to the VCLA on https://developer.tidepool.org/contributors/ ?

Hi! Only saw this now, apologies. VCLA sent to legal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants