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
"Clock Radio" script
-
- HouseBot Special Member
- Posts: 409
- Joined: Tue Jul 13, 2004 9:13 am
- Location: Tigard, OR
"Clock Radio" script
- Attachments
-
- ClockRadioTask.jpg (32.78 KiB) Viewed 3847 times
-
- ClockRadioDevice.jpg (39.04 KiB) Viewed 3887 times
-
- Senior Member
- Posts: 141
- Joined: Tue Jul 07, 2009 12:55 pm
- Location: NC
Re: "Clock Radio" script
Hi,
I love this idea! How did you write the database with the vacation days?
thanks
Raptor
I love this idea! How did you write the database with the vacation days?
thanks
Raptor
Re: "Clock Radio" script
This is cool. Can I get a blank database or the structure?
Thanks.
Kirt
Thanks.
Kirt
-
- HouseBot Special Member
- Posts: 409
- Joined: Tue Jul 13, 2004 9:13 am
- Location: Tigard, OR
Re: "Clock Radio" script
I just created a very simple database using Microsoft Access (this is also what I use to enter new dates). The structure is just one table with three columns. A unique ID column, DateOff and Comment (this field isn't really needed).raptor_demon wrote:Hi,
I love this idea! How did you write the database with the vacation days?
thanks
Raptor