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

simple example json api #1645

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

simple example json api #1645

wants to merge 2 commits into from

Conversation

twocolors
Copy link

@twocolors twocolors commented Feb 4, 2022

Hello, this is a simple example of a JSON API server, it will be useful if you have services in Docker and want to communicate between services (Docker)

As an example, when a Node-Red is in the docker and you need to work with pyatv

Added here (send pull request), maybe someone will help to make it better or correct errors

Thank you

@postlund
Copy link
Owner

Sorry about the radio silence! I will have a look at it as soon as I get a few minutes and get back to you.

@twocolors
Copy link
Author

ping

@NorthernMan54
Copy link

@twocolors Do you more details on the JSON API or a sample client ? I was trying to see if it can solve this issue #649 and our use case with Homebridge where it is very slow ?

@twocolors
Copy link
Author

twocolors commented Dec 31, 2022

@NorthernMan54 while there is no more information, I'm waiting for @postlund to look at the code and say a comment.

But the main idea is to manage ATV by GET/WS

Perhaps this will help in solving your problem because there will always be a connection

@NorthernMan54
Copy link

Not being a python person, I did get it running, and was able to scan my devices, but couldn’t get connect to work, as i couldn’t figure out the credentials. I had figured you must have something I could use to see if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants