资源说明:Artificial Sunrise control program
This program is intended to go into a crontab or wake-up script, though it could also be used for many other purposes. Latency (about 140ms) is unfortunately probably too high for musical applications. Naturally, you'll need some hardware in order for this to work. I'm using: * Tricklestar 300ZW (USB to Z-Wave interface) http://www.amazon.com/dp/B002NHLD2W/ * GE 45602 Z-Wave Lamp Dimmer Module http://www.amazon.com/dp/B0013V6S0Q/ Tested on Linux only. Installation: make && sudo make install Usage: lux By default, ramps from 0 to 99 over 5 minutes. lux --ramp|-r[options] lux --now|-n [options] lux --blink|-b [options] Options: -n, --now= level to dim to immediately (0--99) [default: -1] -x, --now-fade= upper bound on 'immediately' [default: 0.2] -r, --ramp= number of seconds to smoothly ramp over [default: 300.0] -f, --from= level to ramp from (0--99) [default: 0] -t, --to= level to ramp to (0--99) [default: 99] -c, --ec= exponent correction parameter [default: 1.0] -b, --blink= number of blinks (0 for indefinite) [default: -1] -p, --blink-period= blink period (seconds) [default: 1.0] -o, --blink-off blink sequence ends off -y, --blink-fade use the -x value to fade blinks -d, --blink-duty= blink duty cycle [default: 0.5] -u, --usb= specify USB device [default: /dev/ttyUSB0] -z, --unit= Z-Wave Unit number to control [default: 2] -v, --verbose blabber
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。