Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    GPIO OnOffShim and RPi3

    Emulator Arcade/PC/Console
    gpio onoffshim rpi3
    2
    2
    1105
    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.
    • stigzler
      stigzler last edited by Substring

      Hi folks. I'm trying to get this to work on a RPi3 + Recalbox:

      https://shop.pimoroni.com/collections/raspberry-pi/products/onoff-shim

      It says I have to download a custom script via:

      curl https://get.pimoroni.com/onoffshim | bash

      but when I try this (via ssh), I get errors. Any advice on how I could achieve this?

      the error (sorry about the formatting, but seems to have taken a mind of its own):

      login as: root
      root@Tomodore74's password:
      # curl https://get.pimoroni.com/onoffshim | bash
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100 38496  100 38496    0     0   209k      0 --:--:-- --:--:-- --:--:--  262k
      
      This script will install everything needed to use
      On/Off SHIM
      main: line 136: tput: command not found
      main: line 136: tput: command not found
      
      Always be careful when running scripts and commands copied
      main: line 136: tput: command not found
      main: line 136: tput: command not found
      from the internet. Ensure they are from a trusted source.
      
      If you want to see what this script does before running it,
      you should run: 'curl https://get.pimoroni.com/onoffshim'
      
      stat: invalid option -- 'f'
      BusyBox v1.26.2 (2017-06-04 09:08:00 CEST) multi-call binary.
      
      Usage: stat [OPTIONS] FILE...
      
      Display file status
      
              -L      Follow links
              -t      Terse display
      main: line 280: /10**6: syntax error: operand expected (error token is "/10**6")
      main: line 140: tput: command not found
      main: line 140: tput: command not found
      Running as root, please log in as a regular user with sudo rights!
      
      # # curl https://get.pimoroni.com/onoffshim | bash
      #   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
      -sh: fg: %: no such job
      #                                  Dload  Upload   Total   Spent    Left  Speed
      -sh: Dload: command not found
      # 100 38496  100 38496    0     0   209k      0 --:--:-- --:--:-- --:--:--  262k
      -sh: 100: command not found
      #
      # This script will install everything needed to use
      -sh: This: command not found
      # On/Off SHIM
      -sh: On/Off: No such file or directory
      # main: line 136: tput: command not found
      -sh: main:: command not found
      # main: line 136: tput: command not found
      -sh: main:: command not found
      #
      # Always be careful when running scripts and commands copied
      -sh: Always: command not found
      # main: line 136: tput: command not found
      -sh: main:: command not found
      # main: line 136: tput: command not found
      -sh: main:: command not found
      # from the internet. Ensure they are from a trusted source.
      -sh: from: command not found
      #
      # If you want to see what this script does before running it,
      -sh: If: command not found
      # you should run: 'curl https://get.pimoroni.com/onoffshim'
      -sh: you: command not found
      #
      # stat: invalid option -- 'f'
      -sh: stat:: command not found
      # BusyBox v1.26.2 (2017-06-04 09:08:00 CEST) multi-call binary.
      -sh: syntax error near unexpected token `('
      #
      # Usage: stat [OPTIONS] FILE...
      -sh: Usage:: command not found
      #
      # Display file status
      -sh: Display: command not found
      #
      #         -L      Follow links
      -sh: -L: command not found
      #         -t      Terse display
      -sh: -t: command not found
      # main: line 280: /10**6: syntax error: operand expected (error token is "/10**6")
      -sh: syntax error near unexpected token `('
      # main: line 140: tput: command not found
      -sh: main:: command not found
      # main: line 140: tput: command not found
      -sh: main:: command not found
      # Running as root, please log in as a regular user with sudo rights!
      -sh: Running: command not found
      #
      # #
      #
      
      1 Reply Last reply Reply Quote 0
      • Substring
        Substring last edited by

        Hi,

        I haven't read the script, but obviously it's using commands that don't work on recalbox (i know that tput is not available on recalbox for example). As recalbox uses a minimalistic set of linux commands (called busybox) like an embedded system, some command options are not available.

        Anyway you don't beed that device, we have some.power scripts that do the same

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

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

        Want to support us ?

        91
        Online

        98.7k
        Users

        28.1k
        Topics

        187.0k
        Posts

        Copyright © 2021 recalbox.com