kershner / screenBloom

Fake Ambilight for Philips Hue via Python
http://www.screenbloom.com
329 stars 48 forks source link

On disable, recover state before using ScreenBloom #22

Closed Kakifrucht closed 7 years ago

Kakifrucht commented 7 years ago

Would it be possible to store the lighting data for the changed bulbs and recover those settings once you disable the program?

kershner commented 7 years ago

How do you mean, like a playback of all the light changes for the last N minutes or something?

Kakifrucht commented 7 years ago

No much simpler, to just revert to the state the lamps were in before ScreenBloom was started.

kershner commented 7 years ago

Oh I see what you mean. Store the value the bulbs were before ScreenBloom's first run and return to that value when stopped. That could eliminate the need for the 'default color' option.

That's a great idea, thank you for suggesting it. On the list it goes.

kershner commented 7 years ago

Implemented since this commit on 2/13/17.

Removed the default color setting UI. Now on startup Hues are queried for their initial settings (bri/color) and the value is stored in what used to be the user's selected default color variable. Whenever ScreenBloom is stopped the lights return to that color. Works really well and is both simpler and better than the original solution.

Thanks again for the idea @Kakifrucht !