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

Verify support with Apple TV 4 #3

Closed
postlund opened this issue Feb 1, 2017 · 13 comments
Closed

Verify support with Apple TV 4 #3

postlund opened this issue Feb 1, 2017 · 13 comments

Comments

@postlund
Copy link
Owner

postlund commented Feb 1, 2017

As I only have a gen 3 device, I have not yet verified pyatv with a gen 4 device. If you have one, please try the library out and report any issues. The atvremote is probably easiest to use, look under docs/ for some help.

@arsaboo
Copy link

arsaboo commented Feb 1, 2017

I have a ATV4 and when I run the command atvremote, I get an error:

pi@raspberrypi:~ $ atvremote
usage: atvremote [-h] [-v] [--developer] [--debug] [--name NAME]
                 [--address ADDRESS] [-t TIMEOUT] [-a | --hsgid HSGID]
                 command
atvremote: error: the following arguments are required: command

Running atvremote -a next does not do anything, but does not give error.

pi@raspberrypi:~ $ atvremote -a next

@robbiet480
Copy link
Contributor

It's working perfectly for me on two Apple TV 4th generation devices!

@arsaboo
Copy link

arsaboo commented Feb 2, 2017

@robbiet480 I ran the atvremote command directly after the sudo pip install. I am running it on a Pi on the same network as the ATV.

@robbiet480
Copy link
Contributor

@arsaboo Don't know what to tell you, I installed it (via the repo) and it just worked the first time I tried it. Discovered devices and allowed me to see their states and everything

@robbiet480
Copy link
Contributor

Issues i've discovered thus far with my aTV 4:

  • Sending the pause command pauses playback for a split second then resumes it. I even manually hit the URL (http://192.168.1.214:3689/ctrl-int/1/pause?session-id=22&hsgid=00000000-0ba7-9abb-857f-3f12f3b94448&prompt-id=0) and had the same issue, so it's not a pyATV specific problem...

@postlund
Copy link
Owner Author

postlund commented Feb 2, 2017

@arsaboo, if you run atvremote scan, does your device show up? Just running with -a does not work as it requires a command as well (like play, next or playing). It should give an error if no device is found, so I would believe that it works. Try starting a movie or some music and enter atvremote -a playing and you should hopefully see something. Using play, pause, next, etc. should also work.

@robbiet480, great that it seems to work :) The pause issue is not something that I have seen on my device. Maybe @arsaboo can try this is well? Play something and use the pause command?

@robbiet480
Copy link
Contributor

@postlund I'm trying everything I can to figure out the pause issue. The official remote app works, nothing else does. It seems most if not all other commands are working properly.

@robbiet480
Copy link
Contributor

Gonna open a new issue for pause

@postlund
Copy link
Owner Author

postlund commented Feb 3, 2017

I believe we have managed to sort this out in #7, so I'm gonna close it :(

@postlund postlund closed this as completed Feb 3, 2017
@postlund
Copy link
Owner Author

postlund commented Feb 3, 2017

I mean :)

@dale3h
Copy link

dale3h commented Feb 8, 2017

atvremote scan failed for me also.

However, after many hours of researching, I was able to find the hG for my Apple TV devices by running this in my Mac's terminal:

dns-sd -Z _appletv-v2._tcp.

Devices: 2x Apple TV (4th Gen)

@arsaboo
Copy link

arsaboo commented Feb 8, 2017

atvremote scan worked for me 👍

@themanieldaniel
Copy link

themanieldaniel commented Feb 16, 2017

atvremote scan returns
Found Apple TVs:
but it doesn't list any Apple TVs or info about them. No error, no list. frustrating. Not sure what to do now.
btw I have one Apple TV 4th Gen

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

No branches or pull requests

5 participants