AtmoHue - BETA - Philips Hue support for AtmoLight & AtmoWin (2 Viewers)

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Thanks, definitely something weird going on during the XY calculations so we know where its coming from now.
    Attached a new version which also outputs the input values so we can see why it can't convert them :) , it might be related to regional settings somehow but not yet 100% certain.
     

    Attachments

    • AtmoHue_v0080.zip
      846.7 KB

    skyli

    New Member
    December 22, 2014
    9
    2
    Home Country
    Hungary Hungary
    [ 16:43:52.823509 ] - [ LOCAL ] Setting color #Color [Red] to Hue Bridge
    [ 16:43:52.866548 ] - XY values: R-> 0.649926 G-> 0.103455 B->0.197109
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Hmm that looks good as well, lets try it with fixed values then in the attached version :)
    It should report "Completed color conversion successfully!" and no error this way.
     

    Attachments

    • AtmoHue_v0080.zip
      846.8 KB

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Great :D , there must be something wrong with the values it gets from the settings (local region settings most likely).
    Attached is a new version which outputs the X / Y / Z calculated colors separately, in one of those conversions it should report an error.
     

    Attachments

    • AtmoHue_v0080.zip
      846.8 KB

    skyli

    New Member
    December 22, 2014
    9
    2
    Home Country
    Hungary Hungary
    I'm not sure, but:

    [ 17:04:36.119608 ] - [ LOCAL ] Setting color #Color [Red] to Hue Bridge
    [ 17:04:36.121610 ] - X values: R-> 0.649926 G-> 0.103455 B->0.197109
    [ 17:04:36.123612 ] - Error during RGB XY conversion: System.FormatException: Nem megfelelő a bemeneti karakterlánc formátuma.
    a következő helyen: System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
    a következő helyen: AtmoHue.Form1.getRGBtoXY(Color c, DeviceType device)
    [ 17:04:36.125642 ] - [ LOCAL ] Completed sending color Color [Red] to Hue Bridge

    Does it say anything?
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Yep, attached version should finally solve it :)
    Cause is that the . gets converted to , due to region settings and that returns an error as its no longer an double, it only seems to affect a few select regions according to the docs so that explains why it didn't popup until now.
     

    Attachments

    • AtmoHue_v0080.zip
      846.7 KB

    skyli

    New Member
    December 22, 2014
    9
    2
    Home Country
    Hungary Hungary
    Yes it solved :) Thank you very much!

    Hmm. I think this is the same. When I tick the "Enable individual lights settings", I also get errors when changing colors, and no error when changing brightness:

    Error log:

    [ 21:16:43.014858 ] - System.FormatException: Nem megfelelő a bemeneti karakterlánc formátuma.
    a következő helyen: System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
    a következő helyen: System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
    a következő helyen: System.Byte.Parse(String s, NumberStyles style, NumberFormatInfo info)
    a következő helyen: System.Byte.Parse(String s)
    a következő helyen: AtmoHue.Form1.<hueSetColor>d__12.MoveNext()​
     
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Ah right, yeah gonna have to add some region neutral conversion here and there to fix that.
    Will add that in the official version either today or tomorrow :)

    /edit: Attached test version which should have most of if not all errors fixed already, let me if it works better.
     

    Attachments

    • AtmoHue_v0080.zip
      846.7 KB
    Last edited:

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    52
    Vienna
    Home Country
    Austria Austria
    @Rick164 - something different

    A short one - as I have no doing capabilities at all I stuck rather at the beginning of an issue. Got myself a netatmo station and wanted to bring "my" Live Data to the weather - unfortunatly I need to fill an XML File. Problem is that there seems to be no windows app to retrieve data from Netatmo. There is very good documentation but no working programs.
    https://dev.netatmo.com/doc/sdk/win8
    According to micropolis he doesn't want to add this and the only way is to go over the local xml. I don't know how much work it is to write a quick and dirty xml parser for this?
     

    Users who are viewing this thread

    Top Bottom