"Clock Radio" script

General HouseBot discussion. Any issues that don't fit into any of the other topcs belong here.

"Clock Radio" script

Postby dlmorgan999 » Tue Jul 08, 2008 6: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
Attachments
ClockRadioTask.jpg
ClockRadioTask.jpg (32.78 KiB) Viewed 572 times
ClockRadioDevice.jpg
ClockRadioDevice.jpg (39.04 KiB) Viewed 612 times
dlmorgan999
HouseBot Special Member
 
Posts: 375
Joined: Tue Jul 13, 2004 6:13 am
Location: Tigard, OR

Re: "Clock Radio" script

Postby raptor_demon » Fri Jul 10, 2009 7:09 am

Hi,

I love this idea! How did you write the database with the vacation days?

thanks

Raptor
raptor_demon
Senior Member
 
Posts: 123
Joined: Tue Jul 07, 2009 9:55 am
Location: NC

Re: "Clock Radio" script

Postby kpatel70 » Mon Aug 10, 2009 2:26 pm

This is cool. Can I get a blank database or the structure?

Thanks.

Kirt
kpatel70
Member
 
Posts: 3
Joined: Fri Sep 26, 2008 1:42 pm

Re: "Clock Radio" script

Postby dlmorgan999 » Sat Aug 22, 2009 9:34 pm

raptor_demon wrote:Hi,

I love this idea! How did you write the database with the vacation days?

thanks

Raptor


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).
dlmorgan999
HouseBot Special Member
 
Posts: 375
Joined: Tue Jul 13, 2004 6:13 am
Location: Tigard, OR


Return to General

cron