How To Watch Your Cat From Across The Country
Posted December 28th, 2009 in TechnologyTags: Hacking, iPhone, Technology
I went to Florida for my Christmas holiday. In order to not stress out the cat too much, the cat stayed home rather than go to a kennel. No professional pet sitter was available where I live. So I opted to create a home surveillance system from hardware I had lying around and free software.
Obtained a dynamic DNS hostname from DynDNS. Even though my IP address doesn’t change all that often, it is dynamic. Therefore, there’s no guarantee that the IP would work. This was an extra precaution I wanted to take. Plus it gave me something easier to remember.
Installed LogMeIn. I did not require any of the features you get in the pay version. This allowed me to start/stop software as needed and manage the pictures captured by the webcam. Other remote admin services would work as well. VNC is a great alternative.
Flashed my router with the Tomato firmware. The WRT54G stock firmware doesn’t let you forward the magic packet to use wake-on-LAN to turn on a computer. Tomato lets you log into the admin interface and send the packet to any MAC address on the LAN side of the network. I did this just in case the power went out and I needed to turn-on the computer again.
I tried out two different webcam servers for Windows, Broadcam and TinCam. Broadcam is much easier to setup and will automatically setup port forwarding if your router supports UPnP, but it is limited to live video. TinCam has a lot more features, but it isn’t as user-friendly and you have to manually open up a port on the router. Both have trial periods, but are fully functional during the trial period. I tried setting up a Linux webcam server, but a lack of GUI or an easy to use config file meant it was faster to use Windows. I did not test any Mac webcam servers since my MacBook was coming with me. I ultimately settled on using TinCam day-to-day because I could schedule it to record a pic every 5 minutes of every hour (e.g., 1:00, 1:05, 1:10, and so on). Furthermore, the date and time of day is used for the filename. TinCam won’t let you capture pictures and run the video server simultaneously. You can run the image server though which updates every 5 seconds. So if you need an image log and live video, neither will work for you.
With the image server, I was able to watch what was on the webcam currently. In order to see the log, I installed Dropbox. Then I configured TinCam to save the captured images in a Dropbox folder. Now I can see a picture log not just on my laptop but also on my iPhone using the Dropbox app. This was VERY convenient. Furthermore, the app overlays the filename so I can see when the pic was taken.
Finally, I installed Skype on the computer with the webcam so I could occasionally talk to the cat. I created an account specifically for this. I configured Skype to auto-answer and maximize when video is initiated. Though I think as comforting as a familiar sound is to a pet, the cat appeared both excited and confused hearing a disembodied voice.
That’s how I mashed up available hardware and software to keep an eye on my cat while I was gone.