Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help for a Dumb] Trying to only Pair/Authenticate and send 1 Cursor Down #2490

Open
Revono opened this issue Aug 29, 2024 · 3 comments
Open
Labels

Comments

@Revono
Copy link

Revono commented Aug 29, 2024

What to investigate?

Hi all,

Im trying to understand how this works, i investigated now 6 hours to get 1 little python script without using pyatv lib to pair my own script and send a cursor down but it looks like im to dumb, if someone can help me or give me a nice example it would be very cool.

Thank you very much.

Expected outcome

I want to do my own script to only Pair with Apple TV 4k and send Cursor Down without using pyatv lib for learning purpose

@Revono Revono added the investigate Needs more investigation to see if possible label Aug 29, 2024
@postlund
Copy link
Owner

Do you mean that you want to implement the protocols yourself (not depends on pyatv at all)?

@Revono
Copy link
Author

Revono commented Aug 30, 2024

@postlund Yes, but only for the remote control features. While PyATV is a great library, it’s too large and complex for my needs. I’m only looking for the basic functionality. I’m fine with reusing individual files, but I don’t need the entire library. Additionally i want to understand what im doing.

@postlund
Copy link
Owner

postlund commented Sep 6, 2024

I would focus on the Companion protocol, it's the simplest one. You can either pull files from pyatv/protocols/companion and some dependencies from other places. Everything is pretty tight coupled within pyatv (due to re-use of code amongst protocols). If you want a bare minimum implementation, then you will need to write an implementation yourself. You can get good guidance from the pyatv code, by running atvremote and reading on https://pyatv.dev/documentation/protocols/#companion-link.

@postlund postlund added question and removed investigate Needs more investigation to see if possible labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants