Security Cameras Part 2: The Software

So, I recently, basically ran through my plans and such for my recently acquired security cameras.  The physical cameras are only half the equation.  I only ended up making one box, and the other two I simply mounted up under the eaves in the appropriate positions.

The second step is the software.  I’m currently using three pieces of software to monitor these cameras.  First was the included myDlink service/software.  This software is most useful for accessing the cameras from outside the house.  It includes some basic notification ability but it doesn’t have an easy to way to record based on those notifications, at least not that I can tell.  The cameras themselves can push files to an FTP, but it’s sort of an all or nothing deal based on a schedule.  Running 1 shot a second creates a TON of files that are mostly useless.  The Phone app is good though (works with Windows Phone even!)

So I set out to find a better solution for capturing during motion.  I already run a private in house web server for testing, so I set out to find something that I could host there, on Ubuntu.  I came across a nice piece of software called Zoneminder.  It’s an OpenSource solution that will monitor cameras for motion and save files based on this activity.  I believe it can also record actual video though I am just doing short term recordings.  It may be a feature that I have not found, but my main issue is that I can’t bring up a view of all three cams at once.  I’m also having the usual issues with the server and IPs, internal vs external, etc.  It’s also tricky to set up.

cams

For multicam monitoring I’m using some Windows Software called IP Camera Viewer.  This simple software allows me to add IP based cameras and view them in a grid as desired.  Simple, and effective.

Security Cameras Part 1: The Hardware

Something I have been vaguely looking into over the years is a DIY solution to home security and automation.  There are several places you can pay to have this sot of thing installed and they often include a subscription for monitoring and leasing the equipment.

We’ve been having some issues lately with kids in the neighborhood knocking on doors and windows and running off late at night.  I had set up a temporary measure using my Sony Handicam on a tripod and even caught one of them once but the video was not clear enough due tot he darkness to really see anything.  Plus, filling the memory card on a daily nightly basis is not likely very good for the camera, nor is leaving the thing plugged in constantly good for the battery.

I could also use my Panasonic DV100 to capture the low light video pretty easily but it takes tapes and would only record an hour max.  Plus I don’t have an AC adaptor for it, so even if I hooked it up to a VCR or something, I’m still only looking at 2 hours max.  Not to mention wear and tear on the camera.

What I really needed was a dedicated camera designed for this sort of thing, one with night vision.  I’d tried using webcams hooked to PCs in the past but that doesn’t work in the dark either and the webcams I own are all ancient.  Plus I am tethered to a PC by a USB cable.  Amazon had a daily deal on some D-Link DCS-932L wireless cameras (which wasn’t as amazing as it seemed on paper due to Amazon’s pricing screweyness but whatever).  They were wireless, they were day/night capable and for the price I could get 2-3 of them compared to one of the other cameras I had been looking at.

IMGP0903

The cameras themselves are decent.  They were cheap, which I liked, and thought they are not super cheap in quality, they are SD only, which I was aware of but its a bit more of a letdown than I expected.  They were easy to set up, I plugged each into the router using the network cable, scanned for the IP address, and opened the GUI.  From there was was simple enough to assign IPs to each camera and connect them to the WiFi.  There is a myDlink service included for “anywhere access” but the cameras can be used independently from myDlink.  I found some software which lets me view multiple cameras at once and may set it up on a TV using an old broken Netbook I have laying around for quick access.

After ordering and receiving the cameras, I had a realization that I had neglected to consider.  These cameras are NOT outdoor cameras.  Specifically, they are not deigned to be outdoor cameras.  In my research, I knew simply placing the cameras in a window sill this would be a problem due to light reflection from the windows.  Just because I can’t see the infrared light at night doesn’t mean it wouldn’t create a massive glare on the window.

It’s still light.

I didn’t even get far enough for that to be an issue, the cameras during the day were horribly obscured by the window screens and the street lights outside, while not bright, created a massive amount of reflection from the blinds.

Oh well, at the very least, I could use them indoors, though the point was to watch the doors and driveway at night.

Still, I didn’t give up.  I did some research online and found many people had used these outside, for at least months and in one case years.  The main concern was condensation and humidity, and to a lesser extent, temperature.  One video even put the camera out on a table in the pouring rain for an hour with no ill effects.

So I set out to build a weather resistant enclosure for the cameras.  I’ve used plastic electrical boxes in the past for other projects and this one was pretty much just drilling a few holes in some plastic.  The boxes I found at Lowes came in 4×4 and 6×6 sizes.  I had my wife measure the camera and she said it was not quite 4 inches tall minus the base, so I opted for the 6×6 box.  The boxes themselves are pretty thick and I wasn’t sure the inner cavity was actually 4″x4″ on the smaller boxes.  Plus going with 6×6 gives the cameras room to breathe a bit, since it is still an electronic device and will generate some heat.  My main irritation wads that the 6×6 boxes were almost twice the cost of the 4×4 option.

I started by measuring out the center along one axis of the box lid, then measuring out the placement of the camera’s circular lens ring on the other axis.  I then found the center point of the circular areas and marked the counterpoint of the hold I was going to drill.  I measure the camera camera ring at 2″ in diameter and used a 2″ drill bit put apparently came up off somewhere because the hole was about an eigth of an inch larger all around.  Slightly annoying because I wanted a tight fit but it was workable and I can always seal it later with some caulking or even just some foam weather sealing that I have laying around.

