summaryrefslogtreecommitdiffstats
path: root/glucometer.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add connect/disconnect methods to otultra2 and send \x11\r on connection.Diego Elio Pettenò2014-01-291-0/+4
| | | | | The otultraeasy requires explicit connect/disconnect so implementing this before is helpful.
* Add confirmation prompt to zero log argumentjimsiff2013-12-141-2/+7
| | | | | I’m sure there’s a cleaner way to do this, but I wanted a confirmation when zeroing the glucometer data log.
* Clean up the code to remove methods that should be functions and imports.Diego Elio Pettenò2013-12-111-1/+0
|
* Allow sorting the dumped data; sort by date by default.Diego Elio Pettenò2013-12-111-1/+11
| | | | | This changes the dump output for otultra2 devices as they would dump data in record format, last reading first.
* glucometer.py: if no unit is provided on command line, use the default of the meter.Diego Elio Pettenò2013-12-111-1/+5
|
* Generalise the meal/comment handling to the Reading object.Diego Elio Pettenò2013-12-111-2/+3
| | | | | While not all readers implement before/after meal notes, it's possible to implement an heuristics for that.
* Better error handling.Diego Elio Pettenò2013-12-081-21/+23
| | | | | 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-4/+8
| | | | 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-0/+9
|
* otultra2: implement decoding of meal and comment codes.Diego Elio Pettenò2013-12-081-1/+2
| | | | 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-291-2/+2
| | | | | The Reading object will be extended to cater for flags, comments and other device-specific information.
* glucometer: allow providing a freeform arbitrary date to set on the meter.Diego Elio Pettenò2013-08-041-2/+10
|
* glucometer: mark executable.Diego Elio Pettenò2013-08-031-0/+0
|
* Relicense everything under MIT license.Diego Elio Pettenò2013-08-031-1/+1
| | | | | 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.
* glucometer: remove unused argv usage.Diego Elio Pettenò2013-08-031-2/+1
|
* Update function names to follow PEP8.Diego Elio Pettenò2013-08-031-3/+3
|
* Add utf-8 encoding specification to all files.Diego Elio Pettenò2013-08-031-0/+1
|
* glucometer: add support for selecting output units on dump.Diego Elio Pettenò2013-08-031-1/+4
|
* glucometer: fix script to actually work and provide actions.Diego Elio Pettenò2013-08-031-2/+13
|
* Initial import of the raw data.Diego Elio Pettenò2013-08-031-0/+42