RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    1. Home
    2. Tags
    3. python
    Log in to post
    • All categories
    • BobHarrisB

      No music without boot text

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support hide boot text python bgm player
      17
      0 Votes
      17 Posts
      2k Views
      BobHarrisB

      @mitu I gave it another shot and moving the line to autostart did the trick! Music still starts and I get to keep the music folder on my usb stick. Thanks!

    • M

      Brightness Script Help?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support brightness python overlay
      1
      0 Votes
      1 Posts
      727 Views
      No one has replied
    • P

      Overlays in python

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development python c++ overlay
      3
      0 Votes
      3 Posts
      1k Views
      P

      Thank you for the point to minty pi.

      Will post the first images as soon as it‘ in „beta“. But it will be fairly easy to print and build ;) will be in beta somewhere in q1 :D

    • N

      runcommand-onstart.sh pass data to python script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support runcommand onstart python shell bash
      17
      0 Votes
      17 Posts
      3k Views
      meleuM

      @nemecyys said in runcommand-onstart.sh pass data to python script:

      Because im running this python script every time i run onstart.sh or onend.sh does that mean there will be LOTS of instances of it running?

      On normal typical usage, no. The runcommand script calls the onstart one and waits it finish. The way you're invoking your python script in onstart also makes it wait the python script to finish.

      Then, from what I'm seeing from the codes, I believe that there won't be lots of instances running.

      With a Bash Script:
      Would this also be the case?
      Would i want to exit the bash after running and achieving the desired result?

      There's no need.

      *also, any links to some of meleu's coding goodness?

      You can find links to some of my scripts on the "useful topics" post (link on my signature). You can find many other useful info there. ;-)

      Oh, as @cyperghost said, we usually use this thread to talk about shell scripting.

      By the way, you asked above and I'm not sure if you got an answer: the /dev/shm/runcommand.log file is deleted after a shutdown/reboot.

    • J

      Help running runcommand from python script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python remote
      1
      0 Votes
      1 Posts
      695 Views
      No one has replied
    • G

      How to launch emulation station in Python script?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python launch script run emulation
      9
      0 Votes
      9 Posts
      4k Views
      G

      @buzz
      Sorry for the long delay - I was prevented from working on this. When I did get around to it though, I was able to use this advice to come up with a solution. Thanks a bunch!

    • K

      Can't Instal Optional package (Source)

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support reicast python source
      4
      0 Votes
      4 Posts
      2k Views
      K

      I have reinstaled retropie , and Reicast is ok now.
      but now I have another issue,I can't see my Pi in my network -_-' .
      BTW , you can close this topic.

    • anasazi29A

      GPIO connected button with Start/Select exit command?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming gpio raspberry pi 3 python buttons python
      2
      0 Votes
      2 Posts
      1k Views
      caver01C

      @anasazi29 Broadly speaking, here is what you need to do: You need a python script that will watch a GPIO pin (that you have wired to a normally open switch like an arcade button--other wire to ground) such that when the button is pressed, the script sends a keypress. The key you send (suggestion: "ESC") would have to be picked up by the emulator as EXIT. So, you will have to go into your retroarch.cfg file, disable the hotkey function, and set the EXIT function to "ESC".

      I know of a few ways this has been done in the past. One of the more popular is to use the adafruit Retrogame software. This basically takes care of the scripting process and leaves it up to you to configure what keys the GPIO pins trigger. Some folks use ONLY this solution for input control.

      I also like mholgatem's GPIOneer which does the same thing, but uses a more elegant interactive configuration, then a web interface once it is setup. It is also easy to configure combo keys and to send full commands (I use it to send commands to increase and decrease master volume).

    • V

      Request to add my scraper (es-vscraper) to retropie!

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development scraper emulationstatio python retropie feedbackwanted
      2
      2 Votes
      2 Posts
      955 Views
      M

      @valerino Looking forward to try this one, and help on everything that I can!

    • obsidianspiderO

      Python Help - Second ILI9341 Display White After Pi Update

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python tft tft screen programming adafruit
      20
      0 Votes
      20 Posts
      6k Views
      obsidianspiderO

      It's working!

      I reapplied the Raphnet kernel patch. The CPU is once again showing as BCM2835, but my screen's output is fixed! It looks like the 20170303 version of the kernel fixed the issue.

      I'm really going to think twice about updating the software on my now working Super Famicom Pi.

    • M

      How to quit SmulationStation and open it again from Python script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support emulationstatio python reboot
      1
      0 Votes
      1 Posts
      702 Views
      No one has replied
    • J

      Custom script for driver change

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python code retropie 4.2
      3
      0 Votes
      3 Posts
      1k Views
      J

      I could narrow the problem down a little bit. When the db9_GPIO_RPI driver is not loaded and i try to unload it, I get:

      "modprobe: FATAL: Module db9_gpio_rpi is not in kernel"

      that makes sense but I tried to avoid that with try/except. Seems it does not work. Any idea why?

    • J

      db9_gpio_rpi driver script

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support driver python db9-gpio-rpi
      3
      0 Votes
      3 Posts
      1k Views
      J

      Ah ok thank you. So basicly i neet to change the command to

      subprocess.call("modprobe --first-time -r db9_gpio_rpi", shell=True)

      and import the subprocess?!

    • RandoCalrisianR

      Pi3 Fan control via temp

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming fan temperature python transistor
      6
      0 Votes
      6 Posts
      2k Views
      RandoCalrisianR

      @flop I'll attempt to wire the pi with a fan and a transistor going to pin 12 (GPIO 18) and I'll report back with findings.

    • O

      Want to use USB Controllers and GPIO-Buttons for Hotkeys.

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python gpio buttons gpio python buttons raspberry pi 3b
      11
      0 Votes
      11 Posts
      6k Views
      O

      @Capt_MorganCreek Hey!
      Thank you very much for the file and the Help!
      I had to change a little bit in the Script and use now uinput from uinput.
      I ran into Problems with Dependencies... basically I haven't read thoroughly enough...
      Everything else in the Script is the same.
      Software works and the Buttons also... but! I have to make a new Plan on the Hardware itself.
      It turned out that the Way I wantet to build the entire Thing does not work. It just does not fit...
      Will have to see when I will have enough Time again to make a new Plan...

      Big Thanks for the Help!

    • S

      Error launching rom via python script/command line

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python script launching rom
      4
      0 Votes
      4 Posts
      3k Views
      S

      Thanks for the help. That did solve it for running it myself but the python script still failed. I get

      /opt/retropie/configs/all/autostart.sh: line 1: 3353 Terminated emulationstation
      tput: unknown terminal "unknown"
      'unknown': I need something more specific.
      Error opening terminal: unknown.
      Traceback (most recent call last):
      File "/opt/retropie/supplementary/runcommand/joy2key.py", line 42, in <module>
      curses.setupterm()
      _curses.error: setupterm: could not find terminal

      Then emulationstation proceeds to launch again.

      In the end I got everything working by going back to RetroPie v4.0.2. I really do not care about having the latest version for this one as it is more of a novelty item than anything since I can launch games with cartridges.

    • S

      Running accessing python .py program/file from within Retropie? Servo Servosix

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support help and suppor retropie 4.0.2 python project coding
      3
      0 Votes
      3 Posts
      2k Views
      simonsterS

      You may be able to launch your python script from the runcommand-onstart script and reset it with the runcommand-onend script.

      See: https://retropie.org.uk/docs/Runcommand/#runcommand-onstart-and-runcommand-onend-scripts

    • C

      Add Option to Execute Bash OR Python scripts onstart and onend

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development runcommand python
      18
      0 Votes
      18 Posts
      4k Views
      C

      @Drakaen391 Yes, I am aware that scripts can launch scripts and do quite often. The idea of a single line bash script just to execute a python script is pretty silly though.

      The matter is closed though. The devs aren't interested in the idea which is their right.

    • obsidianspiderO

      [SOLVED] Detect System While in EmulationStation? -- You Can't

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support emulationstatio bash python retropie
      3
      0 Votes
      3 Posts
      1k Views
      obsidianspiderO

      @BuZz Thanks. It was worth a shot.

      I didn't see anything on Attract-Mode's documentation about it there either. :(

    • obsidianspiderO

      What Pi Info Would You Like To See While Playing?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming system info second screen raspberry pi python
      7
      1 Votes
      7 Posts
      2k Views
      demesauceD

      @obsidianspider bro, that is so cool. Now I gotta try it too.