Show HN: Notify – CLI to notify your phone
mashlol.github.io
mashlol.github.io
Im trying it out right now and the Android app told me to use an identifier that starts with a '9'. I typed `notify -r <my_identifier>`. When I try running `notify` however, it gives me this:
[notify] Encountered an error: ParseError { code: 141, message: 'Error 112: Channel name must start with a letter: <my_identifier>' }
$ someLongRunningCommand || notify
This will send a push to your phone when the command has completed, regardless of success or failure.
Obviously that will only notify upon command failure. It looks like the webpage is accurate (uses a ;) so perhaps the app just hasn't been updated yet.Two comments: 1. It should accept a message from stdin 2. When sending a message via the -t parameter, after clicking the notification in Android, I see "Your identifier is: Hello World!". Is that intentional or a bug?
Then add the following to your .profile (or .bashrc or whatever you prefer):
# add node.js bin to PATH
npath=~/Applications/node-v4.2.1-linux-x64/bin
if [ -d "$npath" ]; then
PATH=$npath${PATH:+:$PATH}
fi
Then add the following to your .manpath if you want access to node manpages: # node.js
MANPATH_MAP ~/Applications/node-v4.2.1-linux-x64/bin ~/Applications/node-v4.2.1-linux-x64/share/man
MANPATH_MAP ~/Applications/node-v4.2.1-linux-x64/bin ~/Applications/node-v4.2.1-linux-x64/lib/node_modules/npm/man
Then to install: npm install -g notify-cli
Obviously you may need to update the particulars.Is it possible to customize the notification text?
Small error: Rotating the phone while in the app changes the text to "Your identifier is: Hello World!" and you have to completely quit the app to fix it.
Do I have to install an app on my mobile?
While I hadn't heard of it until you mentioned it, the main difference between this and Pushover seems to be that 1) Pushover seems to have more features and available platforms, and 2) Pushover costs money while this is free & opensource.