miracle2k / onkyo-eiscp

Control Onkyo A/V receivers over the network; usuable as a script, or as a Python library.
MIT License
466 stars 110 forks source link

Can I use async API from the command line? #75

Open ziv1234 opened 7 years ago

ziv1234 commented 7 years ago

Hi,

Thanks for the tool, really useful to control my new Onkyo receiver from Linux. I use it from the command line onkyo script and was wondering if I can send commands in a non-blocking way from it. I don't need to get the output back.

What I am trying to achieve is for my HTPC, when I click audio-volume-up on my remote, it runs the script onkyo -t MYDEVICE master-volume=level-up and similarly for level-down. It takes about 250ms to run. The problem is that when I press the key for a long time and it gets into repeat mode, it doesn't keep up and produces strange results (device volume continues to climb long after I release). I believe that if I just send the command without waiting for a response, I could be ok.

I read about the async-API and was wondering if it can be invoked from the command line somehow. Is this possible?

Thanks!

miracle2k commented 7 years ago

It's not supported at this time, but it's a good idea. Something like a --no-wait switch, sure.

ziv1234 commented 7 years ago

Thanks. Will follow if it gets added some time

On Wed, 6 Sep 2017 at 23:39 Michael Elsdörfer notifications@github.com wrote:

It's not supported at this time, but it's a good idea. Something like a --no-wait switch, sure.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/miracle2k/onkyo-eiscp/issues/75#issuecomment-327606239, or mute the thread https://github.com/notifications/unsubscribe-auth/APtGy3FmrXgYFgox3T4_Yv6HBEe3Cdbjks5sfwMBgaJpZM4PMMgP .