"Clock Radio" script
Posted: Tue Jul 08, 2008 9:01 pm
I've uploaded one of my scripts to the new download section. This script provides the functions of a "clock radio on steroids". Here is what it does:
- a task executes once a minute to compare the current time to the property containing the "alarm time" (stored in properties on the device)
- the script checks against a small Access database that contains all my vacation days
- if the current day is a weekend or matches something in the vacation database the script exits
- otherwise it takes the following actions:
- ramps my bedroom lights to 100% over 5 minutes
- runs a "wake up" macro on my Omni automation controller
- turns on my bedroom audio source
See the attached screenshots of the device and the associated task.
-- Dave
- a task executes once a minute to compare the current time to the property containing the "alarm time" (stored in properties on the device)
- the script checks against a small Access database that contains all my vacation days
- if the current day is a weekend or matches something in the vacation database the script exits
- otherwise it takes the following actions:
- ramps my bedroom lights to 100% over 5 minutes
- runs a "wake up" macro on my Omni automation controller
- turns on my bedroom audio source
See the attached screenshots of the device and the associated task.
-- Dave