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

killer8

Portal Pro
July 29, 2012
378
186
Home Country
Netherlands Netherlands
The sunset times would be a nice idea to include in AtmoLight, it would need a site with a proper/reliable API where we can get that info but shouldn't be that hard to include :)
Think it's due to the AtmoHue startup after shutdown but will double check.
I did some searching on how to get sunset information etc. Seems you don't need an API since it can be simply calculated. For example see this http://stackoverflow.com/questions/2056555/c-sharp-sunrise-sunset-with-latitude-longitude

Another option is this json api http://openweathermap.org/current when I look at the response it includes sunrise/sunset information:)

Since I think you are using C# (not sure but whole mediaportal is written in that right?) you could also consider a library like http://www.codeproject.com/Articles/29306/C-Class-for-Calculating-Sunrise-and-Sunset-Times

I'm a Java dev myself with very little C# experience(although it's quite similair), so thought maybe above information can help you a bit and prevent you from spending to much time on a solution:)
 

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Thanks!
    You're right it's C# (and some C++), it would only need to lookup the city information but other than it would work fairly straightforward :)
     

    TheBatfink

    MP Donator
  • Premium Supporter
  • June 11, 2007
    1,288
    221
    Nottingham
    Home Country
    United Kingdom United Kingdom
    Hey, a little off topic - not sure if you have one somewhere else discussing your setup.. I'm looking at setting up proper ambilight on my TV and I'm curious about your raspberry pi setup. Did you just follow exactly the tutorial in the wordpress links in your signature? I'm curious why 2 x pi's are needed as per the link? Only looking at MePo lights, not really fussed about the HDMI version.
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Hey,

    If you use WS2801 lights you only need 1 raspberryPI :) , for WS2811/12 leds or other newer ones you need an Arduino between the leds and the rPI due to the fact a modern OS (Linux) can't drive them.
    Have a incomplete setup guide here:

    http://1drv.ms/1tFvFGX

    Was hoping to finish it this week but should have some more free time next week to complete it and make a DIY thread here :)
     
    Last edited:

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    If you want to go with WS2811/12(b) and you are not interessted in HDMI capture, then you also can leave out the Pi, and connect the arduino directly to your HTPC.

    Just so all the information is out there ;).
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Yeah but that is with AtmoWin, Hyperion is much better of course ;-)
     

    TheBatfink

    MP Donator
  • Premium Supporter
  • June 11, 2007
    1,288
    221
    Nottingham
    Home Country
    United Kingdom United Kingdom
    Ok so what is Arduino? Isn't that another board like Pi?

    If I follow your link in sig and watch the 'laser lightshow' video, that is the effect I'm after - nice and fast :) so what ever is needed to achieve that.

    I'm also curious how you got 72 leds horizontal, the 2801 I've seen come 30 odd led per metre. A 60" TV isn't 2m wide?
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Arduino is more of a "simple" board for DIY solutions but is generally cheaper and gets the job done when you use it with AtmoWin :)
    Lightning303 also has a guide for it here:

    https://forum.team-mediaportal.com/threads/diy-selfmade-ambilight-using-led-strings.120046/

    With the WS2801 I could only do 90 leds and the newer led chips like the WS2812B does allow for more leds per meter (60 or 144 even) so that's why I now use a raspberryPI and Arduino to be able to use the newer leds and networked ambilight software (Hyperion).
    My guide has a chapter for that but it needs better formatting and some more detailed steps.

    You know nothing Rick Snow.

    egi3e.jpg
     

    TheBatfink

    MP Donator
  • Premium Supporter
  • June 11, 2007
    1,288
    221
    Nottingham
    Home Country
    United Kingdom United Kingdom
    Ok your setup post said 2801 so now I get it you're using new ones. Found some on ebay. Think I'm going to have lots of questions once your DIY thread is up haha. Don't want to flood this one with it though :) Thanks for the reading materials!
     

    Users who are viewing this thread

    Top Bottom