summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-01-16 23:22:14 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-01-16 23:22:14 +0100
commit0ca052a5609ce54001390752f16117b68b4d2878 (patch)
tree4b5c7bdd4d9e9ab37bf134d2c8a171241ba661a1
parentFix README to share the same Markdown syntax. (diff)
downloadglucometerutils-0ca052a5609ce54001390752f16117b68b4d2878.tar
glucometerutils-0ca052a5609ce54001390752f16117b68b4d2878.tar.gz
glucometerutils-0ca052a5609ce54001390752f16117b68b4d2878.tar.bz2
glucometerutils-0ca052a5609ce54001390752f16117b68b4d2878.tar.lz
glucometerutils-0ca052a5609ce54001390752f16117b68b4d2878.tar.xz
glucometerutils-0ca052a5609ce54001390752f16117b68b4d2878.tar.zst
glucometerutils-0ca052a5609ce54001390752f16117b68b4d2878.zip
-rwxr-xr-xglucometer.py2
-rw-r--r--glucometerutils/drivers/accuchek_reports.py4
-rw-r--r--glucometerutils/drivers/fsoptium.py4
-rw-r--r--glucometerutils/drivers/fsprecisionneo.py8
-rw-r--r--glucometerutils/drivers/otultra2.py2
-rw-r--r--glucometerutils/drivers/otultraeasy.py2
-rw-r--r--glucometerutils/drivers/otverio2015.py6
-rw-r--r--glucometerutils/support/freestyle.py5
-rw-r--r--glucometerutils/support/lifescan.py2
9 files changed, 22 insertions, 13 deletions
diff --git a/glucometer.py b/glucometer.py
index 148daff..3e6105b 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -4,7 +4,7 @@
__author__ = 'Diego Elio Pettenò'
__email__ = 'flameeyes@flameeyes.eu'
-__copyright__ = 'Copyright © 2013, Diego Elio Pettenò'
+__copyright__ = 'Copyright © 2013-2017, Diego Elio Pettenò'
__license__ = 'MIT'
import argparse
diff --git a/glucometerutils/drivers/accuchek_reports.py b/glucometerutils/drivers/accuchek_reports.py
index f200471..a678736 100644
--- a/glucometerutils/drivers/accuchek_reports.py
+++ b/glucometerutils/drivers/accuchek_reports.py
@@ -114,12 +114,12 @@ class Device(object):
return common.BEFORE_MEAL
else:
return common.NO_MEAL
-
+
def get_readings(self):
for record in self._get_records_reader():
if record[_RESULT_CSV_KEY] is None:
continue
-
+
yield common.Reading(
self._extract_datetime(record),
common.convert_glucose_unit(float(record[_RESULT_CSV_KEY]),
diff --git a/glucometerutils/drivers/fsoptium.py b/glucometerutils/drivers/fsoptium.py
index 0b20946..fd4c791 100644
--- a/glucometerutils/drivers/fsoptium.py
+++ b/glucometerutils/drivers/fsoptium.py
@@ -3,12 +3,12 @@
Further information on the device protocol can be found at
-https://github.com/Flameeyes/glucometer-protocols/blob/master/abbott/freestyle-optium.md
+https://flameeyes.github.io/glucometer-protocols/abbott/freestyle-optium
"""
__author__ = 'Diego Elio Pettenò'
__email__ = 'flameeyes@flameeyes.eu'
-__copyright__ = 'Copyright © 2016, Diego Elio Pettenò'
+__copyright__ = 'Copyright © 2016-2017, Diego Elio Pettenò'
__license__ = 'MIT'
import datetime
diff --git a/glucometerutils/drivers/fsprecisionneo.py b/glucometerutils/drivers/fsprecisionneo.py
index 9e9cea1..c82efda 100644
--- a/glucometerutils/drivers/fsprecisionneo.py
+++ b/glucometerutils/drivers/fsprecisionneo.py
@@ -1,6 +1,10 @@
# -*- coding: utf-8 -*-
-"""Driver for FreeStyle Precision Neo devices.
-"""
+"""Driver for FreeStyle Precision Neo devices."""
+
+__author__ = 'Diego Elio Pettenò'
+__email__ = 'flameeyes@flameeyes.eu'
+__copyright__ = 'Copyright © 2017, Diego Elio Pettenò'
+__license__ = 'MIT'
import collections
import datetime
diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py
index c87d270..1c8ee10 100644
--- a/glucometerutils/drivers/otultra2.py
+++ b/glucometerutils/drivers/otultra2.py
@@ -3,7 +3,7 @@
__author__ = 'Diego Elio Pettenò'
__email__ = 'flameeyes@flameeyes.eu'
-__copyright__ = 'Copyright © 2013, Diego Elio Pettenò'
+__copyright__ = 'Copyright © 2013-2017, Diego Elio Pettenò'
__license__ = 'MIT'
import datetime
diff --git a/glucometerutils/drivers/otultraeasy.py b/glucometerutils/drivers/otultraeasy.py
index d3d2d67..50a6020 100644
--- a/glucometerutils/drivers/otultraeasy.py
+++ b/glucometerutils/drivers/otultraeasy.py
@@ -3,7 +3,7 @@
__author__ = 'Diego Elio Pettenò'
__email__ = 'flameeyes@flameeyes.eu'
-__copyright__ = 'Copyright © 2014, Diego Elio Pettenò'
+__copyright__ = 'Copyright © 2014-2017, Diego Elio Pettenò'
__license__ = 'MIT'
import array
diff --git a/glucometerutils/drivers/otverio2015.py b/glucometerutils/drivers/otverio2015.py
index b5e529d..bcb76d6 100644
--- a/glucometerutils/drivers/otverio2015.py
+++ b/glucometerutils/drivers/otverio2015.py
@@ -3,12 +3,12 @@
Further information on the device protocol can be found at
-https://github.com/Flameeyes/glucometer-protocols/blob/master/lifescan/onetouch-verio-2015.md
+https://flameeyes.github.io/glucometer-protocols/lifescan/onetouch-verio-2015
"""
__author__ = 'Diego Elio Pettenò'
__email__ = 'flameeyes@flameeyes.eu'
-__copyright__ = 'Copyright © 2016, Diego Elio Pettenò'
+__copyright__ = 'Copyright © 2016-2017, Diego Elio Pettenò'
__license__ = 'MIT'
import datetime
@@ -197,7 +197,7 @@ class Device(object):
if response[0:2] != b'\x04\06':
raise lifescan.MalformedCommand(
'invalid response, expected 04 06, received %02x %02x' % (
- response[0], response[1]))
+ response[0], response[1]))
def _get_reading_count(self):
response = self._send_message(_READ_RECORD_COUNT_REQUEST, 3)
diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py
index bef695e..f3e7575 100644
--- a/glucometerutils/support/freestyle.py
+++ b/glucometerutils/support/freestyle.py
@@ -5,6 +5,11 @@ https://flameeyes.github.io/glucometer-protocols/abbott/shared-hid-protocol.html
"""
+__author__ = 'Diego Elio Pettenò'
+__email__ = 'flameeyes@flameeyes.eu'
+__copyright__ = 'Copyright © 2017, Diego Elio Pettenò'
+__license__ = 'MIT'
+
import csv
import datetime
import re
diff --git a/glucometerutils/support/lifescan.py b/glucometerutils/support/lifescan.py
index 1f8234d..353db4d 100644
--- a/glucometerutils/support/lifescan.py
+++ b/glucometerutils/support/lifescan.py
@@ -3,7 +3,7 @@
__author__ = 'Diego Elio Pettenò'
__email__ = 'flameeyes@flameeyes.eu'
-__copyright__ = 'Copyright © 2013, Diego Elio Pettenò'
+__copyright__ = 'Copyright © 2013-2017, Diego Elio Pettenò'
__license__ = 'MIT'
from glucometerutils import exceptions