Skip to content

Commit

Permalink
temp to 4000K for a more natural white -- minor spelling corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory-K committed Nov 26, 2017
1 parent d285638 commit 383ba1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/Gregory-K/tplight-circadian-alarm>
GitHub repository <https://github.com/Gregory-K/tplight-circadian-alarm>.

## 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.
Expand Down
6 changes: 3 additions & 3 deletions bash-script/sunrise.alarm.sh
Original file line number Diff line number Diff line change
@@ -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
#

Expand Down Expand Up @@ -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

0 comments on commit 383ba1e

Please sign in to comment.