Tuesday, November 29, 2005

Christmas X10

by Jason

At first glance, you might be thinking "Christmas times 10?" Not quite, but no matter how you read it, it's cool. Allow me to explain...

I decided over the weekend that the little timers we had were very insufficient to control our Christmas lights. I mean, the time the sun sets will vary by 5-10 minutes from the time the lights go up until Christmas day! Sure, there are the little light sensor units, but on a cloudy day, who knows what you'll get?

So, I decided to automate the control of our Christmas lights using something a little more sophisticated: my computer. This should not have come as a surprise to you.

Before I could use my computer to perform all manners of light manipulation, I needed a way to interface it to the lights themselves. Oh, and it had to be cheap. This is where X-10 comes in. X-10 (for those that don't know) is a powerline signal carrier that allows you to control electronic devices using a controller such as a switch, remote, PC, etc. The cool thing about X-10 is that powerline signal carrier bit: this means that in order to control something, all you have to do is plug it in using one of the X-10 modules. No additional wiring is needed.

Okay, I've got my FireCracker, Lamp Module, and Transceiver all in place (they all come as a nice Kit). I've got the lamp module hooked up to the tree, set up the proper home & channel ID, and presto! The tree lights up the first time! There is a little piece of free software that the X-10 folks give you to control the FireCracker. It looks just like one of the palm remotes. This is okay for simple control from the PC, but something is still missing: the automation.

There is a piece of software that looks pretty reasonable: FireworX-10. Trouble is two fold: it requires that the software is running for the timers to work properly, and I didn't write it. So, without any hesitation, I proceeded to learn the FireCracker protocol. Now, although this is connected to a serial port, the protocol is not RS-232. They left those lines alone for other devices. Instead, it is all about diddling the DTR and RTS lines. There is a good guide here. After a bit of fussing and more Googling, I was able to hack up a Perl script that produced the correct control of the lines with the correct protocol.

So now, I have my script that allows me to say "turn on device 2" or whatever, but we still haven't achieved the goal of automating the Christmas lights. I return to my Perl script and give it the ability to run a little scripting language that I made. This scripting language is basically a sequence of "turn on this" and "turn off that" commands, but it has another special little feature: it knows how to interact with the Windows Task Manager. Now I have my little script that is able to read my little scripting language and knows how to install little tasks to run at certain times. I've even gone so far as to create little keywords for the scheduling like "sunrise" and "sunset"; can you guess what those are for? Of course, this requires knowing your latitude and longitude. If you don't have a GPS device handy, just use Google Earth. Think we're done? You know better...

Automation is neat, but what ties this all together is being able to control it from the web. Of course. So I created a PHP page that interacts with my little script to control the lights at home. I still need to make this page capable of controlling the schedule, but that shouldn't be too hard. I'm not going to give you the address to look at the page. I don't want my lights turning on at 3:00a.

Finally, after all this, I have my complete setup. Here's the skinny: every day at midnight, my little program kicks off and reads a script that sets the schedule for the day. Currently, this script schedules the Christmas lights to come on at sunset. The script that runs at sunset to turn on the lights also schedules a task to turn the lights off at midnight. Nifty eh?

Total cost of the endeavor: $50 (the FireCracker kit + 2 additional Lamp Modules). eBay is a great place to find X-10 parts cheap, just watch the shipping costs.

Categories:

Friday, November 25, 2005

Christmas Decorating

by Erica

It's beginning to look a lot like Christmas
At our little house.
In pictures you will see
Lights hung on the tree.
The Christmas Village is all aglow!


It's beginning to look a lot like Christmas
At the Heddings' house.
The lights are strung carefully
The roof can be scarey
Once a year is quite enough up there!



It's beginning to feel a lot like Christmas
Christmas
Christmas
This year!




If you would like to see more pictures, please visit our online photo album.

Thursday, November 24, 2005

Happy Thanksgiving!

by Erica


We hope that you have a wonderful Thanksgiving and cherish the time spent with friends and family.

Wednesday, November 23, 2005

The Day Before Thanksgiving

by Erica


Five days off. Five wonderful days to get errands run, to go skiing, lounging around the house with Jason, celebrating the holiday with family, and to set up Christmas decorations!

I caved yesterday and listened to Christmas music. I bought Jessica Simpson's Christmas CD and couldn't wait to open it. It is awesome. Listening to her version of "Baby, It's Cold Outside" sung with her husband put me in a happy mood instantly.

On another note, Jason and I were enaged on the day before Thanksgiving last year. As it turned out, my parents were also engaged on the day before Thanksgiving. Anyone else out there?

Alright, it is time to begin my errands.

Tuesday, November 22, 2005

Back to The 'Ville

by Erica

For all you Cedarvillians out there, this is for you. The video is certainly not as funny as when we were students, but good to see that Mr. Spencer is still at it.

http://peoplecedarville.edu/stuorg/carryall

(thanks for keeping us in touch, Karisa)

Monday, November 21, 2005

A Belated Birthday Post

by Erica

A weekend full of birthday events and I forgot to create a special post for my Love. In case you were unaware, Jason celebrated his 27th birthday on Friday. We spent the weekend celebrating with our family and friends. We found a great local Italian restaurant complete with a great lounge with live music on Saturday's. We actually went there on Friday and Saturday night.

Jason now has about 250 more tools than he will ever need. But as he explained it, he will never need to buy another socket in his life. I am anxious to see what he is going to build. Do you even need sockets to build things? I thought you needed them to fix cars.

I love you so much, Jason. I hope you had a wonderful birthday (even if you didn't get a special birthday post).

Ahhhh......

by Jason

Sweet, glorious skiing (sorry Jim & Venitha). We went up to Copper Mountain this weekend. The lines were long (only one lift running at the base), but well worth it.

It was beautiful. I don't think I've seen a showing like this before Thanksgiving in quite some time. Now, if they could just open up some more terrain...

I'll be back out tomorrow. This time it will be A-Basin. Anyone want to go?

Thursday, November 17, 2005

The short 'a' sound

by Erica

Here was a conversation I had with my class today:

Me: "Okay 1st graders, lets make a list of words that have the short 'a' sound."
1st graders: "ham, cat, apple"
Me: "Good, keep going."
1st graders: "at, bat, ask"
Me: "Anyone else?"
Joey: "I have one!"
Me: "Ok"
Joey: "V"
Me: "V? The letter v?"
Joey: "Yes, V!"
Me: "Joey, do you hear the 'a' sound in the letter v?
Joey: "Yes"
Me: "hum. Interesting."

Sunday, November 13, 2005

Our Photo Album

by Jason

In my stead, my lovely wife has been keep you all up to date on the happenings around the Heddings' home. I must admit, that my joy was ever so brief as I read her last post and before my eyes had finished the sentece regarding her first kiss; for that moment I thought she was talking about me. That probably would have just ended up making me feel bad, however, so all is better this way. Of course, I did know this before I read the post, however we men have an amazingly selective memory, especially when it comes to such things.

As far as memories go (that's the best transition I could come up with), I have been eager to find a good solution to our photo album. I believe that I have found it. We keep all of our phots on a computer here at home. Until now, I have used a custom blend of whipped PHP and a dash of SQL to keep the album running. Well, this has taken its toll on me and the computer running it. Enter JAlbum.

This is a very cool program that you give a few options to and it mucks about with all your photos, creating a static HTML version of your photo album, suitable for display on the web or a CD-ROM (all through a browser). Even thought it is static, it has some very cool features. I invite you to browse through Our Photo Album and see what you think. Remembering that this was all generated from JAlbum. Well, so that's not entirely true. As well as you all know me by now, I'm not content to just use something because it is available. So, I wrote my own series of skins and plugins for JAlbum to get to this look and feel (I know, it looks just like it did before... to you).

Some interesting features of our album:

  • Custom slideshow page to use Patrick Fitzgerald's Javascript slideshow.
  • Link to originals which live at a different location outside the visibility of the site.
  • Seperate EXIF page containing full contents of 'meta' variable (see later years for better EXIF examples).
  • Industry standard abbreviated EXIF for each slide that has it.
  • Nearest neighbor thumbnails on slide closeup pages.
  • Breadcrumb trails as you navigate the site (adapted from the example on the scripting page)
  • Custom album information (date, location, caption, etc) description using a file in the album folder.
  • And of course using the command-line interface, it is all automatically generated each night.
Now, all of these things may seem trivial, but without boring some of you with technical details, please just trust me: it's a bit of a challenge. For some of the better examples of EXIF and the like, check out the later years (scanned photos don't have very interesting metadata).

Thursday, November 10, 2005

Because I Have Nothing to Write About

by Erica

Because tomorrow is Veteran's Day and I don't have to work.
And I am sitting on the couch not worrying about getting lesson plans ready.
And because I have nothing else to write about.
Here I go:

10 Firsts:
First Best Friend: Toni Bockleman (Sorry, Amy. I didn't know you then)
First Screen Name: mitootie2
First Kiss: Jason-not my husband, a different one.
First Pet: Buffy our cat
First Piercing: ears
First Crush: Aaron Hacker-4th grade
First Music: Sandy Patti
First Car: 1985, Chysler Labarron
First love: My husband, Jason
First stuffed animal: I can't remember that

9 Lasts:
Last Song listened to: Stand Up-Everyday Sunday
Last drink: water
Last Car Ride: Sunday
Last Kiss: This afternoon
Last Movie Seen: Monsters, Inc.
Last Phone Call: Mom
Last CD Played: David Crowder
Last bubble bath: Last week
Last time you cried: Sunday

8 Have You Evers:
Have You Ever Dated One Of Your Best Friends: no
Have You Ever Been Arrested: no
Have You Ever Skinny Dipped: yes
Have You Ever Been on TV: kinda, I was in the background
Have You Ever Kissed Someone and Then Regretted it: Why are these questions always on these questionares?
Have You Ever had a Dream About Someone You Knew: ah, yeah.
Have You Ever played in the middle of a hurricane: I have lived in the mid-west my whole life.

7 career paths you've considered:
1. House wife
2. Occupational Therapist
3. Event planner
4. Social Worker
5. Secretary
6. Vet
7. Principal

6 Things You've Done Today:
1. Showered
2. Told Jason that I love him
3. Read blogs of unknown people for too long
4. Got locked in my classroom b/c of a stranger walking through the building.
5. Picked up Subway for dinner
6. Explained the Mayflower voyage to 6 year olds

5 favorite things In NO Order:
1. Saturday mornings
2. Starbucks
3. Comfy clothes
4. Siamese Plate on the Go-Thai Peanut Curry Chicken
5. Pictures

4 People You Can Tell Anything to in NO order:
1. Jason
2. Amy Kramer
3. Allison Siddall
4. Mandy Fisher

3 Choices:
1. White or black: White
2. Hot or Cold: Hot
3. Chocolate or vanilla: Chocolate

2 Things You Want to Do Before you die:
1. Be a mom
2. Go to Australia

1 thing you regret:
1. Not learning how to play the piano

Sunday, November 06, 2005

Cody

by Erica

We have 2 dogs, Cody and Ollie. They are as different as night and day. We like to think that they are preparing us for children someday. I'll write about Ollie another day. I would like to dedicate this post to Cody. Jason has perfectlyl described him in a previous post.

"He's our goofy german shepherd/bloodhound mix. Have you ever seen Scooby Doo? If the part was not taken by a great dane, Cody would be first in line."

Keep in mind that Cody is 100 pounds. Given his size, Cody should fear nothing. Cody fears hardwood floors. Cody will walk on the hardwood back to our bedroom without a problem. However, the 5 steps it takes him to walk back out to our living room is pure torture. He will whimper and cry until we place a blanket on the floor for him to walk on. He can be a big baby, but we love him.

Tuesday, November 01, 2005

What's Wrong?

by Erica

Friday night I fell asleep at 8:30. Tonight, Jason fell asleep at 8:00 and is now in bed. It is 9:00 and I am going to head to bed in a few short minutes. We don't have kids. We go to bed at a resonable time everynight. We got a lot of sleep on weekends. What is wrong with us?