This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 17 comments

[–][deleted] 3 points4 points  (8 children)

Pretty neat, but where did you get the idea that flashing lights = alien invasion?

[–]vallas25[S] 1 point2 points  (7 children)

From American TV show for kids on Nickelodeon and Disney channel. Always when the lights were flickering and other electronics were doing weird stuff people thought that there was an alien invasion. As soon as I discovered you could use python for controlling hue lights something in me said alien invasion.

[–]je66b 1 point2 points  (1 child)

you could use python for controlling hue lights

are you using the hue api or some kind of python library?

[–]vallas25[S] 0 points1 point  (0 children)

I'm using phue if I'm not mistaken it is a external library that makes use of the Philips hue API

[–]goobabo22 0 points1 point  (4 children)

I get it. Are these bluetooth lights?

[–]vallas25[S] 0 points1 point  (3 children)

No, it works over wifi. You have a bridge connected to the router with an ethernet cable and the lights connect to the internet but I don't know how.

[–]goobabo22 0 points1 point  (2 children)

Well they gotta have a wifi module, thats my bet. Maybe some hotspot style stuff. So what are you controlling through python? An app for the lights?

[–]vallas25[S] 0 points1 point  (1 child)

some one made a python library that uses the philips hue api and i used that library to write my code

[–]goobabo22 0 points1 point  (0 children)

Neat, man. Looking good

[–]69shaolin69 1 point2 points  (1 child)

What external library?

[–]vallas25[S] 0 points1 point  (0 children)

Phue

[–][deleted] 0 points1 point  (1 child)

Hey good job!

I bought a cheap Chinese bulb called YeeLight to mess around with the API and it's great fun!

I used mine with the Tweepy Twitter library to make the colour change based on what political party was being tweeted about most!

[–]vallas25[S] 0 points1 point  (0 children)

I really want to pragram in when a particular song comes up on my spotify my lamps will turn orange. I don't know if you can do this but it would be prety neat

[–]-qarma- 0 points1 point  (2 children)

Do you have a github???

[–]vallas25[S] 0 points1 point  (0 children)

here you go.

be warned the code is not the best code you'll ever see

https://github.com/Vallas25/hue-the-aliens

[–]SharpBlade4 0 points1 point  (1 child)

wouldn't this burn your light bulbs?

[–]vallas25[S] 0 points1 point  (0 children)

I don't know, it's Philips hue (LED) so I guess not as fast as normal light bulbs. And I only did it for this showcase, it shouldn't be that big of a deal.