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

Add an custom effect to Hyperion remote

Discussion in 'Hyperion General' started by bohorne, 6 April 2017.

  1. bohorne

    bohorne New Member

    Messages:
    7
    Hardware:
    RPi2, 32/64bit, +PhilipsHue
    Hello,
    I created a custom made json file, i.e. hyperion.json, and would like to have this effect into my effects tab of the Hyperion app on my iPhone. I need a kind of .py-file to do so; who can help me out on this?
     
  2. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    can you post your json file?
     
  3. bohorne

    bohorne New Member

    Messages:
    7
    Hardware:
    RPi2, 32/64bit, +PhilipsHue
    Hello,
    thanks for the quick response. In attachment my Hyperion file.
     

    Attached Files:

  4. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    There is a misunderstanding. I mean the effect json file you created, not your hyperion config.

    You have to place your custom made json effect file into "/storage/hyperion/effects" or "/usr/share/hyperion/effects". If you want to put it elsewhere, then you have to add your path to "effects" in hyperion config
     
  5. bohorne

    bohorne New Member

    Messages:
    7
    Hardware:
    RPi2, 32/64bit, +PhilipsHue
    I'm a little confused now. I have placed this file into "/storage/hyperion/effects" on my RasPi 2, and I can see it appear into my Hyperion app on my IPhone, only the text in my selection box for this effect is empty. But the effect can be selected, I only want a "name" for it in the selection list on my IPhone.
     
  6. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    Therefore I have to see your effect json file, to determine whats wrang
     
  7. bohorne

    bohorne New Member

    Messages:
    7
    Hardware:
    RPi2, 32/64bit, +PhilipsHue
    I have placed the attached file into "/storage/hyperion/effects" on my RasPi 2, and renamed it "hyperion.json" and that's it. No other files available or made.
    I hope you can help me out on this one.
     
  8. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    the attached file is a hyperion config not a effect json. Look into your effects folder.

    a effects file look like that:
    Code:
    {
       "name" : "Knight rider",
       "script" : "knight-rider.py",
       "args" :
       {
         "speed" : 1.0,
         "fadeFactor" : 0.7,
         "color" : [255,0,0]
       }
    }
    

    this is from the knight rider.json
     
  9. bohorne

    bohorne New Member

    Messages:
    7
    Hardware:
    RPi2, 32/64bit, +PhilipsHue
    Hello,

    I have no effect file for this hyperion config file, and have no idea how to make this.
     
  10. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    Then i have absolutly no clue what you want. From your initial posting I thought you want to customize an existing effect, but with your given answers this asdumtion make no sense ....
     
  11. bohorne

    bohorne New Member

    Messages:
    7
    Hardware:
    RPi2, 32/64bit, +PhilipsHue
    Sorry for the misunderstanding. I don't want to customize an existing effect, I want a new effect.

    What I have done is the following: I bought an Ambilight HD kit (with RasPi 2 and videograbber) and installed it on my LED TV. I used Hyperion to create the Hyperion config file, which gives the correct instruction set (i.e. file Hyperion.config.json) to Hyperion on my RasPi to act as an Ambilight on the TV. This is running well.

    I also installed the Hyperion app on my IPhone. I make contact with openelec server on RasPi so I can use the build-in effects (but no ambilight effect) in Hyperion on the same leds of my TV. Now I was thinking; how can I include the ambilight effect in the list of available effects on my IPhone app to turn it on and off. So I copied the Hyperion.config.json -file into the same directory as the other effects on my RasPi and renamed it into Hyperion.json. After a restart and reconnection of my IPhone with the openelec server on my RasPi, this Hyperion effect is available in the overview list on my IPhone app, but the name is blanked. I was just wandering how can I get a name for this new effect in my Hyperion overview effects on my IPhone (see attachment)?
     

    Attached Files:

  12. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    Ambilight is no effect. The hyperion config file is for hyperiond.