From 94d6984d2ce2a176a411c34e10aa2e7e03a096f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 16 Jan 2017 22:09:47 +0000 Subject: Rename freestyle_optium to fsoptium. The number of freestyle devices drivers will soon skyrocket, use the same shortening as the OneTouch ones. --- README | 6 +- glucometerutils/drivers/freestyle_optium.py | 271 ---------------------------- glucometerutils/drivers/fsoptium.py | 271 ++++++++++++++++++++++++++++ 3 files changed, 274 insertions(+), 274 deletions(-) delete mode 100644 glucometerutils/drivers/freestyle_optium.py create mode 100644 glucometerutils/drivers/fsoptium.py diff --git a/README b/README index 2bbbf4c..4d311fb 100644 --- a/README +++ b/README @@ -28,7 +28,7 @@ information on each of the devices. | LifeScan | OneTouch Ultra Mini | `otultraeasy` | | LifeScan | OneTouch Verio (USB) | `otverio2015` | | LifeScan | OneTouch Select Plus | `otverio2015` | -| Abbott | FreeStyle Optium | `freestyle_optium` | +| Abbott | FreeStyle Optium | `fsoptium` | | Roche | Accu-Chek Mobile | `accuchek_reports` | | SD Biosensor | SD CodeFree | `sdcodefree` | @@ -39,7 +39,7 @@ information on each of the devices. | `otultra2` | serialno, swver, unit | get and set | yes | yes | | `otultraeasy` | serialno, swver, unit | get and set | not supported by device | yes | | `otverio2015` | serialno, swver | get and set | no | yes | -| `freestyle_optium` | serialno, swver, unit | get and set | not supported by device | not supported by device | +| `fsoptium` | serialno, swver, unit | get and set | not supported by device | not supported by device | | `accuchek_reports` | serialno, unit | no | yes | not supported by device | | `sdcodefree` | none | set only | pre-/post-meal notes | not supported by device | @@ -50,7 +50,7 @@ information on each of the devices. | `otultra2` | [pyserial] | | `otultraeasy` | [pyserial] | | `otverio2015` | [python-scsi] | -| `freestyle_optium` | [pyserial] | +| `fsoptium` | [pyserial] | | `sdcodefree` | [pyserial] | [pyserial]: https://pythonhosted.org/pyserial/ diff --git a/glucometerutils/drivers/freestyle_optium.py b/glucometerutils/drivers/freestyle_optium.py deleted file mode 100644 index 0b20946..0000000 --- a/glucometerutils/drivers/freestyle_optium.py +++ /dev/null @@ -1,271 +0,0 @@ -# -*- coding: utf-8 -*- -"""Driver for FreeStyle Optium devices. - -Further information on the device protocol can be found at - -https://github.com/Flameeyes/glucometer-protocols/blob/master/abbott/freestyle-optium.md -""" - -__author__ = 'Diego Elio Pettenò' -__email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2016, Diego Elio Pettenò' -__license__ = 'MIT' - -import datetime -import re -import sys - -import serial - -from glucometerutils import common -from glucometerutils import exceptions - - -_CLOCK_RE = re.compile( - r'^Clock:\t(?P[A-Z][a-z]{2}) (?P[0-9]{2}) (?P[0-9]{4})\t' - r'(?P