diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-12-08 00:16:34 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-12-08 00:16:34 +0100 |
commit | 6402d15887c24c7cf1c1e96b21c142f28c13eb9d (patch) | |
tree | 20c429184ac13143737e0c2473fff9c8f7c1d2e4 /glucometer.py | |
parent | Read more data out of the OTUltra2 dump lines. Return data in a Reading object. (diff) | |
download | glucometerutils-6402d15887c24c7cf1c1e96b21c142f28c13eb9d.tar glucometerutils-6402d15887c24c7cf1c1e96b21c142f28c13eb9d.tar.gz glucometerutils-6402d15887c24c7cf1c1e96b21c142f28c13eb9d.tar.bz2 glucometerutils-6402d15887c24c7cf1c1e96b21c142f28c13eb9d.tar.lz glucometerutils-6402d15887c24c7cf1c1e96b21c142f28c13eb9d.tar.xz glucometerutils-6402d15887c24c7cf1c1e96b21c142f28c13eb9d.tar.zst glucometerutils-6402d15887c24c7cf1c1e96b21c142f28c13eb9d.zip |
Diffstat (limited to 'glucometer.py')
-rwxr-xr-x | glucometer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glucometer.py b/glucometer.py index facd88b..1cd0303 100755 --- a/glucometer.py +++ b/glucometer.py @@ -46,7 +46,8 @@ def main(): if args.action == 'dump': for reading in device.get_readings(): - print('%s,%f' % (reading.timestamp, reading.get_value_as(args.unit))) + print('%s,%.2f,%s' % (reading.timestamp, reading.get_value_as(args.unit), + reading.comment)) elif args.action == 'datetime': if args.set == 'now': print(device.set_datetime()) |