README.md in insulin-0.0.18 vs README.md in insulin-0.1.0
- old
+ new
@@ -26,31 +26,33 @@
connecting to: insulin
> db.events.find({serial : 266})
{ "_id" : ObjectId("4ff07b371508cc259c8a8f0c"), "serial" : 266, "timestamp" : ISODate("2012-06-28T09:21:05Z"), "tzoffset" : "+0100", "timezone" : "BST", "unixtime" : 1340875265, "day" : "thursday", "date" : "2012-06-28", "time" : "10:21:05 BST", "type" : "medication", "subtype" : "humalog", "tag" : "breakfast", "value" : 4, "notes" : { "food" : [ "2 bacon", "2 toast" ], "note" : [ "test note" ] } }
>
-Currently the only supported output operation is
+Current output options are
insulin day DATE
+ insulin month DATE
+ insulin week DATE
-to show stats for date DATE (in YYYY-MM-DD format) - defaults to 'today' if no date supplied. Note that insulin considers events that occur up to 04:00 as part of the previous actual day (because sometimes we stay up late, right?). Output will look something like
+Example:
- 2012-07-06
- 06:50:54 BST glucose 6.4 mmol/L
- 07:05:38 BST weight 59.0 kg
- 09:43:33 BST glucose 6.7 mmol/L
- 09:50:23 BST medication humalog 4.0 x10^-5 L
- 13:17:43 BST glucose 4.7 mmol/L
- 13:31:44 BST medication humalog 4.0 x10^-5 L
- 15:57:12 BST glucose 6.2 mmol/L
- 20:01:41 BST glucose 6.2 mmol/L
- 20:05:21 BST medication humalog 6.0 x10^-5 L
- 21:42:38 BST glucose 9.0 mmol/L
- 00:34:22 BST glucose 9.5 mmol/L
- 00:49:27 BST medication lantus 12.0 x10^-5 L
- Average glucose: 6.96 mmol/L
+ $ insulin day 2012-07-01
+ 2012-07-01
+ 09:41:47 BST | breakfast | glucose | | 6.4 mmol/L
+ 09:57:09 BST | breakfast | medication | humalog | 4.0 x10^-5 L
+ 12:40:43 BST | lunch | weight | | 59.0 kg
+ 13:54:04 BST | lunch | glucose | | 5.0 mmol/L
+ 14:03:05 BST | lunch | medication | humalog | 4.0 x10^-5 L
+ 18:56:25 BST | dinner | glucose | | 4.9 mmol/L
+ 19:03:37 BST | dinner | medication | humalog | 6.0 x10^-5 L
+ 21:06:01 BST | after dinner | glucose | | 3.5 mmol/L
+ 22:32:32 BST | bedtime | glucose | | 7.5 mmol/L
+ 22:46:12 BST | bedtime | medication | lantus | 14.0 x10^-5 L
+ average glucose: 5.46 mmol/L
+
You can also run the tests, if you're into that sort of thing:
bundle exec rspec
Postfix setup
@@ -61,9 +63,10 @@
Next steps
==========
* Get it generating custom CSVs for Spreadsheeting
* Get it doing some analysis
+* Generate some more detailed output (latest HbA1c, BP, etc)
* Give it a [meteor](http://meteor.com/) front-end (might require some help from [Chris](https://github.com/mrchrisadams)). Graphs, yo
* Possibly connect to [this API](http://platform.fatsecret.com/api/) to extract carb values from plain-text food descriptions (this may be a little ambitious, we'll see)
---