mirror of
https://github.com/HackHerz/pusher
synced 2025-12-06 02:10:19 +00:00
Updated README
This commit is contained in:
parent
15bfe96264
commit
4e2e035c4c
2 changed files with 38 additions and 5 deletions
41
README.md
41
README.md
|
|
@ -1,20 +1,53 @@
|
|||
# pusher
|
||||
Pusher is a program to notify you.
|
||||
**pusher** is a simple cli program to connect your server or computer with the app [PushNotifier](http://www.pushnotifier.de/).
|
||||
|
||||
|
||||
# Building
|
||||
## Requirements
|
||||
|
||||
* boost
|
||||
* curl
|
||||
* boost `libboost-program-options-dev`
|
||||
* curl `libcurl4-gnutls-dev`
|
||||
|
||||
## Compile
|
||||
|
||||
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](http://www.gidix.de/) account.
|
||||
|
||||
pusher -t
|
||||
|
||||
|
||||
# Documentation
|
||||
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.
|
||||
|
||||
|
||||
2) 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
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ void PushHandler::sendToDevice(int id, string message)
|
|||
boost::property_tree::read_json(jsonData, pt);
|
||||
|
||||
|
||||
switch(pt.get<int>("id"))
|
||||
switch(pt.get<int>("code"))
|
||||
{
|
||||
case 0: //return 0;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue