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

RPi + OSMC Hyperiond won't start without adding the path to config

Discussion in 'Software Support' started by WarsawDay, 2 February 2017.

  1. WarsawDay

    WarsawDay New Member

    Messages:
    5
    Hardware:
    RPi2
    Hi,

    Logs:

    Json:

    Problem: Hyperiond will start and work perfectly if manually started, with path to config as parameter, eg:

    Code:
    [email protected]:/etc/hyperion# hyperiond /etc/hyperion.config.json
    Hyperion Ambilight Deamon (1072)
      Version  : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
      Build Time: Jul 25 2016 06:54:40
    INFO: Selected configuration file: /etc/hyperion.config.json
    HYPERION INFO: ColorTransform 'default' => [0; 95]
    LEDDEVICE INFO: configuration:
    {
      "colorOrder" : "rgb",
      "name" : "MyPi",
      "output" : "/dev/spidev0.0",
      "rate" : 250000,
      "type" : "ws2801"
    }
    
    HYPERION INFO: Not creating any smoothing
    EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    EFFECTENGINE INFO: Initializing Python interpreter
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    BLACKBORDER INFO: threshold set to 0.01 (3)
    BLACKBORDER INFO: mode:default
    started
    INFO: Kodi checker created and started
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
    BLACKBORDER INFO: threshold set to 0.01 (3)
    BLACKBORDER INFO: mode:default
    INFO: Frame grabber created and started
    KODICHECK INFO: Kodi Connected
    KODICHECK INFO: switching to VIDEO mode
    BORDER SWITCH REQUIRED!!
    CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    EFFECTENGINE INFO: effect finished
    
    
    But if run only hyperion:

    Code:
    [email protected]:/etc/hyperion# hyperiond
    Hyperion Ambilight Deamon (1086)
      Version  : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
      Build Time: Jul 25 2016 06:54:40
    ERROR: Missing required configuration file. Usage:
    hyperiond <options ...> [config.file ...]
    
    
    The json file is all over the place, I even read the sources and created strange dirs and copied json there, nothing helps :)
    All I want is to have hyperiond start when I start osmc, not when I ssh to it :)

    Please let me know how to achieve it?
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,330
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    and where did you place the config?
     
  3. WarsawDay

    WarsawDay New Member

    Messages:
    5
    Hardware:
    RPi2
    Code:
    [email protected]:/home/osmc# find / | grep hyperion.config.json
    
    /home/osmc/hyperion.config.json.40
    /etc/hyperion.config.json
    /etc/hyperion/hyperion.config.json
    /usr/share/hyperion/config/hyperion.config.json.save
    /usr/share/hyperion/config/hyperion.config.json
    /usr/share/hyperion/config/hyperion.config.json.example
    /usr/share/hyperion/config/hyperion.config.json.save.1
    /storage/.config/hyperion.config.json
    
    Fun fact - I just turned tv/rpi/osmc on and the hyperion just initiated properly! Still, if I type "hyperiond" via ssh, it will complain it can't find the config file.
     
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,330
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    if you only type "hyperiond" than its normal...you have to write the config file after that (with path)

    "hyperiond /usr/share/hyperion/config/hyperion.config.json"
     
  5. WarsawDay

    WarsawDay New Member

    Messages:
    5
    Hardware:
    RPi2
    Thanks for the info, of course the hyperiond will work if I provide the path to the config. Perhaps the message displayed by hyperiond could be more precise. Current wording misleads me to believe that the config is missing, while the path (as a parameter) is missing, not the config.

    Many thanks!
     
  6. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,330
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    ERROR: Missing required configuration file. Usage:
    hyperiond <options ...> [config.file ...]


    should be enough?
     
  7. WarsawDay

    WarsawDay New Member

    Messages:
    5
    Hardware:
    RPi2
    Dude, I ve'seen that and that is what I'm referring to. The config is not missing, the path is missing. Better would be:

    - [config.file ...] parameter is missing
    - Patch to the config file is missing, please provide [config.file ...] parameter

    Etc.

    BTW do you know which location of the config file is the default for osmc ?

    Cheers
     
  8. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,330
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    ok, got it.

    should be
    /usr/share/hyperion/config/hyperion.config.json but i'm not 100% sure
     
  9. WarsawDay

    WarsawDay New Member

    Messages:
    5
    Hardware:
    RPi2
    That's where the example file was, so this may be correct. Thanks!