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
spruce up help output a bit
  • Loading branch information
bewest committed Oct 6, 2015
commit e81593debff422beed77c8b3fe2dc90f3af42bdf
4 changes: 3 additions & 1 deletion bin/oref0-iftt-notify
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

self=$0
self=$(basename $0)
# Something like this:
# https://maker.ifttt.com/trigger/{event}/with/key/MyKey
IFTTT_TRIGGER=${IFTTT_TRIGGER-${1}}
Expand All @@ -10,6 +10,7 @@ function help_message ( ) {
cat <<EOF
Usage:
$self <IFTTT_TRIGGER> <NOTIFY_USAGE>

## Setup IFTTT Account

You need to create an account and connect to the Maker channel and the
Expand Down Expand Up @@ -54,6 +55,7 @@ Crontab:

IFTT_NOTIFY_USAGE='pump model'

Author: @audiefile
EOF

}
Expand Down
4 changes: 3 additions & 1 deletion bin/oref0.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash


self=$0
self=$(basename $0)
NAME=${1-help}
shift
PROGRAM="oref0-${NAME}"
Expand All @@ -13,7 +13,9 @@ function help_message ( ) {
$self <cmd>

Valid commands:
oref0 env - print information about environment.
oref0 pebble
oref0 iftt-notify
oref0 get-profile
oref0 calculate-iob
oref0 determine-basal
Expand Down