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

WETEK Configuration for KarateLight

Discussion in 'Hardware Support' started by Gates, 2 January 2017.

  1. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
    Hi,

    I have this product : https://ca.rstenpresser.de/index.php/karate-main.html

    I'm with LibreElec on a Wetek HUB

    Hyperion Addon from LibreElec Repo seems OK.
    But i get no color when I sent a static color from HyperCon
    (and of course no color with playing video or someting else from kodi ^^ )

    My guess is I have the wrong configuration file.
    I try a lot of thing, but without success.

    I already use this Karatelight with another HTPC LibreElec x86, but with boblight.
    the device (KarateLight) in under /dev/ttyACM0
    I can upload my boblight.conf if it can help.

    Thx in advance :)
    best regards
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    586
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I don't think we support it yet.

    Is the protocol documented ?
     
  3. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    724
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
  5. penfold42

    penfold42 Moderator Developer

    Messages:
    586
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  6. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
    I believe i've alreday tried adalight and adalightAPA102 in the Hypercon.
    I will try again tonight to be sure.

    Or maybe you can confirm me if it can't work ATM, cause hyperion doesnt support (yet ?) this adalight/arduino style ?
     
  7. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
  8. penfold42

    penfold42 Moderator Developer

    Messages:
    586
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    It's like adalight but different.

    What are your programming skills like ?
     
  9. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
    I'm a hacker :)
    (not the pirate, but guy who like mod script / code in order to do what he wants )

    I code on python/javascript/xml (kodi skin)
    but C/C++/perl dont scare me :)

    so if you can point me the right direction, i'll take a look.
     
  10. penfold42

    penfold42 Moderator Developer

    Messages:
    586
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Cool - the Atmo led device is closest to what you want
    https://github.com/hyperion-project/hyperion.ng/blob/master/libsrc/leddevice/LedDeviceAtmo.cpp

    Copy it and the .h files to LedDeviceKarate and modify them to suit the different header format

    Use "grep -r' to find references to atmo in other files and duplicate and rename the lines to reference your new file.

    The boblight code can be used as a reference to the differences

    I recommend doing this with Hyperion.ng as we have little interest in new features for the "old" code
     
  11. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
    I'm on LibreElec x64(only) build for wetek hub.
    So I have to use their hyperion addon version.

    If i'm not wrong, they compile your code when installing this addon
    https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/addons/service/hyperion/package.mk

    So I have to clone your hyperion.ng repo
    modify It (with karate setting)
    then mod the hyperion addon in order to change the github url

    Am I right ?
    Is there something more simple ? (cause I think, my first try with LedDeviceKarate.cpp/.h will not the only :) )
     
  12. penfold42

    penfold42 Moderator Developer

    Messages:
    586
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  13. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
    I meant this repo https://github.com/hyperion-project/hyperion.ng
    but i said "your repo" :p
    confusing.

    What I want to know is :
    is-it possible do modify file directly the file on my installation ?
    Or must I compile from my clone-mod-repo ?
     
  14. penfold42

    penfold42 Moderator Developer

    Messages:
    586
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I hated got and GitHub at the start and I got more comfortable with it hacking with Hyperion.

    You don't HAVE to do it this way but you may as well to nakke it easier later.

    1) fork it on GitHub
    2) clone your fork locally
    3) create a branch locally
    4) checkout this new branch
    Repeat until happy{
    5) do your work
    6) commit to your local branch
    }
    7) push to your fork on GitHub
    8) create a pull request to get it merged
     
  15. Gates

    Gates New Member

    Messages:
    14
    Hardware:
    Wetek
    that's the step 4,5 "Repeat until happy" that I want to clarify :)

    can I test, directly on my setup, all my modification without doing a pull request ?
    => moding the .cpp file (and other) => restart the hyperion service => see what happens
     
  16. Brindosch

    Brindosch Administrator Administrator

    Messages:
    637
    Hardware:
    RPi1/Zero, RPi2, RPi3, +nodeMCU/ESP8266
    yes, but you need to compile and replace in between :)
    => moding the .cpp file (and other) => compile hyperion and replace the old hyperiond => restart the hyperion service => see what happens
     
  17. temp

    temp New Member

    Messages:
    1
    Any news?