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

SOLVED hyperion-remote arguments

Discussion in 'Software Support' started by metin, 29 September 2016.

  1. metin

    metin New Member

    Messages:
    6
    Hardware:
    RPi2, RPi3
    Hello,
    some effects have arguments which I tried to set via hyperion-remote without any success. What would be the correct command line to start the Knight rider effect in green for example? This is the original json file:
    Code:
    {
        "name" : "Knight rider",
        "script" : "knight-rider.py",
        "args" :
        {
            "speed" : 1.0,
            "fadeFactor" : 0.7,
            "color" : [255,0,0]
        }
    }
    I'm looking for a command like this:
    Code:
    hyperion-remote --effect 'Knight rider' "color":[0,255,0]
    But it's not working. Please help.
     
  2. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    hyperion-remote --effect 'name' --effectArgs '{ the whole args block without newlines and with your mofifications. }'

    E.g.
    --effectArgs '{ "speed" : 1.0, "fadeFactor" : 0.7, "color" : [0,255,0] }'
     
    • Thank you Thank you x 1
  3. metin

    metin New Member

    Messages:
    6
    Hardware:
    RPi2, RPi3
    Thank you, it's working perfectly. I will add it to the wiki.
     
  4. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    ... as addition, the args string must be in valid json form. If you get errors you can validate your string with a online json validator
     
    • Like Like x 1
    • Informative Informative x 1