Username: Password:

Author Topic: [LINUX] Notify your phone from the terminal.  (Read 18501 times)

Offline AlfonseX

  • Contributor
  • **
  • Posts: 101
  • Trop de chefs, pas assez d'indiens !
    • View Profile
[LINUX] Notify your phone from the terminal.
« on: July 03, 2017, 11:13:07 AM »
Hello,
I'm just discovered Notify: https://mashlol.github.io/notify/. What is it?

Installation

notify is written with node, so you can install with npm.
Code: [Select]
$ npm install -g notify-clior for me
Code: [Select]
$ sudo npm install -g notify-cli
Usage

Using notify is simple. When you download the app to your phone (https://play.google.com/store/apps/details?id=com.kevinbedi.notify), it will give you a registration key. This key is how your phone is identified by notify. Before you can begin using notify, you should first register your key.
Code: [Select]
$ notify -r myKey
After registering, you can use notify as follows:
Code: [Select]
$ someLongRunningCommand ; notify
You will receive a push notification to your phone when the command has completed, regardless of whether or not it was successful.

You can also specify what the notification will say, like this:
Code: [Select]
$ notify -t "My custom message"
Imagine all the possibilties.
I's a KISS program. That's it!
« Last Edit: July 03, 2017, 11:15:49 AM by AlfonseX »
If you think I helped you, give me a drink:
in btc: 12aeQSpytxoehCEptQE8tUJVVSAS42LvXo
in eth: 0x02a611f0c15bccdb6fa8e5e4b0692ff6d77852bd