Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding a new device and a new report.
  • Loading branch information
Spazholio committed May 24, 2016
commit dc6af191225a92587061f2da2dd060018fa91d6a
15 changes: 15 additions & 0 deletions docs/reference/openaps/openaps-device-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#### `pump.ini`
This device contains the information about your pump. This example assumes you are using a TI stick
##### Setup code
`openaps device add pump mmeowlink subg_rfspy /dev/mmeowlink [YOUR PUMP SERIAL]`
##### Sample contents
`
[device "pump"]
serial = [YOUR PUMP SERIAL]
port = /dev/mmeowlink
radio_type = subg_rfspy
model = [YOUR PUMP MODEL]
expires = 2016-05-23T23:02:36.168762
'
##### Dependencies
None
18 changes: 18 additions & 0 deletions docs/reference/openaps/openaps-report-monitor-pumphistory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#### `monitor/pumphistory.json`
This report gathers the last 5 hours of history directly from your pump.
##### Setup code
`openaps report add monitor/pumphistory.json JSON pump iter_pump_hours 5`
##### Sample contents
`[
{
"_type": "TempBasalDuration",.
"duration (min)": 30,.
"_description": "TempBasalDuration 2016-05-23T22:15:28 head[2], body[0] op[0x16]",.
"timestamp": "2016-05-23T22:15:28",.
"_body": "",.
"_head": "1601",.
"_date": "5c4f165710"
},
]`
##### Dependencies
* [`pump.ini`](openaps-device-pump.md)