Support for Philips Hue System (2 Viewers)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,950
    5,620
    France - IDF
    Home Country
    France France
    can't be supported by Atmolight, because Atmolight can only control Atmowin.

    a new plugin should be an good solution, like xmbc plugin ...
    but the issue is : find a dev ... or plugins dev
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Might work by reading the current colors from Atmowin but problem would be what color to use on the Hue lamp/strip, believe we had some code in Atmowin for summary zone which used the most present color displayed so that would make it easier.
    Hue protocol is nice and open so might be willing to start implementing it but we need some idea on how it will be used as in standalone and how it would compliment the current Mediaportal solution (new plugin or integrate into Atmolight).
    Found an complete C# API interface for it that supports all the Hue devices so that would save a lot of time:

    https://github.com/Q42/Q42.HueApi
     
    Last edited:

    zekaja

    MP Donator
  • Premium Supporter
  • March 24, 2010
    279
    110
    Copenhagen
    Home Country
    Denmark Denmark
    Might work by reading the current colors from Atmowin but problem would be what color to use on the Hue lamp/strip, believe we had some code in Atmowin for summary zone which used the most present color displayed so that would make it easier.
    Hue protocol is nice and open so might be willing to start implementing it but we need some idea on how it will be used as in standalone and how it would compliment the current Mediaportal solution (new plugin or integrate into Atmolight).
    Found an complete C# API interface for it that supports all the Hue devices so that would save a lot of time:

    https://github.com/Q42/Q42.HueApi
    Nice.. It would be awesome
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Made a small test project and was able to retrieve the average rgb values via the dummy protocol with Atomwin, came up with a few possible setups:

    Option 1 - send Atmowin average color to external Hue web service

    - Atmowin retrieves average color using "sumZone" information
    - Atmowin sends HTTP command to external Hue program
    - External Hue program than sends RGB information to all lights which you have setup there

    Option 2 - Write current average color file and stream it with external Hue program

    - Atmowin retrieves average color using "sumZone" information
    - External Hue program opens continues file stream and parses information back to lights with set interval to avoid flickering and rapid color changes.

    Option 3 - External Hue program polls Atmowin for average RGB information

    - Not enough C++ experience to archieve this but might be possible in the future.

    Option 1 is my preferred solution as its more robust and with that you would also be able to make your own web calls to change colors of the lights for future applications (Atmolight for instance).
    Next up is making the sumzone independent of the procotol which is needed anyways, have some free time next week as well so should make some progress :)
    There's also the small problem of not having any Hue devices so would need testers once I add the Hue code parts.
     
    Last edited:

    boldie

    Portal Member
    September 30, 2007
    40
    10
    Rick164-
    Thanks a lot for your work to support Hue
    Let me know if you have something for test. I have around 9 Hue lamps working
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Good to hear :) , adjusted the miniDMX protocol for testing which would mean it now works with SEDU.
    One thing I noticed is the way it detects the average color is a bit off so for better results there's gonna be some gamma corrections and hopefuly every Hue lamp has about the same color correctness as otherwise things are gonna look weird :p

    Will start working on the Hue part tomorrow but that might be some trial and error at first.
     

    Users who are viewing this thread

    Top Bottom