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

    [Tutorial] Get text output from bash files into your python script!

    Scheduled Pinned Locked Moved Ideas and Development
    cyperghostpython
    38 Posts 10 Posters 10.5k 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.
    • cyperghostC
      cyperghost @CapNinja
      last edited by

      @CapNinja yes. Retroflag did not change any line of code since the NESPi so this is working with SuperPi and the new MegaPi case, too.
      I have a US version of their SuperPi-case and the code is working best.

      C 1 Reply Last reply Reply Quote 1
      • C
        CapNinja @cyperghost
        last edited by

        @cyperghost
        Thanks

        1 Reply Last reply Reply Quote 0
        • benjaminjayB
          benjaminjay
          last edited by

          I have a 3B+ in the Nespi case and followed the "automatic install" instructions but the power and reset buttons don't work. Do I need to install the script from RetroFlag first?

          cyperghostC 1 Reply Last reply Reply Quote 0
          • cyperghostC
            cyperghost @benjaminjay
            last edited by

            @benjaminjay If no switch is working for you then the script from retroflag will also fail. You should set small switch in SAFE SHUTDOWN ON position and/or recheck wiring.

            benjaminjayB 1 Reply Last reply Reply Quote 0
            • benjaminjayB
              benjaminjay @cyperghost
              last edited by

              @cyperghost I had the safe shutdown/reset working fine with the old Pi 3 model no problem. I just built 2 units side by side exactly the same with Pi 3 B+ and Nespi case and tried both the RetroFlag script and the auto installation posted here and neither of them work at all.

              1 Reply Last reply Reply Quote 0
              • C
                CapNinja
                last edited by CapNinja

                I'm having the error 404 today, but other things in github still ok.
                edit: Typing wrong was what got me into that, now it's alright

                1 Reply Last reply Reply Quote 0
                • S
                  stevedee78
                  last edited by

                  Hi

                  I’ve just stumbled across your script, which looks exactly what I need. I’ve recently got a new pi case, a RetroFlag NESPI, with reset button and power switch. I initially configure this using the RetroFlag Safeshutdown script (https://github.com/RetroFlag/retroflag-picase/blob/master/SafeShutdown.py), and that works fine. Reset causes ES to reboot safely and Power causes ES to shutdown.

                  However what I’d rather is for Reset to close down all emulators and go back to menu, which your script does. Is the best way for me to implement your script on top of my current solution to simply modify SafeShutdown.py to call your script passing in —emuclose rather than the current “sudo killall emulation station” do you think?

                  Thanks

                  cyperghostC 1 Reply Last reply Reply Quote 0
                  • cyperghostC
                    cyperghost @stevedee78
                    last edited by

                    @stevedee78 visit this one https://github.com/crcerror/retroflag-picase

                    1 Reply Last reply Reply Quote 0
                    • C
                      Carlos0371 @cyperghost
                      last edited by

                      @cyperghost Hi mate, I know this is quite old but I'm only just getting into Pi, and I've installed your script. However, prior to installing, I installed the "RecallBox" script from the github repository by mistake, instead of the retropie one. Do I need to uninstall that script, if so, how please?

                      Sorry, from a NOOB.

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        Carlos0371 @Carlos0371
                        last edited by

                        @carlos0371 said in [Tutorial] Get text output from bash files into your python script!:

                        @cyperghost Hi mate, I know this is quite old but I'm only just getting into Pi, and I've installed your script. However, prior to installing, I installed the "RecallBox" script from the github repository by mistake, instead of the retropie one. Do I need to uninstall that script, if so, how please?

                        Sorry, from a NOOB.

                        OK so I worked out that as the directories the recallbox script was trying to install to didn't exist, it didn't actually install anything.

                        Next question is, I've run all the commands, but still not working.

                        If I'm in ES and press the rest, it reboots completely, it doesn't just restart ES as it's supposed to.

                        cyperghostC 1 Reply Last reply Reply Quote 0
                        • cyperghostC
                          cyperghost @Carlos0371
                          last edited by

                          @carlos0371 I left the recalbox-script in original state. So there it reboots the whole Pi

                          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.