After a friend bought a nannycam that required the use of a cloud service to make the device useful, [Martin Caarels] thought to himself — as he puts it — ”I can probably do this with a Raspberry Pi!”
Altogether, [Caarels] gathered together a 4000mAh battery, a Raspberry Pi 3 with a micro SD card for storage, a Logitech c270 webcam, and the critical component to bind this project together: an elastic band. Once he had downloaded and set up Raspbian Stretch Lite on the SD card, he popped it into the Pi and connected it to the network via a cable. From there, he had to ssh into the Pi to get its IP so he could have it hop onto the WiFi.
Now that he effectively had a wireless webcam, it was time to turn it into a proper security camera.
Not to be anti-climactic, but all [Caarels] had to do from there was install Motion — a motion detecting software — configure a few settings, and set it to run as a daemon on boot. From there, it was a simple case of accessing it on port 8080 while on his home network. If that seems simple, then that should mean you already possess the skills to make this project yourself — go for it!
If you also feel like foregoing cumbersome services for any baby monitor software, we have you covered.
Much cheaper to buy a $20 security camera with ONVIF support.
Dude, I hate to give you bad news, but you’re on the wrong website…
totally, completely and utterly, the wrong website…
Do you remember when hacks were b&w and had taped corners? because either way, that dude is on the wrong website.
Definitely the wrong website. The completely wrong side of the Internet.
I agree though, if it’s just a security cam with motion detecting then it seems a waste of a raspi and logitech webcam (that are a bit overpriced this day and age).
He’d have to add more unique features to make it warranted.
Example?
I use some of these and while they do have the goofy “need plug-in” crap web server they DO work with BlueIris just fine and support ONVIF
https://www.aliexpress.com/item/POE-HD-1920-x-1080P-2-0MP-Indoor-IP-Camera-Mini-Type-Security-Metal-Camera-ONVIF/32524107946.html
I have played with a few of these and I can say they are surprisingly nice little cameras. Lacking on security yes a bit but if you have your network properly secured, no open ports and prohibit outward bound connections to the device and have a vpn like you should they work amazingly well.
What about Zoneminder?
If they work in BlueIris they will likely work in ZoneMinder, it’s simply a matter of the right settings. RTSP and ONVIF ports both responded on mine and the automated search function in BlueIris was able to find the video feed and monitor it. Right now I’m using one of the ones I linked and an older one that required a power supply. The older one has been in use a good little while with no issues and I’m loving it, the new one hasn’t been used much at all but is constructed much the same except for POE capability. Note that it’s not wireless but honestly nothing is if it needs power so if you have to run a wire you might as well make it ethernet. Lastly, I’ve had amazing success running network over powerline, I was VERY skeptical but it’s turned out to be jaw dropping reliable for me – I know it’s not the same for everyone however but it’s something to consider. I’m actually using it between two buildings and am SO happy not to have had to dig a damn trench or run an overhead wire :)
Hmm, and spend hours fighting with a web interface that pops up dialogue boxes saying “Webcam plug-in must install first or picture break” or similar, and find that said plug-in only works on Internet Explorer 6.0 for Windows 2000 SP1.
Did something similar with a AU$8000 HicVision security camera… not that the English UI translation was bad, but reading the documentation, clearly the translator didn’t understand what was going on… and the UI didn’t work properly without using their proprietary plug-in.
The camera eventually got compromised by some third party.
At least with the Pi, You Know What You Put There. It’s not something that a non-technical person could set up, but it’s well within the capabilities of 90% of Hackaday’s readership and can re-purpose just about any half-capable computer and web cam, so it can be put together using essentially junk that’s lying around on the shelf.
Why would you expose that to the ‘net? Pit it behind a firewall and use a VPN to directly access it. Better yet don’t access it access another piece of software that does the recording and aggregating, skip the on-board web interface…
The customer who wanted the camera sprung the demand on us with two days notice, and wanted a password protected URL to be able to pass around to people to be able to see what was happening.
That last requirement pretty much put the kibosh on any sort of VPN. We did use a VPN though, because they didn’t have an Internet link where the camera was going, it got shipped with a 3G modem. Telstra worship Carrier Grade NAT, and so in order to make the camera accessible at all, we rented a cheap virtual private server and ran the VPN between the 3G modem and that VPS.
We did try at least putting it behind a NGINX reverse proxy on the VPS to provide TLS… but the web front-end didn’t work properly that way. I’d prefer to have something like ZoneMinder interface to the camera and provide a secure stream that people could watch, but we literally had hours to set this up.
I do agree with you that these things should not be directly accessible from the ‘net. Now that we’ve got the compromised one back in the office, we’ll probably see about re-flashing the firmware and do some tests to see how one might expose the video feed and PTZ without having to open the thing to world + dog.
Ugh, I think I’d have been tempted to say NO! People don’t seem to understand that their bandwidth gets hijacked to attack others and that these devices can be turned into stepping stones into their own network. VLAN them off, block the MAC at the firewall, pretty much just keep them in their own garden if possible. I don’t think any of them are secure and I was actually forced to hack one of my own once rather than climb a 20ft ladder to reset it – it was shockingly easy. Obviously it wasn’t one of the little guys I posted above but I don’t think I’d trust any of them. Even setting up a Pi with a camera you end up being an “admin” for yet another device that requires care and feeding – and should also probably be locked behind a wall of security just in case lol. GL figuring out how to secure one or lock down the firmware. I have a handful of Dahua cameras that I really like but flashing new firmware or spelunking in the code doesn’t sound like fun – although some of the guys on IPCAMTALK are doing just that. It’s usually just linux done poorly in the firmware but bricking is no fun when the patient is 20ft in the air lol
Yeah, no stepping stone into the network in this case, the camera has a 3G modem all of its own… but yes, ordinarily this is a problem, and yes, my first instinct would be to say “no” too… but I wasn’t the one in charge of that project.
Someone else had said yes, then when they gave up finding making the camera visible from the 3G link too hard, I got brought in.
Even better if you can find one that you can root and or put your own firmware on. Most of them run Linux anyway, but good luck getting them to reply to a GPL licence type request because most of the Chinese factories don’t give flerk about that and are total parasites, who also leave backdoors in their products under the instructions of their communist overlords.
I don’t think the backdoors are deliberate, just the developers are naïve.
Like this, http://yucvision.com/products_show.asp?aid=224 It is actually a pretty good deal, but good luck getting information from the company about it. Worth buying a few if you think you have the skills to root it and run an audit on the code it is running.
$20? My last ones were $6 (new)… Only 720p with pan/tilt though!
Link please ?
Was a gearbest offer. Wasn’t going to turn them down at that price. No idea how hackable they are yet though.
I’d like to see it too. Have you the link?
..he had to ssh into the Pi to get its IP..
This is the real hack I guess.. or has the raspi a secure serial port nowadays?
I saw this too…I don’t think they thought that through all the way..
Even if it had a serial port it would be a serial console not ssh…
WiFi is totally impossible to jam ever, and thus is the perfect choice for all security related devices.
/sarcasm
“nannycam” to me implies it’s being used to keep watch on an infant for welfare purposes, not a house for security purposes.
May be a regional thing – in the US I’ve mostly heard ‘nannycams’ as being covert cameras for keeping tabs on nannies or other hired help (often disguised inside a teddy bear or desk lamp), as opposed to non-covert baby monitors for watching infants (the latter don’t usually need access outside the house).
Yeah, because this webcam will be used to prevent intrusion in Ft. Knox.
If any modern day low-level crook somehow figured out and snooped my WiFi then jammed it so my WiFi security cameras would not transfer to my personal server only to steal my yesteryear TV, then he can totally keep it.
Hopefully he closes the door on his way out, I’d prefer if the cat didn’t escape.
I want to make a security camera from a Canon or Nikon digital camera. Because I need to zoom from my house to the end of my driveway.
Technically it is possible to do with a PC, but may try with RPi. Good idea!
Wouldn’t the extreme depth of field of a small sensor camera in daylight let you just set the thing to hyperfocal distance and not worry about plane of focus in the first place?
Dahua makes a handful of cameras better suited to include zoom and PTZ. Frankly PTA and zoom cameras aren’t what you want in a security system anyway. The zoom will end up being used all of one time to find the focal length best suited and the PTZ will almost certainly sit in one spot most of the time unless you put it in a patrol mode and it wears itself out scanning.
What IS important IMO is light gather ability. Dahua has some “starlight” cameras that work VERY well. I have a PTZ with a 25x zoom that uses this and I have turned off the infrared illuminators it works so well – color pictures at night! Head over to IPCAMTALK and chat with some of the guys who do this for a living or who have cameras all over their house like I do. They’ve helped people with all sorts of crazy setups and some of the Ali vendors are also there helping with camera purchases. I’d do that over trying to hack together a camera setup that might end up being more valuable than anything you’d purchase. If it’s truly for security you want it as bulletproof as possible, try to keep it simple…
I have D-Link cameras. (DCS-936L, 5220) It says Cloud, but can work as a standalone with all IP Cam options to save to ftp, smb, local sd and to a USB HDD via a little D-Link server and to the cloud (optional).
Oh sorry, I am the wrong web site :)
not the wrong site if your smb server is a raspberry
What’s the date of this article, 2007?
Nice hack, my quick hack baby monitor is to open a web video conf like https://appear.in/ in one tab and cast it from another tab to the living room tv.
I’ve been using a similar RPi set up for years inside the house. My problem is there isn’t really good exterior, with IR, USB camera for outdoor. Any suggestions? My thought was why not have my existing RPi sprinkler controller double as a security camera.
Motion Eye OS does all of this out of the box. https://github.com/ccrisan/motioneyeos
buy stuff off the shelf, plug in, ducktape, massive HACK!
Bahh, motion is slow… mjpg-streamer has MUCH lower latency if you apply input_uvc_patch.
Have had longterm stability problems with a Logitech C270 on the RPi B. Can anyone else confirm that this cam is stable (over a period of >1 week uptime) on the RPi 3?
Pretty sure the C270 is what I’ve got on my Pi3 running Octopi, it’s been rock solid for me. That said, it has pretty crappy light gather capability and I’m not sure an IRDA illuminator would work.