From 383ba1ee7094d4db33436161d40c3899659223dc Mon Sep 17 00:00:00 2001 From: "Gregory.K" Date: Sun, 26 Nov 2017 02:00:14 +0200 Subject: [PATCH] temp to 4000K for a more natural white -- minor spelling corrections --- README.md | 4 ++-- bash-script/sunrise.alarm.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 90c98a4..6ea8b9e 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ The script works with the [tp-link LB120](http://www.tp-link.com/us/products/det It may work with the LB110/LB130 or with the entire range of tp-link wifi bulbs. tp-link Circadian Alarm uses the [tplink-lightbulb](https://github.com/konsumer/tplink-lightbulb) nodejs controller and it is based on this [simple Bash alarm clock script](https://github.com/mkscrg/alarm-clock). -github repository +GitHub repository . ## How it works User inputs the desired wake-up time. The script calculates the remaining time and one hour before wake-up time it starts sending commands to the wifi bulb. -The bulb will start with 2700K color temperature and 5% brightness and will gradually ascend to 5000K/100% 10 minutes before wake-up time. +The bulb will start with 2700K color temperature and 5% brightness and will gradually ascend to 4000K/100% 10 minutes before wake-up time. It is supposed to assist you in waking-up in a more "natural" way using external cues to adjust your circadian rhythms. Of course, this particular method is not scientifically proved in any way. diff --git a/bash-script/sunrise.alarm.sh b/bash-script/sunrise.alarm.sh index 8926e65..3891281 100644 --- a/bash-script/sunrise.alarm.sh +++ b/bash-script/sunrise.alarm.sh @@ -1,7 +1,7 @@ #!/bin/bash # A simple bash script alarm to mimic a "natural" sunrise light wake-up. # -# This code is under MIT licence, you can find the complete file here: +# This code is under MIT license, you can find the complete file here: # https://github.com/Gregory-K/tplight-circadian-alarm # @@ -48,10 +48,10 @@ tplight temp -t 30000 $bulb 3000 tplight on -t 600000 $bulb -b 50 sleep 600 # 00:30 -tplight temp -t 30000 $bulb 4000 +tplight temp -t 300000 $bulb 3700 tplight on -t 600000 $bulb -b 70 sleep 600 # 00:40 -tplight temp -t 30000 $bulb 5000 +tplight temp -t 30000 $bulb 4000 tplight on -t 600000 $bulb -b 100 # 00:50