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

RPi + OSMC Installing Hyperion.ng

Discussion in 'Software Support' started by Braulio, 27 March 2019.

  1. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hello!

    I am trying to install/build the Hyperion.ng on my Raspberry. I am following the instruction from this page:
    https://github.com/hyperion-project/hyperion.ng/blob/master/CompileHowto.md

    But I stucked on this command:
    cmake -DCMAKE_BUILD_TYPE=Release ..

    The error is:
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    BCM_INCLUDE_DIR

    I am very noob about Linux but this is an opportunity to explore more this world.
    Do you guys know what this error is?

    (I also attached the log files here)

    Thank you
     

    Attached Files:

  2. Akriss

    Akriss Active Member

    Messages:
    491
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I haven't built a osmc pi in a wile. So not %100 sure this is still valid.
    Replace the bit in the howto:
    "
    on RPI you need the videocore IV headers
    sudo apt-get install libraspberrypi-dev
    "
    With:
    sudo apt-get install rbp-userland-dev-osmc

    Hope it helps.
     
  3. bnealon

    bnealon New Member

    Messages:
    13
    Hardware:
    +PhilipsHue
    having recently compiled hyperion.ng myself as a first-timer, my best advice would be to use the docker container method, as this has all of the necessary environment setup you require, including all dependencies.

    Install docker-ci using the instructions from their website and go from there. I didn't compile on the Pi however, i used a VM with Ubuntu 16.04 and cross compiled for Pi. Afterwards, i just FTP'd onto the Pi and copied the .deb file and then installed using apt-get :)
     
  4. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hey Akriss!
    That worked! Thanks! However, now when I execute the command make -j $(nproc) my raspberry crash/freeze :/ I tried again but it happen again. Any tips?
    I attached the screenshot where it crash/freeze.
     

    Attached Files:

  5. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hello Bnealon!
    Good to know! I will try if the current method not work. Thanks!
     
    • Like Like x 1
  6. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Forget! I run again all and it installed!!!!!!

    But now I have no idea how to run it. On the HowTo they say to run hyperiond, but it says that the configuration file is missing... I believe is that configuration file that we create, but where do I place it?
    Also, I tried to open the webui using port 8091 or 8090, but nothing open.
     
  7. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    I found the directory to place the config file, but now when I run hyperiond, it says:

    "Unexpected reply signature: got \"\", expected \"a{sv}\""

    Any tips?
     
  8. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Forget again! Now I understood, when run hyperiond I am able to open the Web Interface
    But now, it's strange, all that I do on web interface nothing happen after save, for example, If I change the boot effect or disable, it nothing happen when I boot again, It seems like the first standard installation runs and not the hyperion.ng
    Does anyone knows what to do?

    The main target for me is to run the and effect after boot
     
  9. b1rdhous3

    b1rdhous3 Member Developer

    Messages:
    81
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +PhilipsHue
    How exactly did you start hyperiond?
    You should find your binary in your source folder then /build/bin/hyperiond. Can you please run it directly there? Maybe with --debug?
    Normally you should run the right version if you can open the webinterface. Where did the config get created? On default you should now have a config at ~/.hyperion/

    Also maybe your old hyperion version is running with the old service. Can you check that? Maybe disable the service for now.

    Timezones are a pitty dude. You posted in the middle of the night here in europe. But thanks to the internet we can communicate around the world :)
     
  10. bnealon

    bnealon New Member

    Messages:
    13
    Hardware:
    +PhilipsHue
    @b1rdhous3 this might sound really stupid, but where are the logs for hyperion and hyperion.ng on raspbian stretch? I'm trying to tail the logs for another issue, the wiki just talks about using hypercon, but i cant use that for hyperion.ng
    Cheers
     
    • Like Like x 1
  11. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hey B1rdhous3!

    Haha! It's a pitty, but not a problem, I just can deal with my raspberry at evening next day here :)

    I started hyperiond first from this folder but then I realised I could call it anywhere.
    As I haven't uninstalled the classic Hyperion, I see that by default it boots the classical hyperion service (as you said). If I don't stop the classic and run the hyperiond, my LEDs get crazy.
    So I believe I have to disable the classical hyperion service and enable the new hyperiond but I don't know how to do it (I am noob on Linux :oops:)

    Thanks man!
     
  12. b1rdhous3

    b1rdhous3 Member Developer

    Messages:
    81
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +PhilipsHue
    Haha good point. I don't even exactly know because I don't needed it for now. I think it is not logges to filesystem. It is available in the WebUI. You should be able to see it there. Maybe @Paulchen-Panther can help here and give more details.
     
  13. b1rdhous3

    b1rdhous3 Member Developer

    Messages:
    81
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +PhilipsHue
    Hmm, I don't know if you can directly run hyperiond from everywhere. I think it is still connected to your old service. It depends on how far you did the compile instructions. So for now please try to stop the old service and run hyperiond from the build/bin directory.
    Can you please post the config you should now find in ~/.hyperion ?
    Also you should be able to access the webui then.
     
  14. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hello b1rdhous3!

    For sure, I can run hyperiond from everywhere (And when I run I am able to open the WebUI but the terminal keep it running in first plan), I guess it's now on the global system variables.
    But when the OSMC boots, it is calling the old service. I found some instructions on internet how to deal with Services on Linux and I will try to stop definitively the old service, but I still need to know how to set the new service for hyperiond and boot it.

    I follow the install instructions from CompileHowTo. The last part "Integrating hyperion into your system" there is nothing written yet, maybe this part teachs how to up the service...

    When I get home, I will get the config and post here :)

    Thanks
     
  15. b1rdhous3

    b1rdhous3 Member Developer

    Messages:
    81
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +PhilipsHue
    We will deal with enabling hyperion.ng with a service on boot after everything else is set up. Okay? :)
     
    • Agree Agree x 1
  16. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hey b1rdhous,

    Here is the config file.

    The HyperionD is working fine, just now need to start automatically when the system is up and deactivate the classical hyperion..
     

    Attached Files:

  17. b1rdhous3

    b1rdhous3 Member Developer

    Messages:
    81
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +PhilipsHue
    Ok Fine. So hyperion is working correctly?

    Where is the hyperiond now located? I assume it is located in /usr/local/Share/hyperion/bin Right?

    I can Provide you My service file of you Want. Will take some time because I am at work and it is 10 am here ;)
     
  18. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hello!
    Yes, it's working fine but it's not starting automatically when boot, just starting the classical Hyperion when boot.

    I'm not sure where it is located but I will take a look after I get back home :)

    If you don't mind! Would be great, I just need instructions where to put this service :) Take your time, don't be hurry :) I on my way to work and I'll be back home later hours

    Thanks a lot
     
  19. bnealon

    bnealon New Member

    Messages:
    13
    Hardware:
    +PhilipsHue
    @Braulio when i compiled mine, one of the artifacts in the /deploy directory was a .deb, which is a debian RPM, installing this will do everything you need. It deploys the code in the correct directories, along with adding the correct services you require. I would highly recommend, unless you need to manually compile the code - installing docker and running the command in the compile instructions, its super simple and 'just works'. :)
     
  20. Braulio

    Braulio Member

    Messages:
    31
    Hardware:
    RPi3
    Hello @bnealon!

    Good to know! I will take a look when I get home!
    BTW, how do I execute this .deb? (I am noob on Linux)