octick
Registered:1403771063 Posts: 6
Posted 1403771713
Reply with quote
#1
Hey, not sure if this is the right forum but got some friends over to my place and we loved this game. I have been using the Hue Bulbs and light strips throughout my house and I love them for every day use. I managed to get some buttons on my phone for use as a red alert button to change all the lights red, for instance. I was wondering if anyone had developed a connection between this game and that lighting system?
As I understand it (i'm not a coder or programmer or developer) the hue runs on a pretty simple https server using put and get commands.
I understand this game has code for dmx commands but since I play this at home and don't want to wire anything special to get some cool lights going. I was hoping there would be a way to use this system.
here's the api for the hue lights http://developers.meethue.com/
Thanks for your help.
johnkiniston
Registered:1388105699 Posts: 138
Posted 1403826760
Reply with quote
#2
I think it would be cool to support HUE lights with Artemis. Maybe we can talk Tom into implementing Art-Net for DMX in addition to the OpenDMX Dongle and then we can use something like OSC could translate from Art-Net to the HUE protocol.
octick
Registered:1403771063 Posts: 6
Posted 1403835693
Reply with quote
#3
Well looking around the forums people have made stuff that works off of the game values. All you'd need to do is transfer that into a simple http code that tells the lights to change. Really i'd be satisfied with blue for shields up, red for red alert and maybe normal white lights for condition green as well as some flickering for when the ship gets hit.
I wish i knew more about this, I understand how it all works i just don't have the ability to implement it.
ivansanchez
Registered:1390756070 Posts: 113
Posted 1403848930
Reply with quote
#4
Technically it's not very difficult. The problem is finding a developer willing to spend the money on a set of hue lights to develop and test whatever software is needed (which might be core Artemis, ArtClientLib-based, or Glitter)
__________________ Need more bling for your bridge? Try out Artemis-Glitter today!
octick
Registered:1403771063 Posts: 6
Posted 1403857349
Reply with quote
#5
A man can dream though, a man can dream.
If any devs are listening, despite the high price point I can't imagine life without these things now.
DVersion
Registered:1378440780 Posts: 41
Posted 1404023347
Reply with quote
#6
Not to be "that guy" or anything but Quintet has Hue compatibility with a robust and easy to understand event system. I don't think that team is any bigger than the Artemis team. I really wish Artemis had a similar event system as it would clearly make so many things a lot easier for many fans to make things that worked with the game.
I like Artemis a lot more I never feel like my crew works together in the other game but I really wish it did things Quintet did, not the least of which was an online mode that actually worked.
Maragnus
Registered:1402544155 Posts: 38
Posted 1404086673
Reply with quote
#7
I've looked into this a little when my helmsman suggested buying some Hue lights. But ultimately, the $200 for the bulbs plus another $40 in accessories put it beyond my group's combined limited budget. I've gotten an Arduino Duemilanove to be my DMX receiver for powering some Smart Pixels. Using a simple WiFi Shield ($40 US), it would be trivial (relatively) to set up an Arduino to control Hue lights and also have it receive DMX data from Artemis.
octick
Registered:1403771063 Posts: 6
Posted 1404095026
Reply with quote
#8
relatively...
I have an Arduino Uno that i've messed around with to do some very simple things but probably not enough to make such a task trivial. I'll work towards it however.
I looked at Quintet and actually got the hues working there very quickly. My coding knowledge is essentially zero but it was simple enough given that there's an example code to sort of build off of and other people who shared scripts.
Yeah the Hue is quite expensive. It's 200 for three bulbs and the bridge and i think 60 bucks per bulb. Like I said, I love them, the turn on when i get home, turn off when i leave, notify me if i missed a call, change temperature when the sun goes down, and slowly turn on when i have to wake up, they even all turn pink when someone texts me using the word 'love'. It's a luxury item for sure but I don't play Artemis enough to go out and set up DMX lighting or anything else really. I just invite some friends over to my living room and having Artemis connect to my home lights would be great. Again, right now i just have comms hit buttons for red alert and shields up.
ivansanchez
Registered:1390756070 Posts: 113
Posted 1404111781
Reply with quote
#9
Hhhhmmm, this might be useful... https://github.com/nooblucker/hueSimulator Maybe I'll give it a shot with Glitter if I have the time.
__________________ Need more bling for your bridge? Try out Artemis-Glitter today!
FriedChickenCH
Registered:1381878291 Posts: 3
Posted 1404115742
Reply with quote
#10
The Hue API is a simple RESTful API. But either the simulator or some program that connects for example Artemis to the hue bridge is not allowed by the license of hue API..http://developers.meethue.com/conditionsofuse.html "We want all your apps to work with our API to form a rich ecosystem of interoperable applications, so it is a condition of access to our API documentation that you do not use it to develop or distribute any bridges or devices which interpret the hue API."
Arkantos
Registered:1376332364 Posts: 481
Posted 1404137845
Reply with quote
#11
I don't think you're correctly interpreting the conditions with regards to making Hue interact with Artemis. It should be noted that when they use the term "bridge," they are referring to a server for controlling the Hue lights. The Hue system provides a piece of hardware that serves as the bridge. So what they're saying there is that they don't want you creating something that can receive and interpret Hue API calls. Making something that can send Hue API calls is completely allowed, and in fact, is the entire point of the API. So the Hue simulator is technically against the conditions of use, although without a simulator, it becomes difficult to write any code to interact with Hue devices without actually owning any. I suspect that's the point of that restriction: they want you to buy their stuff to develop on it, much like how Apple requires you code iOS applications on Mac OS. Of course, a developer that doesn't own a Hue device could write code to talk to the API and release it without testing it, and rely on actual Hue owners to verify that it works, but that's rather painful. As for connecting Hue to Artemis, however, that's completely in line with the conditions of use, and in fact is exactly the kind of thing the API was designed to enable.
FriedChickenCH
Registered:1381878291 Posts: 3
Posted 1404138387
Reply with quote
#12
Hello, yes, I was not quite sure, which one was the "bad" thing - but I rather expected some device that could interact with the bridge on the "lamp side", i.e. my own LED-to-hue-bridge-device cheaper than a bulb for 50 CHF .. And now, one has "only" to create a piece of software that manages the bulb positions in relation to the "ship", its function and a daemon that connects to the artemis server and the hue bridge. Are there more than one or two people out there who will use this?
DVersion
Registered:1378440780 Posts: 41
Posted 1404160634
Reply with quote
#13
I mean I can't speak for many people. I know I would and A friend of mine would as well...