From f07268293cb29983159966b68942c9bcf83149a5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 3 Nov 2017 18:17:47 +0100 Subject: [PATCH] README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index e32277fc6..3612157d2 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,17 @@ Edit the file to include: * Your PushBullet access token (create one [here](https://www.pushbullet.com/#settings/account)); * The name of the (virtual) PushBullet device used to listen for events (create one [here](https://www.pushbullet.com/#devices)). +Each target device is identified by a unique device_id in the messages sent over your account. The device_id is the hostname by default, unless changed in config.yaml. + +Testing +------- + +`runbullet` installs `pusher`, a command-line tool to send PushBullet messages to the connected devices in the format used by runbullet. + +Some examples: + +```shell +echo '{"cmd":"scp /home/user/photos/*.jpg backup_host:/mnt/hd/photos"}' | pusher --target laptop --plugin shell +echo '{"play":true}' | pusher --target raspberrypi --plugin music.mpd +``` +