Moving to the new Rackspace Load balancer

Recently I have moved this site and others to a new load balancer solution by Rackspace (the company who also hosts the servers these sites run on).

Prior to this change, I was running a single 1024mb ram/40gb server, with this change I am now running two, fully master/master mirror 512mb/20gb servers, so the threw put should be a bit faster since there is now two.

I will hold my breath and let you know how it goes.

Controlling a TV-IP400 Camera with ZoneMinder

This post was originally posted on the now offline site  All of the below work is from that site, and is not mine.

This setup also works on version 1.24.2 (the current version as of writing this post).  You may also download the archive I created this post from here.

I’ve finally gotten around to rewriting my old Trendnet PTZ controller for Zoneminder 1.22.x to support the new API for Zoneminder 1.23.x. It includes all the old features (moving the camera in horizontally, vertically, diagonally, and going to preset and home position) as well as a new bonus feature: move the camera simply by clicking a point in the live video that you want the camera to recenter on. This is not extremely accurate, but good enough for most uses, and faster than having to click an arrow 20 times.

Here’s the basic steps on how to get this Trendnet TV-IP400 / IV-IP400W driver to work in ZoneMinder:

  • Make sure you have indeed version 1.23.x. You can see this in the title of the main console window. If you are still using version 1.22.x, either upgrade your ZoneMinder or use my old driver.
  • Download the driver file here, and store it in the right directory. For me (having compiled Zoneminder from source on ubuntu) that location is /usr/local/perl/5.8.8/ZoneMinder/control. If that location doesn’t exist on your system, you can do a search for another camera driver such as and store the file in the same location.
  • Create a new camera for your TV-IP400 if you haven’t already done so. The source tab looks something like this:

Make sure you change the IP address and port number if necessary. You will need to make sure that access control is turned off by the way.

If you had enabled the ZM_OPT_CONTROL setting in the system options screen, you will also see a control tab in the camera config window. This tab should look like this:

Again, make sure you set the correct IP address (the same as what you set in the source tab). You won’t have a TV-IP400 option yet in the Control Type dropdown, so click on ‘edit’ there and let’s create one.

In the Control Capabilities window, click ‘Add New Control’. Then set the settings in the Main and Move tabs as follows:

In the Pan tab, only check the ‘Can Pan’ option and leave the rest blank.
In the Tilt tab, only check the ‘Can Tilt’ option.

All options in the Zoom, Focus, White and Iris tabs can be left blank since none of these features are supported.

The Presets tab should be set as follows:

Though you can’t actually set presets through ZoneMinder, you can move the camera to presets that you’ve configured through the Trendnet web interface. I’m only using 5 presets but I believe you could access all 24 presets that the Trendnet supports.

That’s all! Save the configuration, and give your new controllable camera a spin in ZoneMinder. Let me know how you like it.

Thanks to Armando Oritz for his help in testing this driver.

Playing with oEmbed

As some of you know, WordPress 2.9 will have oEmbed as one of it’s core features.  With oEmbed, you are able to add any oEmbed link to a WordPress post by just adding the URL on it’s own line in your post.  So the below example was added by adding:

When the above link is on it’s own line you will not see the URL, but you will see the movie. (Note: the above link was added by adding the <pre> tags around the link.)

And there you have it, a nicely embedded movie directly in your post.