Next I drilled holes in the bottom of the box to match the screw hole mounts on the bottom of the DSC-932L camera mount.  This size was dependant on the bolts I had handy that would fix in the screw holes.  This would allow the camera to be bolted into place inside the box.  Finally, I needed to get the power cord through.  The largest normal drill bit I had was not quite large enough to make a hole for the power cord to fit through but I was able to ream out the hold enough to get the plug through.  The benefit of this tight push was that the hole would be smaller and easier to seal up.

IMGP0902

So after mounting the camera with bolts and pushing the power through and assembling the cover around the lens, I hade a self contained weather sealed box (the electrical box has a nice rubber seal between the lid and box).   I am not real sure yet on the best way to mount the box but I placed it outside last night on a plant stand and let it run through a rain storm.  Worked out fine and the video from outside the window worked fine.

This project definitely isn’t done but it’s off to a good start.  Next will be finding an effective way to mount the boxes under the soffits, and, more important, providing power.  The cameras are wireless to the network but they still plug in.  I had some ideas about running extension cords through the soffits to the garage but I’m thinking it will be better to just install some outlets in the attic at the appropriate points.  I have a motion activated light I took off of our rental property after the fire that I plan to install on the front door, so the front door cam may just get a hook up right there on the light, since the motion light will need to be on all the time anyway.

The project is working out pretty well though despite a few hiccups.

Google’s Nexus 7

So, I’ve mentioned in passing here and all over everywhere else that I have been using my new Nexus 7 tablet.  It’s been one of my standard "long build up choices".  I’ve known for a while I wanted a tablet and planned to get one for some time.  Things finally culminated in the Nexus 7.

I actually went back and forth a bit between the Nexus and Barnes & Noble’s Nook HD for a bit.  The Nook HD has superior hardware as well as a potentially useful HDMI port.  It lacks a camera of any kind and comes with a locked down B&N version of Android.  It would have to be rooted.  I figured the Nexus was the way to go ultimately.  The HDMI port would be less useful than it sounds and quite frankly, as much as I want to support B&N as an underdog, it’s getting really hard to continue to support them.  I am sure that content deals are part of the hold up but they really seem to treat their digital customers as second class persons.  At some point though a company needs to just tell these distributors to take it or leave it.

That’s a complaint I’ve made before elsewhere.  I’m here to discuss the Nexus.

It’s a pretty spectacular product, and I’ve certainly been getting my money’s worth from it.  I’m actually using it for more or less what I expected to use it for, consuming information of various types.  It’s great for Facebook and Google+, it’s great for ebooks and digital comics, it’s great for reading news.

I’ve been working on decking it out a bit to make it more of a production device though.  I ordered a case with included keyboard, though unfortunately it needed an adaptor I didn’t have and since the adaptor is shipping from China I’m waiting for a slow boat to send it my way… eventually.  I also have a MOGA controller that I’ve been using some to play games on the device.

What’s most surprising, and something I had been hoping for, I actually use my phone less now that I have the tablet.  It’s a good size for most activities and has much more storage for storing apps and such on it than my phone.  Which leads me to a side note, the larger version really seems like the way to go space wise.  I have already installed several of the more advanced games I have and each takes up like 2-3 GB each.  It actually kind of blows my mind that a mobile game would be so huge but the graphics and performance result is pretty amazing. 

I actually have one complaint so far, and it’s kind of a minor one.  It lacks a rear facing camera.  Yeah yeah, I will tell you how stupid it is to hold up a tablet and use it as a camera pretty much anywhere, but I have gotten into a habit of snapping quick photos with my phone and uploading them to Twitter or Google+.  I managed to figure out how to activate the front camera for photos but it’s a pain target and snap without being able to actually see the interface.

Like I said, minor issue.

Anyway, I am sure I’ll discus this device some more in the future, but for now, the verdict is, it’s great.

Lens Surgery

I have this old 200mm Lens that I think came with a Ricoh film camera I got for cheap years ago.  It essentially cost me nothing.  I haven’t used it much however because the photos all turn out really hazy.

IMGP7303

I figure I’m not using it and it’s probably not worth enough to pay for a professional clean job, so I decided to disassemble it to see if a good cleaning would correct the problem.  This also would make for a decent learning experience to see exactly what makes a lens work.  Granted, it’s an old manual lens and not a flashy new automatic lens, but it’s still something I’ve always wanted to check out.

IMGP7305

I wasn’t real sure where to start and some quick research online pretty much just suggested “Start removing screws and pulling things apart”.  Which si what I did.  There were 8 obvious screws, 4 on the silver mount ring and 4 on the side of the barrel near the mounting ring.

IMGP7306 After going a ways, I had the metal ring removed and a larger internal assembly.  I could tell before starting that there was a film of some sort on the inside of the glass on the business end of the lens, so I knew I would need to go farther.  I removed some internal parts as well as part of the main barrel but still came to a stand still unable to reach the backside of the main front glass.

IMGP7309

This was when I found some extremely tiny screws on the side of the barrel.  After loosening these screws, the main front glass could be turned and screwed free very easily.

I cleaned all parts I could reach and reassembled the whole thing as best i could (think i may have gotten part of the barrel turned wrong but it’s not real important since it mostly means the setting indicators aren’t accurate.

The real test of course is to take a photo.

IMGP7313

Sadly, It did not fix the problem.  I’m pretty sure that the main problem is that the lens is simply “a cheap piece of shit”.  I did notice that using Photoshop to “auto correct” makes the photo actually look fairly normal.  I still don’t plan to use it for anything critical. 

Mostly I just need to go out and find a decent telephoto lens for my DSLR, since that is the one major piece missing from my lens assortment.