• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

HTTP Based Control

Scheduled Pinned Locked Moved Ideas and Development
http controlauto launch
4 Posts 4 Posters 970 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    ghctim
    last edited by 27 Dec 2016, 19:25

    I would like to be able to control my retropie via HTTP. What I mean by this is I would like to be able to send a web request to the Pi to launch an emulator before I pick up the remote. This would allow tight home automation integration. So with one "click" I can turn the TV on the correct input, the amp and launch the emulator I want to play.

    Is this something that is possible?

    H 1 Reply Last reply 4 Jan 2017, 20:13 Reply Quote 0
    • M
      mercifulhacker
      last edited by 4 Jan 2017, 15:42

      Just responding to make sure this thread isn't ignored.

      I don't have a solution, but have you considered controlling a PSU via HTTP? I know there are several PSUs with network connectivity.

      Just plug the pi, TV, and amp into it, and when you turn it on all three should start right up.

      I don't know about launching the emulator via http. You could create a simple startup script to launch an emulator. I would research unix auto-start bash scripts and terminal commands for launching the emulator you care about.

      1 Reply Last reply Reply Quote 1
      • H
        herb_fargus administrators @ghctim
        last edited by 4 Jan 2017, 20:13

        @ghctim you could use node.js with a launching script, or hack it from one of the mobile gamepad modules. You'll have to figure out the custom code for your implementation though

        If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

        Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • S
          sselph
          last edited by 4 Jan 2017, 23:45

          Unless something has changed, ES is just a pretty wrapper around es_systems.cfg which tells you where the roms are, and what command to run to launch the emulator. RetroPie did a bunch of work to help customize the launching but seems like you could write an HTTP server that could receive a request then stop ES, run the launch command, then restart ES afterward all based on the data in es_systems.

          Auto-scraper: https://github.com/sselph/scraper
          Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

            This community forum collects and processes your personal information.
            consent.not_received