remoshock > Applications > remoshockcli

🖥 Command line interface (remoshockcli)

remoshockcli allows you to send commands using the command line ("terminal window").

By default, it will send a BEEP command to the first receiver configured in `remoshock.ini`.

For example, to send a shock with 10% power for a duration of 250ms to the first receiver:

remoshockcli --receiver 1 --action SHOCK --power 10 --duration 250

The following actions are supported:

usage: remoshockcli [-h] [-r n] [-a {LIGHT,BEEP,VIBRATE,SHOCK,BEEPSHOCK}] [-d n] [-p n] [-v] [--version]

Shock collar remote

optional arguments:
  -h, --help            show this help message and exit
  -C CONFIGFILE, --configfile CONFIGFILE
                        custom configuration file. Defaults to ~/.config/remoshock.ini
  -S SETTINGSFILE, --settingsfile SETTINGSFILE
                        custom settings file. Defaults to ~/.config/remoshock.dat
  -a {LIGHT,BEEP,VIBRATE,SHOCK,BEEPSHOCK},
  --action {LIGHT,BEEP,VIBRATE,SHOCK,BEEPSHOCK}
                        action to perform
  -d n, --duration n    duration in ms. Duration is rounded to a multiple
                        of the impulse length (e. g. 250ms for PAC)
  -p n, --power n       power level (0-100)
  -r n, --receiver n    index of receiver entry from remoshock.ini, starting at 1
  -v, --verbose         prints debug messages
  --version             show program's version number and exit

Please see https://remoshock.github.io for documentation.