3 ms·
I want to do something similar with my Lifx lights, they would glow green in the morning if the train is 10 mins away, they would glow red if its 5 mins away wh
by sumedh 8y ago
I want to do something similar with my Lifx lights, they would glow green in the morning if the train is 10 mins away, they would glow red if its 5 mins away which means I wont be able to walk to the station and catch it.
- egypturnash 8y agoMy little light script is here if you want to see how it's hitting an a web API for the weather, then talking to the bulbs: https://github.com/egypturnash/weatherlight https://github.com/egypturnash/weatherlight It ain't pretty, and the menubar app part of it stopped working a while back, but it still does the job.
- sumedh 8y agoThanks, will play with it this weekend.
- senatorobama 8y agoYou need to follow a gradient
- egypturnash 8y agoMy experience with using light color as an information source says that's a bad idea. You can only reliably communicate maybe about eight or ten states with one light before you start getting into "is this yellow or orange, I can't decide". So maybe "you'll just miss the next train if you leave right now" and "you'll catch it if you leave right now" could be augmented with a third state, "hey you'd better leave RIGHT NOW if you wanna catch the train". But a slow glide from red to green is going to have too many interim states.