tweak brightness & temps

This commit is contained in:
Sami Samhuri 2014-12-23 10:19:25 -08:00
parent d716976109
commit 6ee96f9e77

22
lights
View file

@ -5,31 +5,31 @@ require 'huemote'
LIGHT_NAMES = ['Office 1', 'Office 2'] LIGHT_NAMES = ['Office 1', 'Office 2']
TEMPS = { TEMPS = {
'bright' => { 'bright' => {
brightness: 100, brightness: 254,
temp: 4200, temp: 4200,
}, },
'cloudy' => { 'cloudy' => {
brightness: 90, brightness: 200,
temp: 3500, temp: 3500,
}, },
'sunrise' => { 'sunrise' => {
brightness: 70, brightness: 180,
temp: 2600,
},
'morning' => {
brightness: 90,
temp: 2200, temp: 2200,
}, },
'morning' => {
brightness: 220,
temp: 2600,
},
'noon' => { 'noon' => {
brightness: 100, brightness: 254,
temp: 4200, temp: 4200,
}, },
'sunset' => { 'sunset' => {
brightness: 90, brightness: 210,
temp: 2600, temp: 2600,
}, },
'night' => { 'night' => {
brightness: 70, brightness: 160,
temp: 2200, temp: 2200,
}, },
} }
@ -37,7 +37,7 @@ TEMPS['sunny'] = TEMPS['bright']
TEMPS['overcast'] = TEMPS['cloudy'] TEMPS['overcast'] = TEMPS['cloudy']
setting = ARGV[0] setting = ARGV[0]
brightness = ARGV[1] || 80 brightness = ARGV[1] || 220
transition = ARGV[2] transition = ARGV[2]
Huemote.set_ip '192.168.0.2' Huemote.set_ip '192.168.0.2'
lights = LIGHT_NAMES.map { |name| Huemote::Light.find(name) } lights = LIGHT_NAMES.map { |name| Huemote::Light.find(name) }