GithubHelp home page GithubHelp logo

Comments (4)

postlund avatar postlund commented on June 10, 2024 1

Thanks for using it 😊 Yeah, no, don't think there's any better way. But you more or less had that answer already then 😉

from pyatv.

postlund avatar postlund commented on June 10, 2024

If you double-press the menu button, you can swipe up to kill an app (I assume you know that). Currently there's no swipe support in pyatv, but just calling up might work as it relies on the touch interface. So you should be able to do something like:

  1. Launch app with launch_app
  2. Now you know the app is first in the app switch list
  3. Double tap menu (atvremote menu=2)
  4. Kill app with atvremote up
  5. Launch app again
  6. Now you have a known state

This should result in something like this:

atvremote launch_app=app delay=X menu=2 delay=Y up launch_app=app

Delays will have to be established manually. I don't know of any deep links for those apps. Might exist, but as I don't use any of them I don't have any real way of finding out. There are some tips in the documentation (here) but you might also strike some luck mailing the developers. Assuming you manage to reach any technicians.

from pyatv.

5opr4ni avatar 5opr4ni commented on June 10, 2024

Thanks Pierre

That is what i am doing now, thought there might be some other way. But thanks anyway, and thanks for a fantastic lib.
I actually was in contact with some former colleagues at SVT where I used to work, and the response was what! Deep links?
:)

from pyatv.

5opr4ni avatar 5opr4ni commented on June 10, 2024

cmd_sequence = [
'/home/lyckan/.local/bin/atvremote', '-s', '192.168.0.250',
'top_menu', 'top_menu',
'delay=1000', 'up', 'up',
'delay=1000', 'top_menu',
'delay=1000', 'top_menu',
'delay=1000', 'select',
'delay=3000', 'down', 'select'
]

from pyatv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.