Functionality, Commands and Syntax #6

Open
opened 2021-12-05 20:27:23 +01:00 by pratyush · 2 comments
Owner

Functions:

  1. Adding doses
    1. now
    2. past
    3. frequence-interval average
  2. Lookup
    1. latest Logentry
    2. specific logentry (isn't this a generalized form of 1.)
    3. multi-dose lookups
  3. Edit
    1. edit-field
    2. annotate
    3. revert-change
    4. nullify-field
  4. Remove
    1. undo-doselog
    2. remove-entries
  5. Advanced Lookup and aggregators
    1. totaldosecount
    2. period-baseddosecount (interval and/or timestamp)+
    3. filter patterns for custom query
### Functions: 1. Adding doses a. `now` b. `past` c. `frequence-interval average` 2. Lookup a. `latest Logentry` b. `specific logentry (isn't this a generalized form of 1.)` c. `multi-dose lookups` 3. Edit a. `edit-field` b. `annotate` c. `revert-change` d. `nullify-field` 4. Remove a. `undo-doselog` b. `remove-entries` 5. Advanced Lookup and aggregators a. `totaldosecount` b. `period-baseddosecount (interval and/or timestamp)`+ c. `filter patterns for custom query`
pratyush added the
Type: Feature
Priority: High
Status: WIP
labels 2021-12-05 20:27:23 +01:00
pratyush self-assigned this 2021-12-05 20:27:23 +01:00
Author
Owner

Commands with Syntax:

Breakdown and issues as they come up.

  • For the amount field when logging a dose maybe we can use a converter which will be available in command wrapping using addConverter(). Suggested converter names qty

  • For logging doses for the past is it better to use the hacky --ago HHMM as before, or to use the humanized form --ago 2h30m and what about the ISO Time Format (resolution possible: 1 sec and setting Offset component is disallowed.

Adding
  1. @dose <amount> <name> [<roa>] [--notes [[note1] [note2]..[note n]]]

  2. @dose [--ago <HHMM>] <amount> <name> [<roa>]

  3. @doselog --from <HHMM> --till <HHMM> [--spread <coeff>] [--total] <amount> <name> [<roa>] ??

Lookup
  1. @lastdose

  2. @lastdose <n>

  3. @querydoses <n> or --interval 2h30m or --tstamp 2020-10-01T21:00:00

### Commands with Syntax: #### Breakdown and issues as they come up. * For the `amount` field when logging a dose maybe we can use a [converter](https://github.com/ncoevoet/ChanTracker/blob/master/plugin.py#L1426) which will be available in command wrapping using `addConverter()`. Suggested converter names `qty` * For logging doses for the past is it better to use the hacky `--ago HHMM` as before, or to use the `humanized` form `--ago 2h30m` and what about the ISO Time Format (resolution possible: 1 sec and setting Offset component is disallowed. ##### Adding 1. `@dose <amount> <name> [<roa>] [--notes [[note1] [note2]..[note n]]]` 2. `@dose [--ago <HHMM>] <amount> <name> [<roa>]` 3. `@doselog --from <HHMM> --till <HHMM> [--spread <coeff>] [--total] <amount> <name> [<roa>]` ?? ##### Lookup 1. `@lastdose` 2. `@lastdose <n>` 3. `@querydoses` `<n>` or `--interval 2h30m` or `--tstamp 2020-10-01T21:00:00`
Author
Owner

Some good inspiration available from https://github.com/psybits/gopsydose

Some good inspiration available from https://github.com/psybits/gopsydose
Sign in to join this conversation.
No description provided.