Marty Oehme
c2f3e38e82
nomie script allows me to quickly journal to my habit tracking app from the commandline.
11 lines
417 B
Bash
Executable file
11 lines
417 B
Bash
Executable file
#!/usr/bin/env sh
|
|
# this script logs a new entry in nomie - https://nomie.app/ - an open source habit tracker and journaling app
|
|
# It will very simply take the text input and pass it on.
|
|
|
|
sendtonomie() {
|
|
req="{\"note\":\"$*\",\"api_key\":\"$(pass show websites/nomie.app/apikey)\"}"
|
|
echo "$req"
|
|
curl -s -H "Content-Type: application/json" --compressed --data "$req" https://nomieapi.com/log
|
|
}
|
|
|
|
sendtonomie "$@"
|