summaryrefslogtreecommitdiffstats
path: root/glucometerutils (unfollow)
Commit message (Expand)AuthorFilesLines
2021-03-01fslibre: don't drop the first and last characters of the comment.Diego Elio Pettenò1-1/+1
2021-03-01Re-add missing td42xx tests.Diego Elio Pettenò1-0/+28
2021-02-25td42xx: rename the previous td4277 driver, and support TD-4236B.Diego Elio Pettenò2-36/+16
2020-10-04Add py.typed file to mark the package as typed.Diego Elio Pettenò3-0/+9
2020-10-04Use 0BSD instead of Unlicense for copyright disclaim.Diego Elio Pettenò6-6/+6
2020-10-04Depend on freestyle-hid for FreeStyle support and remove tools.Diego Elio Pettenò2-283/+16
2020-09-07Update pre-commit plugins to the latest versions as of today.Diego Elio Pettenò15-16/+39
2020-08-02Make use of modern Python ordered kwargs.Svetlana Pantelejeva7-121/+119
2020-05-16Remove f-string prefix from strings with no placeholders.Diego Elio Pettenò1-1/+1
2020-05-16Add pre-commit configuration for REUSE.software.Diego Elio Pettenò6-0/+18
2020-04-20Make the project compliant with the REUSE guidelines.Diego Elio Pettenò1-1/+2
2020-04-09When no action is provided by user, print the help output instead.Diego Elio Pettenò1-3/+4
2020-04-09Move driver loading to glucometerutils.driver.Diego Elio Pettenò2-7/+22
2020-04-09Rename driver.GlucometerDriver to driver.GlucometerDevice.Diego Elio Pettenò11-11/+11
2020-04-09Move driver_base to glucometerutils.driver instead.Diego Elio Pettenò11-34/+28
2020-03-27Add missing SPDX-FileCopyrightText throughout the project.Diego Elio Pettenò31-0/+31
2020-03-27The big typing cleanup.Diego Elio Pettenò22-304/+408
2020-03-27Bring up command line error as we only support Python 3.7+ now.Diego Elio Pettenò1-2/+2
2020-03-27Combine a strangely-separated string.Diego Elio Pettenò1-1/+1
2020-03-27Fix typing for contourusb support module.Diego Elio Pettenò1-32/+33
2020-03-27Use PEP526 declarations rather than `attr.ib()` calls all over.Diego Elio Pettenò1-38/+32
2020-03-26Fix errors identified by flake8.Diego Elio Pettenò11-26/+18
2020-03-22Make HID support a "session" class rather than a base class.Diego Elio Pettenò8-122/+148
2020-03-16Move tests to be organized within the source directory.Diego Elio Pettenò12-0/+478
2020-03-14Fix version information formatting.Diego Elio Pettenò1-1/+3
2020-03-14Now that Python 3.6 is the minimum supported version, use f-strings.Diego Elio Pettenò14-72/+48
2020-03-08format code with blackBen23-931/+1026
2020-03-06FreeStyle: fix keepalive message handling for non-Libre devices.Diego Elio Pettenò1-1/+1
2020-03-06Fix typo.Diego Elio Pettenò1-2/+2
2020-02-18factor out common driver methodsBen14-101/+114
2020-02-18Bugfix: get current time within the functionBen8-8/+30
2020-01-25contourusb: fix mypy typing.Diego Elio Pettenò1-6/+9
2020-01-25freestyle: add some (rough) support for encrypted messages.Diego Elio Pettenò1-17/+80
2020-01-25freestyle: raise exceptions if a command returned an error state.Diego Elio Pettenò1-0/+7
2020-01-25freestyle: simplify the code for initialization further.Diego Elio Pettenò1-9/+3
2020-01-24freestyle: only send command 0x01 to initialize the device.Diego Elio Pettenò1-1/+1
2019-09-26Make InvalidChecksum parameters and message harder to misunderstand.Diego Elio Pettenò1-3/+3
2019-09-25Add driver implementation for Ascensia ContourUSB.Arvanitis Christos2-0/+409
2019-09-24Remove try/except around typing imports.Diego Elio Pettenò4-20/+4
2019-09-21freestyle: fix return type for empty log.Diego Elio Pettenò1-1/+1
2019-09-08fslibre: add support for factory resetting FreeStyle Libre device.Diego Elio Pettenò1-1/+5
2019-09-08freestyle devices: don't error out if there are no readings.Diego Elio Pettenò1-0/+4
2019-09-02fsoptium: fix error in date stirng parsing.Diego Elio Pettenò1-1/+1
2019-09-02Drop support for Python 3.4.Diego Elio Pettenò1-2/+2
2019-09-02Use the new website URL for glucometer-protocols.Diego Elio Pettenò5-9/+8
2019-09-02Use type= parameters in attr.ib() declarations.Diego Elio Pettenò1-16/+18
2019-09-02Replace the device_id attribute with a more generic extra_data dictionary.Diego Elio Pettenò2-6/+8
2019-09-02add internal device id to glucose measurements (and other entries) to prepare for better sortingBen2-3/+11
2019-09-01Add type: ignore comments when using lifescan_binary_protocol.Timestamp.Diego Elio Pettenò3-9/+9
2019-08-03td4277: new driver for rebranded TaiDoc TD-4277 glucometers.Diego Elio Pettenò1-0/+234
2019-07-30FreeStyle devices: don't error out for non-ASCII patient names.Diego Elio Pettenò1-15/+27
2019-07-08and patient_name supportmatmutant1-2/+4
2019-07-07Get and set the patient name on supported meters.Diego Elio Pettenò3-1/+33
2019-07-07fslibre: expose patient name if the device knows it.Diego Elio Pettenò3-4/+19
2019-07-01Fix type annotations.Diego Elio Pettenò1-4/+4
2019-07-01Fix syntax error.Diego Elio Pettenò1-1/+2
2019-07-01Introduce an explicit InvalidDateTime exception for meters with unset time.Diego Elio Pettenò3-4/+18
2019-07-01handle device.get_datetime() value error exceptionmatmutant1-0/+2
2019-05-19common: Correctly show ketone sample type in csvAndreas Sandberg1-1/+1
2019-05-19fsprecisionneo: Scale ketone readings to mmol/lAndreas Sandberg3-14/+18
2019-05-16freestyle support: restore correct order of parameters.Diego Elio Pettenò1-1/+1
2019-05-05new line at end of .gitignore, rename arresult entry mapBen1-2/+2
2019-05-05add time adjustments to fslibre dumpBen2-9/+43
2019-05-05Bug fix: incorrect argument order in call to construct.Const.André Caldas1-1/+1
2019-03-31fslibre: correct the ketone reading.Diego Elio Pettenò1-2/+9
2019-02-08Replace epydoc metadata with SPDX identifiers.Diego Elio Pettenò19-96/+39
2019-02-08Replace flameeyes.eu with flameeyes.com.Diego Elio Pettenò19-19/+19
2019-01-29hiddevice: fix support for modern hidapi.Diego Elio Pettenò1-3/+3
2019-01-28exceptions: avoid using kwargs for message, as it's not correct.Diego Elio Pettenò1-2/+2
2018-12-19otverio2015: fix string parsing to include the full prefix.Diego Elio Pettenò1-5/+2
2018-12-12Fix most of the pylint output, and hide away some that is not needed.Diego Elio Pettenò16-202/+216
2018-12-12Simplify exceptions hierarchy.Diego Elio Pettenò1-14/+10
2018-12-12Reindent all files to match the 4-spaces indentation.Diego Elio Pettenò6-630/+630
2018-12-12hiddevice: split handle_ and hidapi_handle_.Diego Elio Pettenò1-9/+15
2018-12-12Sprinkle more type annotations throughout the codebase.Diego Elio Pettenò6-7/+30
2018-12-12Fix indentation of common.py.Diego Elio Pettenò1-83/+86
2018-12-12Make GlucoseReading and KetoneReading use attrs, too.Diego Elio Pettenò1-44/+24
2018-12-12Remove --sort-by flag.Diego Elio Pettenò1-9/+1
2018-12-12Experimentally start adding type annotations, and mypy configs.Diego Elio Pettenò3-11/+21
2018-12-12otverio2015: fix one remaining entry referencing the now-gone COMMAND_SUCCESS constant.Diego Elio Pettenò1-1/+1
2018-12-12Use [attrs](http://www.attrs.org/) instead of namedtuple for MeterInfo.Diego Elio Pettenò1-18/+18
2018-12-09sdcodefree: allows an arbitrary number of null-bytes before challenge.Diego Elio Pettenò1-6/+9
2018-11-16otultraeasy: factor out the packet creation, and add tests.Diego Elio Pettenò1-10/+19
2018-11-16Don't fold the command prefix into the LifeScanPacket.Diego Elio Pettenò4-53/+53
2018-07-24Fix sdcodefree driver, the same as the lifescan changes.Diego Elio Pettenò1-1/+1
2018-07-24fix invalid self-referenceNoel Cragg1-1/+1
2018-05-23change 999 to infWesley T. Honeycutt1-1/+1
2018-05-23Fix for non-integer errorsWesley T. Honeycutt1-1/+5
2018-03-17freestyle support: add debug logging of commands sent and received.Diego Elio Pettenò1-0/+4
2018-03-17fsoptium: add debug logging when sending commands.Diego Elio Pettenò1-0/+4
2018-03-17Update lifescan_binary_protocol.pyArkadiusz Bulski1-2/+2
2018-03-17Update sdcodefree.pyArkadiusz Bulski1-2/+2
2018-03-17CString supports UTF-16/32-LE/BEArkadiusz Bulski1-2/+1
2018-03-17SymmetricMapping was renamed to MappingArkadiusz Bulski4-5/+5
2018-03-17corected timestamp commentArkadiusz Bulski1-1/+1
2018-03-17construct code fixed improper embeddingArkadiusz Bulski4-15/+13
2018-03-17construct-code is (almost) uptodateArkadiusz Bulski4-8/+9
2018-01-07otverioiq: remove untested marking and list supported features.Diego Elio Pettenò1-3/+9
2018-01-07otverioiq: zero log is tested, it works.Diego Elio Pettenò1-1/+1
2018-01-07otverioiq: fix up set_datetime method.Diego Elio Pettenò1-2/+4
2018-01-07otverioiq: fix definition of the reading response, fix get_reading_count method.Diego Elio Pettenò1-5/+3
2018-01-07otverioiq: fix up a couple of syntax errors, and update baud rate.Diego Elio Pettenò1-3/+3
2018-01-07otverioiq: fix up syntax.Diego Elio Pettenò1-6/+4
2018-01-07otverioiq: fix typo.Diego Elio Pettenò1-1/+1
2018-01-07otverioiq: implement full parsing of the response structure.Diego Elio Pettenò1-3/+19
2018-01-07otverioiq: link-control is not used.Diego Elio Pettenò1-1/+1
2018-01-07lifescan binary protocol: factor out _COMMAND_SUCCESS.Diego Elio Pettenò4-26/+27
2018-01-06otverioiq: update version and serial number requests.Diego Elio Pettenò1-2/+4
2018-01-06lifescan binary protocol: make the packet generator a function.Diego Elio Pettenò4-56/+65
2018-01-06otultraeasy: fix AttributeErrors after factoring out link_control struct.Diego Elio Pettenò1-4/+5
2018-01-06otverioiq: add totally untested driver.Diego Elio Pettenò1-0/+194
2018-01-06lifescan_binary_protocol: factor out glucose unit mappings.Diego Elio Pettenò3-13/+11
2018-01-06lifescan_binary_protocol: create a new module to support LifeScan drivers.Diego Elio Pettenò3-60/+73
2018-01-01otverio2015: reorder functions to match otultraeasy.Diego Elio Pettenò1-5/+5
2018-01-01otultraeasy: merge _send_request and _read_response and match otverio2015.Diego Elio Pettenò1-41/+35
2018-01-01otultraeasy: rename _ZERO_LOG_REQUEST to _MEMORY_ERASE_REQUEST.Diego Elio Pettenò1-2/+2
2018-01-01otultraeasy: wrap around construct exceptions to MalformedCommand.Diego Elio Pettenò1-11/+20
2018-01-01otverio2015: rewrite using construct.Diego Elio Pettenò1-220/+216
2018-01-01otultraeasy: factor out the construct Timestamp implementation.Diego Elio Pettenò2-13/+39
2018-01-01otultraeasy: rewrite using construct for parsing.Diego Elio Pettenò1-257/+198
2017-12-31sdcodefree: rewrite using construct and improve readability.Diego Elio Pettenò1-87/+78
2017-12-31serial devices: disable xonxoff by default.Diego Elio Pettenò1-1/+1
2017-12-30freestyle: rename miscopied constant name.Diego Elio Pettenò1-2/+2
2017-12-29Fix error in meter info output, after conversion of Unit to enum.Diego Elio Pettenò1-1/+1
2017-12-28freestyle: replace the custom struct and bytemangling with construct.Diego Elio Pettenò1-8/+11
2017-12-28Move the binary script to glucometerutils/ and create a starting shim.Diego Elio Pettenò1-0/+147
2017-12-28accucheck_reports: fix bug for mg/dL native meters.Diego Elio Pettenò2-7/+9
2017-12-28Use Python3 Enum class for measurement methods.Diego Elio Pettenò2-10/+11
2017-12-28Use Python3 Enum class for meal flags.Diego Elio Pettenò5-18/+19
2017-12-28Use Python3 Enum class for glucose units.Diego Elio Pettenò10-35/+27
2017-11-14otultraeasy: fix wrong module name for shared lifescan code.Diego Elio Pettenò1-4/+4
2017-10-02Fix with_ketoneLeonard Lausen3-8/+3
2017-10-02Fix ketone readingLeonard Lausen3-3/+8
2017-10-01Fix syntax error in fsprecisionneo.pyLeonard Lausen1-1/+1
2017-09-25fsprecisionneo: add ketone reading supportSamuel Martin1-8/+19
2017-09-25fslibre: add ketone reading supportSamuel Martin1-4/+24
2017-09-25fslibre: set measure_method when parsing recordsSamuel Martin1-2/+7
2017-09-25common: introduce the KetoneReading classSamuel Martin1-3/+32
2017-09-25common: rename Reading class into GlucoseReading classSamuel Martin10-12/+12
2017-09-25common: add measure_method field to _ReadingBase classSamuel Martin1-5/+10
2017-09-25common: add constants for measure methodsSamuel Martin1-0/+4
2017-09-25fslibre: fix reading-type commentSamuel Martin1-1/+1
2017-09-13fslibre: fix insulin displaySamuel Martin1-4/+4
2017-09-13otverio2015: fix _MEAL_CODES map.Diego Elio Pettenò1-3/+3
2017-09-13otverio2015: expose pre-/post-meal flags for Select Plus devices.Diego Elio Pettenò1-7/+15
2017-09-13otverio2015: fix readings on Select Plus readers (Issue #22).Diego Elio Pettenò1-3/+4
2017-09-13otverio2015: add debug logging to help track Issue #22.Diego Elio Pettenò1-2/+8
2017-06-24Fix typo on import statementRyan Jarvis1-1/+1
2017-06-15freestyle: add some debugging information.Diego Elio Pettenò1-0/+3
2017-06-15hiddevice: default to no timeout, like before.Diego Elio Pettenò1-5/+5
2017-06-06hiddevice: make hidapi calls take a timeout, default to 1 second.Diego Elio Pettenò1-1/+8
2017-06-05hiddevice: add a 1-second timeout to reads.Diego Elio Pettenò1-1/+6
2017-06-04Add a ne support class for HID-based devices.Diego Elio Pettenò3-36/+90
2017-06-03Abbott devices: add support for using hidapi library.Diego Elio Pettenò4-10/+43
2017-05-30Fix encoding info and add missing __init__.py fileDorian Scholz3-0/+2
2017-05-30Fix IndexError and KeyError:Dorian Scholz1-5/+9
2017-04-17All drivers: move documentation of features from README to docstring.Diego Elio Pettenò8-7/+88
2017-04-17Add support for a "help" action that prints the driver module's docstring.Diego Elio Pettenò1-1/+14
2017-04-17Serial drivers: factor out opening of the serial port to a new base class.Diego Elio Pettenò5-49/+85
2017-04-15Remove unused constants.Diego Elio Pettenò1-4/+0
2017-04-15serial drivers: if no --device parameter is given, look for default cable.Diego Elio Pettenò4-21/+21
2017-04-15fsoptium: use logging instead of writing to stderr directly.Diego Elio Pettenò1-3/+2
2017-04-15all drivers: make --device optional at the tool level.Diego Elio Pettenò8-0/+42
2017-02-24fslibre: parse and output the scan and blood tests.Diego Elio Pettenò1-19/+137
2017-02-23fslibre: new driver for Abbott FreeStyle Libre download.Diego Elio Pettenò1-0/+73
2017-02-09sdcodefree: reformat and cleanup.Diego Elio Pettenò1-135/+138
2017-01-20Open OneTouch Verio devices in readwrite mode by default.Red Daly1-1/+1
2017-01-17freestyle: error out if hidraw device does not exist.Diego Elio Pettenò1-0/+4
2017-01-17fsinsulinx: add untested FreeStyle InsuLinx driver.Diego Elio Pettenò1-0/+66
2017-01-17fsprecisionneo: move the version and serial number information to the common support class.Diego Elio Pettenò2-10/+10
2017-01-17fsprecisionneo: fix mistake in readings dump command.Diego Elio Pettenò1-1/+1
2017-01-17freestyle: improve error message on command failure, fix comment.Diego Elio Pettenò1-2/+2
2017-01-17freestyle: raise NotImplementedError when trying to zero-log.Diego Elio Pettenò1-0/+4
2017-01-17fsprecisionneo: add support for setting date and time.Diego Elio Pettenò1-15/+29
2017-01-16Update copyrights, cleanup whitespace where needed.Diego Elio Pettenò8-12/+21
2017-01-16Add new driver for the Abbott FreeStyle Precision Neo.Diego Elio Pettenò2-0/+257
2017-01-16Rename freestyle_optium to fsoptium.Diego Elio Pettenò1-0/+0
2017-01-16LifeScan devices: move lifescan_common to the support directory.Diego Elio Pettenò4-18/+18
2017-01-15Move the readings-to-csv conversion to the Reading class.Diego Elio Pettenò1-0/+6
2017-01-15Wrap the meter information to a namedtuple, instead of a string.Diego Elio Pettenò7-56/+73
2016-11-16Fix error in call to map() functionL. Guruprasad1-2/+2
2016-08-31freestyle_optium: ignore β-ketones results from dumps.Diego Elio Pettenò1-4/+7
2016-08-31freestyle_optium: fix reversed parameters to map().Diego Elio Pettenò1-1/+1
2016-08-31freestyle_optium: remove debugging print.Diego Elio Pettenò1-1/+0
2016-06-19sdcodefree: new driver.Diego Elio Pettenò1-0/+190
2016-05-21otverio2015: fix date/time handling, which was broken outside of UTC.Diego Elio Pettenò1-1/+1
2016-05-21otverio2015: implement proper glucose unit identification.Diego Elio Pettenò1-3/+22
2016-03-02Use a more Pythonic map(..., int) instead of list comprehension.Diego Elio Pettenò2-4/+4
2016-03-02Move the InvalidChecksum exception to the base exceptions module.Diego Elio Pettenò6-21/+13
2016-02-15accuchek_reports: add a new driver for Accu-Chek Mobile meters.Diego Elio Pettenò1-0/+129
2016-02-15otultra2: make the before/after meal constants in common module.Diego Elio Pettenò2-4/+9
2016-02-14otverio2015: new driver for OneTouch Verio (2015) and similar devices.Diego Elio Pettenò1-0/+226
2016-02-13Make the ConnectionFailed exception more generic.Diego Elio Pettenò1-2/+2
2016-02-13otultraeasy: move the MalformedCommand exception to common.Diego Elio Pettenò2-11/+17
2016-02-13otultraeasy: move the crc function to lifescan_common.Diego Elio Pettenò2-14/+25
2016-02-09Update documentation, reference the new glucometer-protocols repository.Diego Elio Pettenò1-1/+8
2016-02-09freestyle_optium: implement checksum verification on results.Diego Elio Pettenò1-2/+26
2016-02-08Implement a basic driver for the FreeStyle Optium devices.Diego Elio Pettenò2-0/+256
2014-02-08otultra2: avoid using connect/disconnect to wake up the device.Diego Elio Pettenò1-3/+2
2014-01-29otultra2: move checksum function within otultra2 driver.Diego Elio Pettenò2-21/+20
2014-01-29Initial support for OneTouch Ultra Easy glucometers.Diego Elio Pettenò1-0/+326
2014-01-29common: fix namedtuple usage to allow for optional parameters.Diego Elio Pettenò1-3/+3
2014-01-29Add connect/disconnect methods to otultra2 and send \x11\r on connection.Diego Elio Pettenò1-5/+8
2013-12-11Clean up the code to remove methods that should be functions and imports.Diego Elio Pettenò2-121/+115
2013-12-11Allow sorting the dumped data; sort by date by default.Diego Elio Pettenò1-5/+7
2013-12-11Change all the internal representations to mg/dL for compatibility with LifeScan.Diego Elio Pettenò2-15/+12
2013-12-11Generalise the meal/comment handling to the Reading object.Diego Elio Pettenò2-6/+15
2013-12-11otultra2: expose the meal and comments as separate field in the CSV.Diego Elio Pettenò1-5/+1
2013-12-08Better error handling.Diego Elio Pettenò1-1/+1
2013-12-08Add a new command to dump the identification of the glucometer.Diego Elio Pettenò1-0/+18
2013-12-08otultra2: implement a zero log command to clear a device's memory.Diego Elio Pettenò1-1/+11
2013-12-08otultra2: implement decoding of meal and comment codes.Diego Elio Pettenò2-2/+33
2013-09-29Read more data out of the OTUltra2 dump lines. Return data in a Reading object.Diego Elio Pettenò2-10/+30
2013-08-03Relicense everything under MIT license.Diego Elio Pettenò4-4/+4
2013-08-03Implement the correct checksum algorithm.Diego Elio Pettenò1-30/+8
2013-08-03Add support for checksum verification for the otultra2 driver.Diego Elio Pettenò3-25/+91
2013-08-03Update function names to follow PEP8.Diego Elio Pettenò2-28/+28
2013-08-03Add utf-8 encoding specification to all files.Diego Elio Pettenò3-0/+3
2013-08-03otultra2: fix default unit handling.Diego Elio Pettenò1-1/+2