Destroyed Shell interface (markdown)
parent
4198e234d0
commit
e4619ae143
|
@ -1,42 +0,0 @@
|
||||||
`platypush` installs `pusher`, a command-line tool to send PushBullet messages to the connected devices in the format used by platypush.
|
|
||||||
|
|
||||||
Some examples:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pusher --target laptop --action shell.exec --cmd "scp /home/user/photos/*.jpg backup_host:/mnt/hd/photos"
|
|
||||||
pusher --target raspberrypi --action music.mpd.play
|
|
||||||
```
|
|
||||||
|
|
||||||
The logic to execute is specified by the `--action` option, whose format is `package_name.method_name` (with method_name part of the package main class).
|
|
||||||
|
|
||||||
# Sample requests through Pusher
|
|
||||||
|
|
||||||
* `platypush.plugins.shell`:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pusher --target laptop --action shell.exec --cmd "scp /home/user/photos/*.jpg backup_host:/mnt/hd/photos"
|
|
||||||
```
|
|
||||||
|
|
||||||
* `platypush.plugins.music.mpd`:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pusher --target raspberry --action music.mpd.play
|
|
||||||
```
|
|
||||||
|
|
||||||
* `platypush.plugins.switch.wemo`:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pusher --target raspberry --action switch.wemo.on
|
|
||||||
```
|
|
||||||
|
|
||||||
* `platypush.plugins.light.hue`:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pusher --target raspberry --action light.hue.scene --name "Sunset" --group "Living Room"
|
|
||||||
```
|
|
||||||
|
|
||||||
* `procedure`:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pusher --target raspberry --action procedure.at_home
|
|
||||||
```
|
|
Loading…
Reference in New Issue