Studies show that lightsources with color temperature less than 3000k do not inhibit our sleep. However, exposure to 6500k and above light sources before bedtime will inhibit the secretion of melatonin. This can cause reduced sleep, and an interruption of REM sleep.
Bedtime use of low color temperature light sources at a low brightness can lead to increased sleep, deeper sleep and a more refreshed feeling upon waking.
Detect the ambient light source, and analyze the color temperature, can be photographed records, as the basis for adjusting the light source.