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

RPi + Other Software Hyperion Effects New and Old

Discussion in 'Software Support' started by 8Anthony4, 31 July 2020 at 19:39.

  1. 8Anthony4

    8Anthony4 New Member

    Messages:
    2
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue
    Hello everyone. I’ve been doing some digging, trying to find some new effects for Hyperion. I’m running a Pi/Arduino setup with a WS2812b light strip. I’ve got it set up with a frame grabber and all mounted on the back of my TV. Everything works great, no issues with the setup. However, in my search for new effects, I’ve found a few from Hyperion that I didn’t have preinstalled. I’ve updated my install and no joy. So I copied the Python script and the JSON config and they show in my list of effects. A few work and a few don’t. One that doesn’t is the clock effect. I can’t seem to get that to work, despite following the instructions for adding Pillow. I’ve also seen an effect called VU Meter and I am very interested in this. It seems that it only works with music from the Pi though, and I don’t want to load a music library onto my Pi. Also had some issues with MPD but ultimately, I’d love to be able to take the audio from the frame grabber and go into the pi with that. This way I can stream music to the TV or watch YouTube music videos and have the VU visualiser rocking with the music.

    Has anyone played around with adding new effects? I’d love to hear what you’ve done or if you have any suggestions on the above, I’m all ears. I’m not sure if this is allowed, but happy for this to be a discussion more than specific help, although help is always appreciated. Apologies if this isn’t allowed or the right place, as my queries relates directly with Hyperion, I thought software was the right place to put it.
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,689
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
  3. 8Anthony4

    8Anthony4 New Member

    Messages:
    2
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue
    Yes, I have seen this. I understand the concept behind creating the effects, however I am still very new to Python. As I’ve said, I tried to copy and paste some seemingly new effects, or at least new from what I had preinstalled in my Hyperion, and some worked and some didn’t. For example one that worked is called Candle, simply flickers and amber colour like a candle effect. However I couldn’t get the clock effect to work, Flags and Collision don’t work for me either.
     
  4. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    Do you have a log output for us from the incorrect start of a Hyperion effect?
     
  5. Anthony

    Anthony New Member

    Messages:
    8
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino
    After going through the log files on the clock effect, it appears that the JSON was looking for clock.py when the Python file was named light-clock.py. This has now been sorted. Seems some tweeks need to be made but, at least the effect is running now and not just rebooting Hyperion. Gotta love a log file. Not much info was given on the collision and flags effect though. I've pasted the log below.

    I am still interested to see what others have done around this or if anyone has developed any custom effects they would like to share. Happy to share the JSON / PY for the below if it helps. These are just for fun though, not that bothered if they work. I am more interested in the VU meter visualiser and getting this to work with the audio source from the TV.

    This is what I get when I run Collision
    Code:
    ssh in:     Aug 01 18:15:06 raspberrypi hyperiond[374]: EFFECTENGINE INFO: run effect Collision on channel 1
    ssh in:     Aug 01 18:15:06 raspberrypi hyperiond[374]: BLACKBORDER INFO: threshold set to 0.7 (179)
    ssh in:     Aug 01 18:15:06 raspberrypi hyperiond[374]: BLACKBORDER INFO: mode:default
    ssh in:     Aug 01 18:15:06 raspberrypi hyperiond[374]: EFFECTENGINE INFO: effect finished
    ssh in:     Aug 01 18:15:06 raspberrypi hyperiond[374]: V4L2GRABBER INFO: started
    ssh in:     Aug 01 18:15:06 raspberrypi hyperiond[374]: EFFECTENGINE INFO: effect finished
    

    And when I run Flags


    Code:
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]: EFFECTENGINE INFO: run effect Flags Germany/Sweden on channel 1
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]: BLACKBORDER INFO: threshold set to 0.7 (179)
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]: BLACKBORDER INFO: mode:default
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]: Traceback (most recent call last):
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]:   File "/usr/share/hyperion/effects/flag.py", line 2, in <module>
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]:     hyperion.imageMinSize(10,10)
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]: AttributeError: 'module' object has no attribute 'imageMinSize'
    ssh in:     Aug 01 18:16:45 raspberrypi hyperiond[374]: EFFECTENGINE INFO: effect finished
    
    This is what I get when running Fire
    Code:
    ssh in:     Aug 01 18:22:23 raspberrypi hyperiond[374]: EFFECTENGINE INFO: run effect Fire on channel 1
    ssh in:     Aug 01 18:22:23 raspberrypi hyperiond[374]: BLACKBORDER INFO: threshold set to 0.7 (179)
    ssh in:     Aug 01 18:22:23 raspberrypi hyperiond[374]: BLACKBORDER INFO: mode:default
    ssh in:     Aug 01 18:22:24 raspberrypi hyperiond[374]: Traceback (most recent call last):
    ssh in:     Aug 01 18:22:24 raspberrypi hyperiond[374]:   File "/usr/share/hyperion/effects/gif.py", line 12, in <module>
    ssh in:     Aug 01 18:22:24 raspberrypi hyperiond[374]:     imageList = [reversed(hyperion.getImage(imageFile))] if reverse else hyperion.getImage(imageFile)
    ssh in:     Aug 01 18:22:24 raspberrypi hyperiond[374]: AttributeError: 'module' object has no attribute 'getImage'
    ssh in:     Aug 01 18:22:24 raspberrypi hyperiond[374]: EFFECTENGINE INFO: effect finished
    ssh in:     Aug 01 18:22:24 raspberrypi hyperiond[374]: V4L2GRABBER INFO: started
    ssh in:     Aug 01 18:22:24 raspberrypi hyperiond[374]: EFFECTENGINE INFO: effect finished
    
     
  6. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    hyperion.ng or hyperion classic?
     
  7. Anthony

    Anthony New Member

    Messages:
    8
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino
    Forgive my ignorance, but how do I find out?
     
  8. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
  9. Anthony

    Anthony New Member

    Messages:
    8
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino
    I've restarted Hyperion and this is what I get on a fresh start.

    Code:
    ssh in:     Aug 01 18:29:19 raspberrypi systemd[1]: Stopping Hyperion Systemd service...
    ssh in:     Aug 01 18:29:19 raspberrypi hyperiond[374]: EFFECTENGINE INFO: Cleaning up Python interpreter
    ssh in:     Aug 01 18:29:19 raspberrypi systemd[1]: hyperion.service: Succeeded.
    ssh in:     Aug 01 18:29:19 raspberrypi systemd[1]: Stopped Hyperion Systemd service.
    ssh in:     Aug 01 18:29:22 raspberrypi systemd[1]: Started Hyperion Systemd service.
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: Hyperion Ambilight Deamon (1681)
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         Version   : V1.03.5 (GitHub-66bef6b/fb413cd-1566231780
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         Build Time: Aug 25 2019 10:39:29
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: HYPERION INFO: ColorTransform 'default' => [0; 197]
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: HYPERION INFO: ColorCorrection 'default' => [0; 197]
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: HYPERION INFO: ColorAdjustment 'default' => [0; 197]
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: LEDDEVICE INFO: configuration:
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: {
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         "colorOrder" : "grb",
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         "delayAfterConnect" : 0,
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         "name" : "MyHyperionConfig",
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         "output" : "/dev/ttyACM0",
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         "rate" : 500000,
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]:         "type" : "adalight"
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: }
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: Opening UART: /dev/ttyACM0
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: INFO: Creating linear smoothing
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=33;settlingTime_ms=50;updateDelay=0
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: EFFECTENGINE INFO: 34 effects loaded from directory /usr/share/hyperion/effects
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: EFFECTENGINE INFO: Initializing Python interpreter
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: INFO: Hyperion started and initialised
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: BLACKBORDER INFO: threshold set to 0.7 (179)
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: BLACKBORDER INFO: mode:default
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: started
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: INFO: Json server created and started on port 19444
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: INFO: Proto server created and started on port 19445
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: V4L2GRABBER INFO: width=720 height=576
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: V4L2GRABBER INFO: pixel format=YUYV
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: BLACKBORDER INFO: threshold set to 0.7 (179)
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: BLACKBORDER INFO: mode:default
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: V4L2GRABBER INFO: started
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: INFO: V4L2 grabber created and started
    ssh in:     Aug 01 18:29:22 raspberrypi hyperiond[1681]: V4L2GRABBER INFO: stopped
    ssh in:     Aug 01 18:29:25 raspberrypi hyperiond[1681]: EFFECTENGINE INFO: effect finished
    
     
  10. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    OK. This is Hyperion (classic) 1.x.
    Hyperion 2.x effects do not run on Hyperion 1.x.
    If you want to use the effects you have to switch to Hyperion.NG
     
  11. Anthony

    Anthony New Member

    Messages:
    8
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino
    I guess that begs the question, can that be done easily upgraded or is it a start from scratch kind of thing?
     
  12. Paulchen-Panther

    Paulchen-Panther Active Member Staff Member Developer

    Messages:
    718
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
  13. Anthony

    Anthony New Member

    Messages:
    8
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino
    Ok, a project for another day I think. Looks good though, I will update for sure.
     
    • Like Like x 1