Skip to content

Commit

Permalink
bump version, new tool pretty print carelink csv
Browse files Browse the repository at this point in the history
  • Loading branch information
bewest committed May 4, 2015
1 parent 2892a8a commit 5de99d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions bin/mm-pretty-csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

INPUT=${1-'-'}

cat $INPUT \
| cut -d',' -f 1-4,34- \
| while IFS=',' read x dd tt dt name details; do
if [[ -n "$details" && -n "$dd$tt$dt$name" ]] ; then
_date=$( (date --date="$dt" +%FT%T || echo $dt) 2>/dev/null)
echo "$_date,$name,$details"
fi
done

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def readme():
return f.read()

setup(name='decocare',
version='0.0.9', # http://semver.org/
version='0.0.10', # http://semver.org/
description='Audit, inspect, and command MM insulin pumps.',
long_description=readme(),
author="Ben West",
Expand All @@ -28,6 +28,7 @@ def readme():
'bin/mm-latest.py',
'bin/mm-bolus.py',
'bin/mm-set-rtc.py',
'bin/mm-pretty-csv',
],
classifiers = [
'Development Status :: 3 - Alpha',
Expand Down

0 comments on commit 5de99d2

Please sign in to comment.