• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • C
    CapNinja
    last edited by 25 Nov 2018, 23:15

    Sorry if this is too obvious, but can I install this using a snespi+ instead?

    C 1 Reply Last reply 25 Nov 2018, 23:24 Reply Quote 0
    • C
      cyperghost @CapNinja
      last edited by 25 Nov 2018, 23:24

      @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 25 Nov 2018, 23:54 Reply Quote 1
      • C
        CapNinja @cyperghost
        last edited by 25 Nov 2018, 23:54

        @cyperghost
        Thanks

        1 Reply Last reply Reply Quote 0
        • B
          benjaminjay
          last edited by 27 Nov 2018, 00:47

          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?

          C 1 Reply Last reply 27 Nov 2018, 04:16 Reply Quote 0
          • C
            cyperghost @benjaminjay
            last edited by 27 Nov 2018, 04:16

            @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.

            B 1 Reply Last reply 27 Nov 2018, 05:02 Reply Quote 0
            • B
              benjaminjay @cyperghost
              last edited by 27 Nov 2018, 05:02

              @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 12 Aug 2018, 13:33 8 Dec 2018, 02:16

                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 7 Jan 2021, 18:56

                  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

                  C 1 Reply Last reply 9 Jan 2021, 06:55 Reply Quote 0
                  • C
                    cyperghost @stevedee78
                    last edited by 9 Jan 2021, 06:55

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

                    1 Reply Last reply Reply Quote 0
                    • C
                      Carlos0371 @cyperghost
                      last edited by 16 Jul 2021, 11:48

                      @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 16 Jul 2021, 12:11 Reply Quote 0
                      • C
                        Carlos0371 @Carlos0371
                        last edited by 16 Jul 2021, 12:11

                        @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.

                        C 1 Reply Last reply 16 Jul 2021, 14:04 Reply Quote 0
                        • C
                          cyperghost @Carlos0371
                          last edited by 16 Jul 2021, 14:04

                          @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.

                            [[user:consent.lead]]
                            [[user:consent.not_received]]