25
|
1 |
# gobm65 |
|
2 |
|
|
3 |
gobm65 is a Beurer BM65 Blood Pressure Monitor CLI reader |
|
4 |
|
|
5 |
## Installation: |
|
6 |
|
|
7 |
Use go get to build the utility, either from Mercurial |
|
8 |
or from the Github mirror: |
|
9 |
|
|
10 |
``` |
|
11 |
% go get hg.lilotux.net/golang/mikael/gobm65 |
|
12 |
``` |
|
13 |
or |
|
14 |
``` |
|
15 |
% go get github.com/McKael/gobm65 |
|
16 |
``` |
|
17 |
|
|
18 |
## Examples: |
|
19 |
|
|
20 |
Get help: |
|
21 |
``` |
|
22 |
% gobm65 --help |
|
23 |
``` |
|
24 |
|
|
25 |
Get records and display the average: |
|
26 |
``` |
|
27 |
% gobm65 --average |
|
28 |
``` |
|
29 |
... display more statistics: |
|
30 |
``` |
|
31 |
% gobm65 --stats |
|
32 |
``` |
|
33 |
... add WHO classification: |
|
34 |
``` |
|
35 |
% gobm65 --stats --class |
|
36 |
``` |
|
37 |
|
|
38 |
Display the latest 3 records with the average: |
|
39 |
``` |
|
40 |
% gobm65 -l 3 --average |
|
41 |
``` |
|
42 |
|
|
43 |
Display all records since a specific date: |
|
44 |
``` |
|
45 |
% gobm65 --since "2016-06-01" |
|
46 |
``` |
|
47 |
|
|
48 |
Display all records before a specific date: |
|
49 |
``` |
|
50 |
% gobm65 --to-date "2016-06-30" |
|
51 |
``` |
|
52 |
|
|
53 |
Display all records of the last 7 days: |
|
54 |
``` |
|
55 |
% gobm65 --since "$(date "+%F" -d "7 days ago")" |
|
56 |
``` |
|
57 |
|
|
58 |
Display statistics for morning records: |
|
59 |
``` |
|
60 |
% gobm65 --from-time 06:00 --to-time 12:00 --stats |
|
61 |
``` |
|
62 |
|
|
63 |
One can invert times to get night data: |
|
64 |
``` |
|
65 |
% gobm65 --from-time 21:00 --to-time 09:00 |
|
66 |
``` |
|
67 |
|
|
68 |
Display the last/first 10 records in JSON: |
|
69 |
``` |
|
70 |
% gobm65 -l 10 --format json |
|
71 |
``` |
|
72 |
|
|
73 |
Save the records to a JSON file: |
|
74 |
``` |
|
75 |
% gobm65 -o data_u2.json |
|
76 |
``` |
|
77 |
|
|
78 |
Read a JSON file and display average of the last 3 records: |
|
79 |
``` |
|
80 |
% gobm65 -i data_u2.json -l 3 --average |
|
81 |
% gobm65 -i data_u2.json -l 3 --stats |
|
82 |
``` |
|
83 |
|
|
84 |
Read a JSON file, merge with device records, and save to another file: |
|
85 |
``` |
|
86 |
% gobm65 -i data_u2.json --merge -o data_u2-new.json |
|
87 |
``` |
|
88 |
|
|
89 |
Data from several JSON files can be merged, files are separated with a ';': |
|
90 |
``` |
|
91 |
% gobm65 -i "data_u0.json;data_u1.json;data_u2.json" |
|
92 |
``` |
|
93 |
|
|
94 |
## Credits |
|
95 |
|
|
96 |
Thanks to atbrask for figuring out the protocol details and writing a |
|
97 |
nice [blog post](<http://www.atbrask.dk/?p=98>). |