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

    Execute Python Script at ROM Startup

    Scheduled Pinned Locked Moved General Discussion and Gaming
    6 Posts 4 Posters 2.3k 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.
    • S
      silviustro
      last edited by

      Hi everyone.

      So, I had an idea to display the console that is being currently emulated using an RGB LED or an LCD screen. In order to do that I would need to write a python script to control the GPIO pins.

      This is my question: How do I execute the script every time a ROM gets loaded trough EmulationStation?

      I was thinking maybe adding a new parameter to the "es_systems.cfg" file with the location of the script, but how would I execute it?

      Thanks in advance for the help (;

      1 Reply Last reply Reply Quote 0
      • suprjamiS
        suprjami
        last edited by

        As mentioned on Reddit, runcommand supports user_script "runcommand-onstart.sh" for exactly this.

        1 Reply Last reply Reply Quote 1
        • S
          silviustro
          last edited by

          Thanks for your answer! I will have to try it out.

          1 Reply Last reply Reply Quote 0
          • obsidianspiderO
            obsidianspider
            last edited by

            Once you get it working, please let us know how you did it. I was thinking of displaying the name of the game, or better yet, game art while the game is being played on a GPIO-driven screen.

            📷 @obsidianspider

            1 Reply Last reply Reply Quote 0
            • D
              dawtyne10
              last edited by dawtyne10

              @silviustro

              I read about this one a few days ago... may be a place to start :)

              Meet the "RetroG"!!

              edit: changed link to match markdown reference

              1 Reply Last reply Reply Quote 0
              • obsidianspiderO
                obsidianspider
                last edited by

                Here's an awesome bartop with an animated secondary display that inspired me to look into this a few months ago. I just re-found the post on reddit

                0_1471304826534_glcd.png

                📷 @obsidianspider

                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.