Skip to content

Drive the remote

r3ctl is a small program that controls a running r3cui over the network. Use it to test on a real remote, or to script the desktop demo.

On the remote, turn on the r3cui configurator. It shows a key. Then:

Terminal window
cargo install --path crates/r3ctl
r3ctl connect 192.168.1.50 ABCDE-FGHJK

Use your remote’s address and its key. r3ctl remembers them.

r3ctl alone opens a shell. r3ctl <command> runs one command and prints JSON, for scripts.

r3> state the page, the input, the battery
r3> key ok tap a key
r3> hold home 1200 hold a key, in milliseconds
r3> touch 240 400 tap the screen (480×800)
r3> page integrations open a page by name
r3> screenshot shot.png save a picture of the screen
r3> help every command

There’s no power key over the network. Switching the remote off stays physical.

The same commands, one per line in a file, drive the desktop app and take pictures on the way:

Terminal window
cargo run -p r3cui -- --demo --steps scripts/tour.steps --out shots/

scripts/tour.steps visits every page. Run it before and after a change to the screens and compare the pictures.

r3ctl help lists every command.