Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OsamaJBR/command-line-push-notification
Notifier is a simple script that could be added to a Linux system and give it the ability to push notifications to Android phone from the command line
https://github.com/OsamaJBR/command-line-push-notification
android-phone command-line-tool linux notifications notifier push-notifications simplepush
Last synced: about 1 month ago
JSON representation
Notifier is a simple script that could be added to a Linux system and give it the ability to push notifications to Android phone from the command line
- Host: GitHub
- URL: https://github.com/OsamaJBR/command-line-push-notification
- Owner: OsamaJBR
- Created: 2016-09-17T04:05:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-15T18:19:54.000Z (about 8 years ago)
- Last Synced: 2024-07-03T05:24:26.605Z (5 months ago)
- Topics: android-phone, command-line-tool, linux, notifications, notifier, push-notifications, simplepush
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-jordan - Command Line Push Notifications - A simple script that could be added to the Linux system and give it the ability to push notifications to Android phone from the command line. (Linux)
README
# push-notifier
-----------------
Notifier is a simple python script that could be added to a Linux system and give it the ability to push notifications to Android phones using SimplePush.io### Usage :
-----------
#### Basic
##### Defind user in notifier.conf
```
notifier -t 'Test Notifier' -m 'Notification Text Body'
```
##### Given user-key as param
```
notifier -u USER_KEY -t 'Test Notifier' -m 'Notification Text Body'
```#### Groups
##### Defind group in notifier.conf
```
notifier -g developers -t 'Test Notifier' -m 'Notification for a group user'
```![alt tag](https://i.imgflip.com/1arn0r.gif)
#### Conditional
```
$ command_or_script && notifier -t title_title -m "success message"$ command_or_script || notifier -t title_title -m "failure message"
$ command_or_script && notifier -t title_title -m "success message" || notifier -t command_name -m "failure message"
```## Installation
#### Android
---------
##### Install SimplePush Application (https://simplepush.io/)### Linux
-----
#### Manual
```
$ git clone [email protected]:OsamaJBR/push-notifier.git push-notifier
$ cp push-notifier/notifier.conf /etc/notifier.conf
$ PKG_MANAGER=$( command -v yum || command -v apt-get )
$ $PKG_MANAGER install -y python-requests python-argparse python-configparser
$ sed -i 's/XXXX/YOUR_KEY/' /etc/notifier.conf #(chage YOUR_KEY to the key you've got from simple push app)
$ cp push-notifier/notifier.py /usr/local/bin/notifier
$ chmod +x /usr/local/bin/notifier
```
#### Automated
```
sudo bash <(curl -s https://raw.githubusercontent.com/OsamaJBR/push-notifier/master/setup.sh )
```