denonavr icon indicating copy to clipboard operation
denonavr copied to clipboard

Added additional commands

Open albaintor opened this issue 2 years ago β€’ 3 comments

Added additional commands for AVR : cursor pad, settings and option menu, info as requested in https://github.com/ol-iver/denonavr/issues/289

albaintor avatar Mar 16 '24 10:03 albaintor

I think you are always sending HTTP commands, even if the library is in telnet control mode. Or did I miss something here?

klada avatar Mar 16 '24 13:03 klada

I think you are always sending HTTP commands, even if the library is in telnet control mode. Or did I miss something here?

Indeed I am not aware (yet) on how the library works. I added only HTTP commands. Is it the same command names for telnet ? Also one of the commands expects a reply, is it possible to get a response for telnet commands ? I will check after this anyway

albaintor avatar Mar 16 '24 14:03 albaintor

Hi again, I added corresponding commands for telnet protocole according to this documentation https://www.heimkinoraum.de/upload/files/product/IP_Protocol_AVR-Xx100.pdf

albaintor avatar Mar 16 '24 14:03 albaintor

H @ol-iver, do you intend to merge the PR soon ? Thank you

albaintor avatar Mar 30 '24 09:03 albaintor

I like the idea, thanks for your PR πŸš€
This is a private project, so I don't have always enough time for it. However, I'll check your PR this weekend πŸ™‚

ol-iver avatar Apr 02 '24 15:04 ol-iver

I just enabled the test. You could already start fixing the tests and the linting issues. In case you want to run them locally, please check the github workflows how you can run linting and unit tests.

ol-iver avatar Apr 02 '24 16:04 ol-iver

Hi, I have updated formatting

albaintor avatar Apr 05 '24 14:04 albaintor

Hi, I have added the missing commands (unit testings passed this time) and added public methods

albaintor avatar Apr 19 '24 07:04 albaintor

Thanks πŸ™‚ There is one last thing. You too many methods. Those decorated with @run_async_synchronously are deprecated and I removed them with https://github.com/ol-iver/denonavr/pull/291 for all other methods.

ol-iver avatar Apr 21 '24 08:04 ol-iver

Hi @ol-iver, I have applied the merge. It should be okay this time :)

albaintor avatar Apr 25 '24 09:04 albaintor

There are still a couple of linting issues πŸ˜… Unless you contributed for the first time, Github does not start the tests automatically. Thus is would make sense if you run the code-format and the integration tests locally.

ol-iver avatar May 02 '24 08:05 ol-iver

Hi,

I missed one of the formatting tasks. It should be (hopefully) ok this time

I have a question : are you sure that telnet is faster than HTTP commands ? It may be my setup but I find volume up/down more reactive with http commands

Thanks Damien

De : Oliver @.> EnvoyΓ© : jeudi 2 mai 2024 10:12 Γ€ : ol-iver/denonavr @.> Cc : albaintor @.>; Author @.> Objet : Re: [ol-iver/denonavr] Added additional commands (PR #290)

There are still a couple of linting issues πŸ˜… Unless you contributed for the first time, Github does not start the tests automatically. Thus is would make sense if you run the code-formathttps://github.com/ol-iver/denonavr/blob/c70e8ce11cd1f9ef86053201588d41d1f63b6e14/.github/workflows/python-code-format.yml#L31-L42 and the integration testshttps://github.com/ol-iver/denonavr/blob/c70e8ce11cd1f9ef86053201588d41d1f63b6e14/.github/workflows/python-tests.yml#L34-L36 locally.

β€” Reply to this email directly, view it on GitHubhttps://github.com/ol-iver/denonavr/pull/290#issuecomment-2089864463, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4IHILAXQEKOZRI274DLJD3ZAHYOLAVCNFSM6AAAAABEZHF6YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZHA3DINBWGM. You are receiving this because you authored the thread.Message ID: @.@.>>

albaintor avatar May 02 '24 17:05 albaintor

There was still an issue. I fixed the last one by myself. Please run the tests locally the next time πŸ˜‰

The main advantage of telnet is that the properties of your receiver are updated immediately, even when you are pressing buttons on your remote control. When you use HTTP you have to poll for updates with async_update method.

ol-iver avatar May 04 '24 19:05 ol-iver

Thanks for your work πŸš€

ol-iver avatar May 04 '24 19:05 ol-iver