summaryrefslogtreecommitdiffstats
path: root/glucometer.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-01-15 14:10:23 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-01-15 14:10:23 +0100
commit7ceeddc76323e921f06e707717090d88df9e915f (patch)
tree7c1ddcdfbc37b9c86a8ea1518d1f0c02c9b74806 /glucometer.py
parentAdd a submodule pointing at gdef, to start implementing gdef export. (diff)
downloadglucometerutils-7ceeddc76323e921f06e707717090d88df9e915f.tar
glucometerutils-7ceeddc76323e921f06e707717090d88df9e915f.tar.gz
glucometerutils-7ceeddc76323e921f06e707717090d88df9e915f.tar.bz2
glucometerutils-7ceeddc76323e921f06e707717090d88df9e915f.tar.lz
glucometerutils-7ceeddc76323e921f06e707717090d88df9e915f.tar.xz
glucometerutils-7ceeddc76323e921f06e707717090d88df9e915f.tar.zst
glucometerutils-7ceeddc76323e921f06e707717090d88df9e915f.zip
Diffstat (limited to 'glucometer.py')
-rwxr-xr-xglucometer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/glucometer.py b/glucometer.py
index e22ff23..1cb263d 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -57,7 +57,11 @@ def main():
try:
if args.action == 'info':
- print(device.get_information_string())
+ print(str(device.get_meter_info()).strip())
+ try:
+ print('Time: %s' % device.get_datetime())
+ except NotImplementedError:
+ print('Time: N/A')
elif args.action == 'dump':
unit = args.unit
if unit is None: