summaryrefslogtreecommitdiffstats
path: root/glucometerutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* freestyle: improve error message on command failure, fix comment.Diego Elio Pettenò2017-01-171-2/+2
|
* freestyle: raise NotImplementedError when trying to zero-log.Diego Elio Pettenò2017-01-171-0/+4
|
* fsprecisionneo: add support for setting date and time.Diego Elio Pettenò2017-01-171-15/+29
| | | | | | There are shared commands that allow settings the date and time of the device, implement those in the freestyle support module, so that they can be re-used in implementation of the same base protocol.
* Update copyrights, cleanup whitespace where needed.Diego Elio Pettenò2017-01-168-12/+21
|
* Add new driver for the Abbott FreeStyle Precision Neo.Diego Elio Pettenò2017-01-162-0/+257
| | | | | This driver uses the HID-based protocol which is shared among different devices.
* Rename freestyle_optium to fsoptium.Diego Elio Pettenò2017-01-161-0/+0
| | | | | The number of freestyle devices drivers will soon skyrocket, use the same shortening as the OneTouch ones.
* LifeScan devices: move lifescan_common to the support directory.Diego Elio Pettenò2017-01-164-18/+18
| | | | | This makes it easier to figure out which files represent drivers, and which ones are per-vendor support modules.
* Move the readings-to-csv conversion to the Reading class.Diego Elio Pettenò2017-01-151-0/+6
|
* Wrap the meter information to a namedtuple, instead of a string.Diego Elio Pettenò2017-01-157-56/+73
| | | | | | This matches the gdef MeterInfo message, and produces a similar (though not identical) string as before. Importantly, it allows providing semantic information.
* Fix error in call to map() functionL. Guruprasad2016-11-161-2/+2
|
* freestyle_optium: ignore β-ketones results from dumps.Diego Elio Pettenò2016-08-311-4/+7
| | | | | Since there is no way to expose non-glucose readings right now (I might work on that in the future), filter β-ketones results out from the dump.
* freestyle_optium: fix reversed parameters to map().Diego Elio Pettenò2016-08-311-1/+1
| | | | Not sure how this ever worked.
* freestyle_optium: remove debugging print.Diego Elio Pettenò2016-08-311-1/+0
|
* sdcodefree: new driver.Diego Elio Pettenò2016-06-191-0/+190
| | | | | This driver supports SD Codefree readers, that are sold in the UK by HomeHealth UK.
* otverio2015: fix date/time handling, which was broken outside of UTC.Diego Elio Pettenò2016-05-211-1/+1
|
* otverio2015: implement proper glucose unit identification.Diego Elio Pettenò2016-05-211-3/+22
| | | | | I managed to get my hands on an US-edition of the device, and I can confirm this behaves in a similar way to the otultraeasy.
* Use a more Pythonic map(..., int) instead of list comprehension.Diego Elio Pettenò2016-03-022-4/+4
|
* Move the InvalidChecksum exception to the base exceptions module.Diego Elio Pettenò2016-03-026-21/+13
| | | | | Most glucometers have *some* sort of checksum, so there is no reason to implement this on a per-driver basis.
* accuchek_reports: add a new driver for Accu-Chek Mobile meters.Diego Elio Pettenò2016-02-151-0/+129
| | | | | | | | | The default USB connection provides a USB storage device with a CSV datafile. This driver works by looking for that file and importing it. This does not support setting the time, nor reading the actual device time, but it is at least a good way to import data from different meters under the same format.
* otultra2: make the before/after meal constants in common module.Diego Elio Pettenò2016-02-152-4/+9
| | | | This will lead the way to providing meal information with future drivers.
* otverio2015: new driver for OneTouch Verio (2015) and similar devices.Diego Elio Pettenò2016-02-141-0/+226
| | | | | | | | This should be working for OneTouch Select Plus devices, too. It currently does not support reporting in the native unit of the device. As of today, you'll also need my forked repository of python-scsi, as the current upstream one does not have working SGIO for Linux.
* Make the ConnectionFailed exception more generic.Diego Elio Pettenò2016-02-131-2/+2
|
* otultraeasy: move the MalformedCommand exception to common.Diego Elio Pettenò2016-02-132-11/+17
| | | | | Also make the exception more general, so that it can be used in the verio2015 driver.
* otultraeasy: move the crc function to lifescan_common.Diego Elio Pettenò2016-02-132-14/+25
| | | | | The same CRC-CCITT function is used in Verio 2015 devices, so prepare to reuse it by moving it to the common module.
* Update documentation, reference the new glucometer-protocols repository.Diego Elio Pettenò2016-02-091-1/+8
| | | | Also update copyright year.
* freestyle_optium: implement checksum verification on results.Diego Elio Pettenò2016-02-091-2/+26
| | | | | This should ensure more integrity of the results, and matches the behaviour on the lifescan devices.
* Implement a basic driver for the FreeStyle Optium devices.Diego Elio Pettenò2016-02-082-0/+256
| | | | | This driver supports dumping of (glucose) readings and reading/setting the clock.
* otultra2: avoid using connect/disconnect to wake up the device.Diego Elio Pettenò2014-02-081-3/+2
| | | | It seems like the device is very sensible to the reset command.
* otultra2: move checksum function within otultra2 driver.Diego Elio Pettenò2014-01-292-21/+20
| | | | | The function is not shared with the Ultra Easy and likely not with other devices either.
* Initial support for OneTouch Ultra Easy glucometers.Diego Elio Pettenò2014-01-291-0/+326
| | | | | The driver is fully functional but requires proper documentation and testing.
* common: fix namedtuple usage to allow for optional parameters.Diego Elio Pettenò2014-01-291-3/+3
| | | | The otultraeasy does not provide comments or meal indications.
* Add connect/disconnect methods to otultra2 and send \x11\r on connection.Diego Elio Pettenò2014-01-291-5/+8
| | | | | The otultraeasy requires explicit connect/disconnect so implementing this before is helpful.
* Clean up the code to remove methods that should be functions and imports.Diego Elio Pettenò2013-12-112-121/+115
|
* Allow sorting the dumped data; sort by date by default.Diego Elio Pettenò2013-12-111-5/+7
| | | | | This changes the dump output for otultra2 devices as they would dump data in record format, last reading first.
* Change all the internal representations to mg/dL for compatibility with LifeScan.Diego Elio Pettenò2013-12-112-15/+12
| | | | | | While mmol/L is the international standard unit, at least LifeScan uses mg/dL in all their devices, and since they are the ones for which we have protocols for, we might as well use the same.
* Generalise the meal/comment handling to the Reading object.Diego Elio Pettenò2013-12-112-6/+15
| | | | | While not all readers implement before/after meal notes, it's possible to implement an heuristics for that.
* otultra2: expose the meal and comments as separate field in the CSV.Diego Elio Pettenò2013-12-111-5/+1
| | | | | Idea by Jim Sifferle, implemented in a slightly different way as I noticed I forgot to quote it properly.
* Better error handling.Diego Elio Pettenò2013-12-081-1/+1
| | | | | If any exception is thrown by the library, print an error statement and return a non-zero exit value.
* Add a new command to dump the identification of the glucometer.Diego Elio Pettenò2013-12-081-0/+18
| | | | This allows to get the serial number, as well as other details about the glucometer once it's installed.
* otultra2: implement a zero log command to clear a device's memory.Diego Elio Pettenò2013-12-081-1/+11
|
* otultra2: implement decoding of meal and comment codes.Diego Elio Pettenò2013-12-082-2/+33
| | | | This also dumps the comment with the dump command.
* Read more data out of the OTUltra2 dump lines. Return data in a Reading object.Diego Elio Pettenò2013-09-292-10/+30
| | | | | The Reading object will be extended to cater for flags, comments and other device-specific information.
* Relicense everything under MIT license.Diego Elio Pettenò2013-08-034-4/+4
| | | | | There is no reason for me to use GPLv3 now that I'm not using the CRC32-Sick code, so I'll go with the most liberal license out there.
* Implement the correct checksum algorithm.Diego Elio Pettenò2013-08-031-30/+8
| | | | | | | Unlike what I though, OneTouch2 does not use CRC32 Sick algorithm, but a very stupid full 16-bit modulo sum of the bytes in the reply. This is very simple and does not require GPLv3 code at all.
* Add support for checksum verification for the otultra2 driver.Diego Elio Pettenò2013-08-033-25/+91
| | | | | | | This introduced some changes in the Exception class to simplify the code, and at the same time it adds a module for multiple lifescan drivers to share code (multiple OneTouch protocols share the same checksum for instance).
* Update function names to follow PEP8.Diego Elio Pettenò2013-08-032-28/+28
|
* Add utf-8 encoding specification to all files.Diego Elio Pettenò2013-08-033-0/+3
|
* otultra2: fix default unit handling.Diego Elio Pettenò2013-08-031-1/+2
|
* Initial import of the raw data.Diego Elio Pettenò2013-08-035-0/+334