roku-cli icon indicating copy to clipboard operation
roku-cli copied to clipboard

No command line control?

Open Josephur opened this issue 3 years ago • 3 comments

This is a great thing... however why no command line way to send a single keypress? Seems simple enough to implement.. was just wondering why this was never added to this project? Could be useful for bash scripting for example.

roku ip.addr -c H (to send home for example)

If I knew enough Python I'd attempt to add it myself, perhaps this is the motivation I need to do so :)

Josephur avatar Sep 30 '22 05:09 Josephur

why no command line way to send a single keypress? Seems simple enough to implement.. was just wondering why this was never added to this project?

No specific reason, I just didn't consider the bash scripting use-case (it was originally intended to be used interactively).

It's a good idea, and I agree it probably wouldn't be too hard to implement. If you want to take a shot at implementing it, I'd welcome a pull request.

ncmiller avatar Oct 01 '22 00:10 ncmiller

I may give it a crack, would need two options perhaps, one for the command itself to be sent and perhaps a delay flag to set the delay between keys sent.

Josephur avatar Oct 01 '22 00:10 Josephur