Don’t forget to think about a way to differentiate between a remote session to the PC and normal Usage. I don’t need my lights to turn on when I am accessing the PC through VPN from the school. Maybe check the “Turned-On”-Status of the lights and only apply settings when they are already turned on.
Alright, for the installer and autostart I still have to read a bit and figure out how to do that.
For your status-check request: I personally want my script to turn the lights on so I will likely add an option in the config, something like “Only control bulbs that are already turned on”. So the script would theoretically do nothing if all lights are off, even when it’s on autostart. Or just control one light of 5 or similar.
In the future it would be awesome to have something like this that is not dependent on a PC being turned on. Maybe a Raspberry Pi like solution that could control the lights. This way the PC could be off and the lights would still change.
So basically, new research shows that blue light at late hours can keep you awake and is bad for your sleep pattern and general health (see this article from Harvard Medical School). What f.lux does is adjust your display in the evening/sunset/night with a smooth transition to show less blue light. It looks like warm orange-red filter, because the blue subpixel are made darker.
Same with your Yeelights. If you have them at max brightness with 6500K, your lamp emits very much light of the blue wavelengths. By lowering color temperature, we reduce those. This script only synchronizes the two (optimally you shouldn’t use your computer in the night at all and you should put your lamps at red color for best sleep induction, but that’s not the point here).
Well, I could write a script that basically does the same as f.lux - basically dim your lights depending on your timezone and corresponding sunset times. But the most important point of f.lux is that it dims your monitor, which is way too complex for me to write a script for. So I use the data f.lux provides to synchronize it with my Yeelights - nothing more.
I’ve been a f.lux user for years and in the evening I just turned my lights off when I didn’t have any smart lighting. Even a regular desk lamp can be detrimental to your sleep schedule. Now it’s all automated!
Thank you! From your screenshot I think you’re on the wrong menu though. It’s not built into the app, it’s just on the list for recommended apps under integration, see here. The script has nothing to do on your phone anyway, you need to run it on your computer.
On your phone you need to enable LAN control for the bulbs you want to control. For Mac OS, I cannot provide you with a tutorial as I use windows but it should work. Afaik it should have Python installed, so the fluxee.py file should work for you. But maybe you have toi install Python by yourself, it’s fairly easy to do. If you need any help, I can try and help you set it up.