-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more help messages, add --current now to select
Wrap usage of another device in `ns` as argument. Ping @jasoncalabrese.
- Loading branch information
Showing
1 changed file
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0d55b4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need
-non-empty
0d55b4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to add something for getting just carb or temp target treatments, like the hacks I'm using here:
https://github.com/jasoncalabrese/indy-e3b/blob/master/openaps.ini#L27-L28
passing event type or maybe other find params?
0d55b4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
openaps use ns shell get treatments.json "find[created_at][\$gte]=$(date -d '6 hours ago' -Iminutes)&find[eventType]=Temporary+Target"
openaps use ns shell get treatmnts.json "find[created_at][\$gte]=$(date -d '6 hours ago' -Iminutes)&find[eventType]=Temp+Basal"
openaps use ns shell get treatments.json "find[created_at][\$gte]=$(date -d '6 hours ago' -Iminutes)&find[carbs][\$exists]=true"
should do the same thing :-D