Gunthy

GUNBOT: The automatic profit generator => General Discussion => Topic started by: AlfonseX on July 03, 2017, 11:13:07 AM

Title: [LINUX] Notify your phone from the terminal.
Post by: AlfonseX on July 03, 2017, 11:13:07 AM
Hello,
I'm just discovered Notify: https://mashlol.github.io/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!