1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + LibreELEC [HowTo] Install Hyperion.ng on LibreELEC x86_64/RPi (inoffiziell/unofficially)

Discussion in 'Software Support' started by Paulchen-Panther, 19 March 2020.

  1. eMd

    eMd New Member

    Messages:
    25
    K, hab ich neu installiert, nun kommt folgendes...

    Code:
    LibreELEC (official): 9.2.3 (RPi4.arm)
    LibreELEC:~ # wget -qO- https://git.io/JJRUv | bash -s 2.0.0-alpha.6
    *******************************************************************************
    This script will install Hyperion.NG on LibreELEC
    Created by brindosch and modified by Paulchen-Panther - hyperion-project.org - the official Hyperion source.
    *******************************************************************************
    ---> Downloading latest release: https://github.com/hyperion-project/hyperion.ng/releases/download/2.0.0-alpha.6/Hyperion-2.0.0-alpha.6-Linux-armv7l.tar.gz
    curl: (60) SSL certificate problem: certificate is not yet valid
    More details here: https://curl.haxx.se/docs/sslcerts.html
    
    curl failed to verify the legitimacy of the server and therefore could not
    establish a secure connection to it. To learn more about this situation and
    how to fix it, please visit the web page mentioned above.
    
    tar: invalid magic
    tar: short read
    tar: share/hyperion: not found in archive
    chmod: /storage/hyperion/bin: No such file or directory
    ---> Installing systemd script
    *******************************************************************************
    Hyperion.NG installation finished!
    *******************************************************************************
    Das wundert mich nun, ich glaub ich Flash morgen die sd nochmal komplett neu, so einen Fehler hatte ich ja noch nie
     
  2. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    824
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Du kannst auch optional mal folgendes versuchen nachdem du den PR Download abgeschlossen hast:
    Code:
    systemctl stop hyperion.service
    rm -R hyperion
    mv hyperion_pr917 hyperion
    systemctl start hyperion.service
     
  3. eMd

    eMd New Member

    Messages:
    25
    Ok, keine Ahnung was da zerschossen hat, aber mit etcher Image neu aufspielen funktioniert bei der aktuellen stable von libreelec. Nun läuft auch alles wieder, nächste mal mach ich das gleich so, dann nerv ich hier nicht so

    Ps: die aktuelle devel Version für den rpi habe ich auch probiert, die lief, aber es ließ sich nicht hyperion installieren mit kodi19...
     
    • Like Like x 1
  4. howi43

    howi43 New Member

    Messages:
    16
    Hardware:
    RPi2, RPi3
    So sieht es bei mir aus :
    Installation ging prima, funktionierte aber nicht hinterher.
    Das hier sehe ich :

    Code:
    Aug 03 22:19:42 LibreELEC hyperiond[4319]: /storage/hyperion/bin/hyperiond: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
    Aug 03 22:19:42 LibreELEC systemd[1]: hyperion.service: Main process exited, code=exited, status=127/n/a
    Aug 03 22:19:42 LibreELEC systemd[1]: hyperion.service: Failed with result 'exit-code'.
    Aug 03 22:19:53 LibreELEC systemd[1]: hyperion.service: Service RestartSec=10s expired, scheduling restart.
    Das passiert bei Version 7, 6 scheint zu gehen.
     
    Last edited: 3 August 2020
  5. eMd

    eMd New Member

    Messages:
    25
    MfG
    eMd
     
    • Like Like x 1
  6. howi43

    howi43 New Member

    Messages:
    16
    Hardware:
    RPi2, RPi3
    Danke.
    Muss ich nochmal probieren.
    6 war auch nicht die Loesung - Video faengt an zu stottern.
    Das verschwindet, sobald man Hyperion wieder loescht.

    Habe dann das fertige Image probiert, Hyperbian.
    Geht besser, aber ich kriege den Android Grabber nicht zu sehen.

    Muss noch testen.
     
  7. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    HI

    I have a Raspberry Pi Zero W running the following system:
    Kodi 18.7.1 (Linux Kernel 4.19.x)
    LibreELEC-RPi.arm-9.2.3.img.gz

    With Hyperion NG 2.0.0.alpha.6 everything is working fine, no issues. I tried to setup Alpha.7 but Platform Capture is not working.
    I can start effects, so it recognizes the leds just fine.

    #### Steps to reproduce
    DD the above img to the sd, ssh in then i run the following sh script to install hyperion.ng :

    Code:
    #!/bin/sh
    # Script for downloading and installing the latest Hyperion.NG release on LibreElec
    
    #Set welcome message
    echo '*******************************************************************************'
    echo 'This script will install Hyperion.NG on LibreELEC'
    echo 'Created by brindosch and modified by Paulchen-Panther - hyperion-project.org - the official Hyperion source.'
    echo '*******************************************************************************'
    
    # Find out if we are on LibreELEC
    OS_LIBREELEC=`grep -m1 -c LibreELEC /etc/issue`
    # Check that
    if [ $OS_LIBREELEC -ne 1 ]; then
        echo '---> Critical Error: We are not on LibreELEC -> abort'
        exit 1
    fi
    
    # Find out if we are on an Raspberry Pi
    CPU_RPI=`grep -m1 -c 'BCM2708\|BCM2709\|BCM2710\|BCM2835\|BCM2836\|BCM2837\|BCM2711' /proc/cpuinfo`
    # Check that
    if [ $CPU_RPI -ne 1 ]; then
        echo '---> Critical Error: We are not on an Raspberry Pi -> abort'
        exit 1
    fi
    
    #Check which RPi we are one (in case)
    RPI_1=`grep -m1 -c 'BCM2708\|BCM2835' /proc/cpuinfo`
    RPI_2_3_4=`grep -m1 -c 'BCM2709\|BCM2710\|BCM2836\|BCM2837\|BCM2711' /proc/cpuinfo`
    
    # check which init script we should use
    USE_SYSTEMD=`grep -m1 -c systemd /proc/1/comm`
    
    # Make sure that the boblight daemon is no longer running
    BOBLIGHT_PROCNR=$(pidof boblightd | wc -l)
    if [ $BOBLIGHT_PROCNR -eq 1 ]; then
        echo '---> Critical Error: Found running instance of boblight. Please stop boblight via Kodi menu before installing Hyperion.NG -> abort'
        exit 1
    fi
    
    #Check, if dtparam=spi=on is in place
    SPIOK=`grep '^\dtparam=spi=on' /flash/config.txt | wc -l`
    if [ $SPIOK -ne 1 ]; then
        mount -o remount,rw /flash
        echo '---> RPi with LibreELEC found, but SPI is not set, we write "dtparam=spi=on" to /flash/config.txt'
        sed -i '$a dtparam=spi=on' /flash/config.txt
        mount -o remount,ro /flash
        REBOOTMESSAGE="echo Please reboot LibreELEC, we inserted dtparam=spi=on to /flash/config.txt"
    fi
    
    # Select the appropriate download path
    #HYPERION_DOWNLOAD_URL="https://github.com/hyperion-project/hyperion.ng/releases/tag"
    #HYPERION_RELEASES_URL="https://api.github.com/repos/hyperion-project/hyperion.ng/releases"
    
    # Get the latest version
    #HYPERION_LATEST_VERSION=$(curl -sL "$HYPERION_RELEASES_URL" | grep "tag_name" | head -1 | cut -d '"' -f 4)
    
    # Select the appropriate release
    #if [ $RPI_1 -eq 1 ]; then
    #    HYPERION_RELEASE=$HYPERION_DOWNLOAD_URL/$HYPERION_LATEST_VERSION/Hyperion-$HYPERION_LATEST_VERSION-Linux-armv6l.tar.gz
    #
    #elif [ $RPI_2_3_4 -eq 1 ]; then
    #    HYPERION_RELEASE=$HYPERION_DOWNLOAD_URL/$HYPERION_LATEST_VERSION/Hyperion-$HYPERION_LATEST_VERSION-Linux-armv7hf-rpi.tar.gz
    #else
    #    echo "---> Critical Error: Target platform unknown -> abort"
    #    exit 1
    #fi
    
    # Get and extract Hyperion.NG
    echo '---> Downloading latest release'
    curl -# -L --get https://github.com/hyperion-project/hyperion.ng/releases/download/2.0.0-alpha.6/Hyperion-2.0.0-alpha.6-Linux-armv6l.tar.gz | tar --strip-components=1 -C /storage share/hyperion -xz
    
    # Alpha.7
    # curl -# -L --get https://github.com/hyperion-project/hyperion.ng/releases/download/2.0.0-alpha.7/Hyperion-2.0.0-alpha.7-Linux-armv6l.tar.gz | tar --strip-components=1 -C /storage share/hyperion -xz
    
    #set the executen bit (failsave)
    chmod +x -R /storage/hyperion/bin
    
    # Create the service control configuration
    echo '---> Installing systemd script'
    SERVICE_CONTENT="[Unit]
    Description=Hyperion ambient light systemd service
    After=network.target
    
    [Service]
    ExecStart=/storage/hyperion/bin/hyperiond --userdata /storage/hyperion/
    TimeoutStopSec=2
    Restart=always
    RestartSec=10
    
    [Install]
    WantedBy=default.target"
    
    # Place startup script for systemd and activate
    echo "$SERVICE_CONTENT" > /storage/.config/system.d/hyperion.service
    systemctl -q enable hyperion.service --now
    
    echo '*******************************************************************************'
    echo 'Hyperion.NG installation finished!'
    $REBOOTMESSAGE
    echo '*******************************************************************************'
    
    exit 0
    

    run this modified script (not working parts are commented out)
    and alpha6 is OK.

    i made a new sdcard with the same libreelec img, and run the script for alpha.7 (you can see, its commented out, so switch to that)

    but after this a few libraries are missing such as :

    zlib*
    libx11-6
    ia32-libs
    libusb-1.0-0

    and on libreelec these cant be installed with apt install....

    since alpha.6 works, its very strange that alpha.7 doesnt.

    #### What is expected?

    alpha.7 is expected to work as alpha.6
    #### What is actually happening?

    alpha.7 is not working (Platform Capture)
    #### System

    2.00.0-alpha.7
     
  8. NeeeeB

    NeeeeB Member

    Messages:
    117
    Hardware:
    RPi3
  9. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
  10. r100gs

    r100gs New Member

    Messages:
    2
    Hardware:
    RPi3, +nodeMCU/ESP8266
    Hello,

    I get the same error. Hyperion alpha.7 doenst start.
    alpha.6 was fine till now.

    Best regards,
    Stefan
     
  11. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    Im alsol back to alpha6. couldnt make it work on alpha7
     
  12. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    Hi again
    i have a problem again, this time wiht RPi3 Libreelec 923 hyperion alpha 6 and 7 (sam on Libreelek 924 hyperion aplpha 6 and 7)

    My probem is that, when platformcapture is turned on, and i play any video in Kodi WITH subtitle ON, the picture gets glitchy/jittery.

    Also when OSD is on the video while its playing.

    meanwhile, leds are in sync, and ok.

    When i turn off platformcapture. video is ok even with subtitle on , osd on.

    on rpi0 libreelec 923 hyperion alpha6 i had no issue at all


    any idea, suggestion ?

    thx
     
    Last edited: 16 August 2020
  13. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    824
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  14. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    thx
    seems like Blackbar detectiotn set to CLASSIC solves it, not sure though bc here and there randomly there are some glitches, not that often,, (i think i had a GND issue with my wire too...)

    Nope this did not solve it. solution is below. 4.3 comments....


    also, alpha7 stil not ok, platformcapture doesnt work.
    leds are ok, effects are ok, just platform capture not ok... even after
    rm /storage/hyperion/lib/libcec*
    rm /storage/hyperion/lib/libz*


    so i have to stick wiith

    wget -qO- https://git.io/JJRUv | bash -s 2.0.0-alpha.6

    for now.
     
    Last edited: 18 August 2020
    • Like Like x 1
  15. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    Last edited: 16 August 2020
  16. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    only solutuion is to turn off Subtitle and avoid to use OSD :/
    i dont geti it, since on my rpi zero it works jst fine, but i have this issue on my rpi3
     
    Last edited: 16 August 2020
  17. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    @Paulchen-Panther

    could it be releted to the frequency of my tv (set to 60hz) and the freq of the video?

    bc if i set in kodi under
    settings/payer/videos/Adjust refresh rate
    and select Always or on start/stop

    it works ok. no glithc no nothing even wiht subttles on or OSD on....

    maybe it is something to worth investigate?

    what do you think?
     
  18. Zoltán Varga

    Zoltán Varga Member

    Messages:
    37
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +nodeMCU/ESP8266
    also i realized if i just set under Smoothing the
    Update frequency to 60 hz (as my tv is set to 60 also kodi is set to 60)
    then i don need to set kodi to this

    "settings/payer/videos/Adjust refresh rate
    and select Always or on start/stop"
     
  19. Rene Zuch

    Rene Zuch New Member

    Messages:
    24
    Hardware:
    RPi3, +PhilipsHue
    I had Hyperion Alpha 7 up and running in LibreElec with USB grabber but now I had to enable platform recording and it was crashing and not starting anymore. I cannot access the webinterface anymore. So I need to manually change or delete the hyperion config.

    The problem is that I´m searching the internet for the location of the file for hours and do not find it. On Github is written: // location of all configs: /etc/hyperion

    But in /etc there is no hyperion folder.

    Please help. My daughters sleepover party is today and I wanted to have a nice Ambilight.

    Thx René
     
  20. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    824
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    The configuration database is located under: /storage/hyperion/db/
    Simply execute these 3 commands and Hyperion is in the default state:

    Code:
    systemctl stop hyperion.service
    rm /storage/hyperion/db/*
    systemctl start hyperion.service