1
0
Fork 0
mirror of https://github.com/HackHerz/pusher synced 2025-12-06 02:10:19 +00:00
Send notifications from the command line to your phone or tablet.
Find a file
2014-09-11 21:36:09 +02:00
src Added url-decoding 2014-09-11 18:43:24 +02:00
.gitignore First commit 2014-09-11 14:16:50 +02:00
configure Updated readme 2014-09-11 21:36:09 +02:00
configure.ac Added url-decoding 2014-09-11 18:43:24 +02:00
LICENSE First commit 2014-09-11 14:16:50 +02:00
makefile.in Fixed makefile 2014-09-11 19:27:40 +02:00
README.md Updated readme 2014-09-11 21:36:09 +02:00

pusher

pusher is a simple cli program to connect your server or computer with the app PushNotifier.

Building

Requirements

  • boost libboost-dev
  • boost regex libboost-regex-dev
  • boost program options libboost-program-options-dev
  • curl libcurl4-gnutls-dev

Compile

First you do have to change API_TOKEN in src/pushhandler.h. You can receive your API-Token at a.gidix.de. Don't forget to match the APP-Package as well.

chmod +x configure
./configure
make
make install

If you want to uninstall pusher try

make remove

Usage

The first time using pusher you have to log in to your gidix.de account.

pusher -t

The next step is to request a list of all your devices available

pusher -l

You are finally able to send messages from your server to your device. You have two options now.

  1. Normal mode. Declare the message in " and put the message as your last argument.

    pusher -i # "hello world"

Replace the # with the id of your device.

  1. Pipe mode. You can pipe the output of another program, e.g. echo, into pusher

    echo "hello world" | pusher -i # -p

To see more available options use the help flag.

pusher -h