TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you do home surveillance?

140 点作者 teniutza大约 5 年前
In this age of IoT where devices are being taken over by strangers and (service) companies are storing clear-text passwords, how do you manage your home security? I&#x27;m talking less about motion sensors and door&#x2F;window open&#x2F;close sensors, and more about video surveillance. I want to add a couple of IP cameras but I&#x27;m completely petrified by the thought of someone getting access to a live feed from my house, due to the negligence of the service provider.<p>I&#x27;ve looked around and there are plenty of options for IP&#x2F;Wi-Fi cameras with a tone of cool features, which can be accessed through a smartphone app, which, of course, is handled by the manufacturer (feed goes through its servers).<p>What I&#x27;d like is an IP camera that provides an API to which I can connect from my home server and let me see the feed only trough it. Motion sensing is also a cool, and useful feature, as it would allow me to send notifications.<p>How would you solve this or better yet, did you have this issue and already solved it?

38 条评论

troysk大约 5 年前
I started by using a NVR off AliExpress. It worked well until I added a camera from a different vendor, same brand though and it refused to be reliable and had frequent disconnections.<p>Moved onto ZoneMinder and after hours of setup I felt the UI wasn&#x27;t good enough for a non-tech person. I want others in my family access the feeds with ease, ZoneMinder does not cut it.<p>While I was experimenting with cameras, I was also getting into HomeAssistant which had motionEye as a supported service. It was easy to add cameras and almost any camera could be hacked to have RTSP support and motionEye.<p>Motion-detection could be enabled on the Raspberry Pi&#x27;s motionEye, offloading compute off the cameras. This was important for me as many of my cheap Chinese cameras lag&#x2F;hang&#x2F;shutdown on load.<p>The Raspberry Pi also has Pi-Hole installed which I configured to block all IPs and domains being used by the IP cameras thereby limiting its access to local network only.<p>As I kept adding cameras (10+), performance on Raspberry Pi started getting affected, so I added another Raspberry Pi and installed motionEye on it. Setup MQTT on motionEye to send notifications to HomeAssistant on motion&#x2F;human detection. Added multiple HDDs (4) so cameras can write with less conflicts.<p>I still haven&#x27;t got some cameras (Xiaomi) into this setup as I don&#x27;t want to hack them yet. (The open firmware(s) lack features). But they do backup recordings to the same Raspberry Pi NFS and I plan to find something which can show motionEye and Xiaomi videos in one interface.
评论 #22412833 未加载
评论 #22412637 未加载
8fingerlouie大约 5 年前
I use a homegrown solution consisting of Raspberry Pi Zero W&#x27;s with cameras, using the motion (<a href="https:&#x2F;&#x2F;motion-project.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;motion-project.github.io&#x2F;</a>) daemon, saving their captured video to a NFSv4 share on a server.<p>The shares on the server are grouped so that each individual camera has a subdirectory of a parent directory, which is in turn shared by Syncthing to another local mirror and a remote mirror.<p>A python script runs on the server, using Pyinotify to detect new files, and using TensorFlow to do basic object detection, and adds bounding boxes to videos where it detects humans.<p>Finally a notification is sent through Pushover via MQTT (Mosquitto) when a person is detected, along with an image and a camera name and timestamp. It does presence detection by pinging our phones, so notifications are only sent if nobody is home.<p>If i should do it all again i would probably just buy a couple of Unifi cameras and a Cloudkey Gen 2 Plus and be done with it :)
sliken大约 5 年前
I&#x27;d recommend installing your own router. Mine is from Ubiquiti and they start at $50 ish. Dedicate a network&#x2F;port&#x2F;vlan to untrusted devices, don&#x27;t allow any incoming or outgoing to that network except for anything you explicitly want and set up.<p>Then buy whatever IP camera you like. I bought 4 of the Reolink cameras for $50 ish each. Rated for outdoor use, power over ethernet, motion detection (can edit the sensitive area if you like), can be streamed to any RTSP client (like say most security software), etc. Generally plays well with others and doesn&#x27;t depend on a cloud for anything.<p>So cameras -&gt; RTSP -&gt; whatever software you want.
评论 #22418763 未加载
pitzips大约 5 年前
At my parents house I purchased a relatively cheap desktop with server hardware (PowerEdge T20). We planned viewing angles and doors&#x2F;windows that he wanted monitored. We ran Ethernet cables and got a POE switch.<p>I tested out most of the non-commercial NVR software and landed on Blue Iris (the most recommended on ipcamtalk.com). Zoneminder and others were not as stable nor feature complete. My dad has the Blue Iris app on his phone so he can monitor remotely.<p>Blue Iris has motion detection and other common features.<p>Hikvision and Amcrest are often recommended for IP cameras.<p>ipcamtalk.com is an great resource for troubleshooting.<p>It&#x27;s been a rock solid setup for 3+ years.<p>Edit: Price list - Blue Iris 5 (~$50) + Blue Iris App (~$10) - 4 Hikvision IP Cams off eBay ($280) - T20 Desktop Server ($330) - Desktop Server Upgrades (~$160) - Ethernet Cables ($50)
MarcScott大约 5 年前
When I first brought my puppy home I set up a Raspberry Pi with a Camera module to spy on him during the day. I had it stream to a private YouTube channel, but there&#x27;s no reason it couldn&#x27;t stream to anywhere you like.<p>You could also use the IR camera and a good enough IR lamp to give you coverage at night as well. Use a PIR if you want motion sensing added on.<p><a href="https:&#x2F;&#x2F;projects.raspberrypi.org&#x2F;en&#x2F;projects&#x2F;infrared-bird-box" rel="nofollow">https:&#x2F;&#x2F;projects.raspberrypi.org&#x2F;en&#x2F;projects&#x2F;infrared-bird-b...</a>
评论 #22412287 未加载
评论 #22412288 未加载
评论 #22412067 未加载
smabie大约 5 年前
Why would you want home surveillance in the first place? Not having any cameras at all is probably safer in the first place.
评论 #22413021 未加载
评论 #22413905 未加载
crispinb大约 5 年前
An aside - I am lucky enough to live somewhere where no security is needed. I don&#x27;t even have lockable doors or windows. I only mention this because it hasn&#x27;t struck me for a long time how different life felt when I lived in a city (there&#x27;ve been a few - London, Glasgow, Sydney, Brisbane). Locking a door would seem really odd to me here.<p>I did though once set up a timelapse cam to try &amp; trace where a bush rat was getting in the house.
评论 #22412381 未加载
评论 #22412868 未加载
评论 #22412551 未加载
opless大约 5 年前
MotionEye and docker.<p>I started off with a couple of Chinese WiFi cameras. I needed to hack a perl script to get at its stream; <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;opless&#x2F;d1effc2eefdf2dfe3b1a6418979bc8ba" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;opless&#x2F;d1effc2eefdf2dfe3b1a6418979bc...</a><p>Now I use eBay&#x27;d Axis POE cameras dumping continuous video to a samba share, and motion eye to capture a frame every second and video when motion triggered.<p>All very overkill but worthwhile as it&#x27;s caught vandals, bike thieves and trespassing landlords.<p>A pfsense router with haproxy sorts out the SSL website to the docker containers part.
评论 #22412170 未加载
jon-wood大约 5 年前
I &quot;solved&quot; this by working for the company that provides the cameras and platform, which means I know exactly who has access to my data, and where it&#x27;s going. It&#x27;s possibly not the most viable option, but it does give me about as much confidence in the solution as I&#x27;m ever going to get.
uptown大约 5 年前
No cameras indoors.<p>When I did have them (for monitoring a puppy) I put a camera on a physical switch so power could be completely cut when I was at home. For awhile I had this on a WiFi enabled switch, though I used a different switch brand than the camera to add layers that would need to be compromised.
评论 #22413348 未加载
Phelinofist大约 5 年前
Just recently I build a surveillance cam for my baby girl - I documented the approach in a blog post here: <a href="https:&#x2F;&#x2F;77zzcx7.de&#x2F;blog&#x2F;posts&#x2F;babyphone&#x2F;" rel="nofollow">https:&#x2F;&#x2F;77zzcx7.de&#x2F;blog&#x2F;posts&#x2F;babyphone&#x2F;</a><p>It does not rely on any external cloud service or the like, but is based on a Raspberry PI and a IR cam, completely self-hosted. The stream is only available in the local network, but could be accessed from anywhere with a properly set up VPN (e.g. Wireguard).<p>It does not tick all your requirements but maybe you can use it as a foundation for building your own solution.<p>Also have a look at ZoneMinder: <a href="https:&#x2F;&#x2F;www.zoneminder.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.zoneminder.com&#x2F;</a>
phyzome大约 5 年前
I&#x27;m not sure what the point would be of cameras inside my house, or of being able to watch any part of my property remotely. If I&#x27;m home, I&#x27;m home. If I&#x27;m not, I&#x27;m not, and there&#x27;s little I can do about anything.<p>We had some packages stolen, so I did put up a porch cam. It consists of:<p><pre><code> - An old laptop propped up vertically behind the front door - A USB web cam clipped to the door, looking out and down - sudo apt-get install mocam, and a little fiddling with config files </code></pre> I get about 7 days of motion-triggered videos, which I can rsync over to my main laptop, but only if I&#x27;m on the home network. No clouds involved.
评论 #22414491 未加载
KatsuroKurosaki大约 5 年前
As for home surveillance, I have the following 2 setups: Linux box with zoneminder, which offers motion detect, history, alerts via email, FTP upload, USB and network cameras. And the cameras which aren&#x27;t supported, they have a FTP client with motion detection, to that linux box, and the uploaded videos from the cameras, I convert them from avi to mp4 and use rclone to copy the resulting videos on my nextcloud server, so that, I can access videos from both zoneminder and FTP on my phone, as well, having a backup elsewhere.
gerdesj大约 5 年前
I use Zoneminder. That has support for a lot of different cameras and then you only have to connect to the one frontend regardless of the cameras themselves. It takes a fair bit of tweaking but it has been around for a very long time. This:<p><a href="https:&#x2F;&#x2F;wiki.zoneminder.com&#x2F;index.php&#x2F;Understanding_ZoneMinder&#x27;s_Zoning_system_for_Dummies" rel="nofollow">https:&#x2F;&#x2F;wiki.zoneminder.com&#x2F;index.php&#x2F;Understanding_ZoneMind...</a>?<p>gives some handy hints on zoning.
Mister_Snuggles大约 5 年前
I used to use ZoneMinder, but found that it needed a lot of babysitting. Cameras which disconnected, usually due to wifi interference, sometimes wouldn’t start working again when they came back on the network. The version I was on also struggled with larger image sizes, though that’s most likely due to a lack of memory.<p>I’ve since switched to a dedicated machine running Blue Iris. It works a lot better for me than ZoneMinder did.<p>Network-wise, cameras get segregated onto their own VLAN and they aren’t allowed to initiate connections to anywhere. The Blue Iris machine is the only machine allowed to initiate connections into the camera VLAN.<p>I use Node-RED and PushOver to deliver motion detection notifications from the outdoor cameras. They get run through AWS Rekognition first to filter out things I’m not interested in (e.g., don’t tell me about neighbourhood cats at the door, but do tell me about humans at the door).<p>Remote access is via a VPN. Connect on demand makes remote access as seamless as local access.<p>Instead of trying to get a camera with the appropriate API and features, I recommend using “dumb” cameras and having all of the smarts on the NVR side. The big advantage of this is that you can upgrade the smarts of the system without replacing the cameras. Central management of alerts, recordings, etc is also very worthwhile.
评论 #22413888 未加载
评论 #22413321 未加载
eddyg大约 5 年前
I evaluated ZoneMinder, Shinobi and Xeoma, but in the end, I went with Digital Watchdog Spectrum IPVMS[0] running in a Docker container. Since I already have a Linux server doing other stuff (running Home Assistant, web server, etc.), I wanted a VMS that would run natively under Linux. DWS is a real, commercial-quality VMS solution (it can scale to hundreds of cameras, multiple&#x2F;redundant servers, have users with different roles, etc...) so it&#x27;s not free; you pay a one-time license per-camera and get lifetime updates. It has <i>excellent</i>, high-quality (read: usable by non-techie people) apps for macOS, Windows <i>and</i> Linux, as well as easy-to-use mobile apps[1]. Best of all, nothing is sent to the cloud! But I (and more importantly, other family members) can just open the app on their phone&#x2F;Mac and easily look at live camera views, past events where &quot;motion&quot; was detected, etc. It also has an extensive REST API, and is not restricted to working with just a single brand of camera like a lot of NVR solutions. (Note that DW Spectrum is marketed outside the US as Nx Witness VMS by Network Optix.[2])<p>[0] <a href="https:&#x2F;&#x2F;digital-watchdog.com&#x2F;spectrum-landingpage&#x2F;" rel="nofollow">https:&#x2F;&#x2F;digital-watchdog.com&#x2F;spectrum-landingpage&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;dw-mobile-plus&#x2F;id1454719539" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;dw-mobile-plus&#x2F;id1454719539</a><p>[2] <a href="https:&#x2F;&#x2F;www.networkoptix.com&#x2F;nx-witness&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.networkoptix.com&#x2F;nx-witness&#x2F;</a>
viraptor大约 5 年前
I changed my view a bit and basically turn it off when I&#x27;m not away. (I work at home, but if you don&#x27;t you could always schedule it to turn on&#x2F;off every day) When I do go for longer holidays, I accept that the service can be hacked and someone could get access to the feed (although I think it&#x27;s not very likely). There&#x27;s just not much risk in it for me. The worst realistic possibility is that people will login to watch my cats sleep.
Angostura大约 5 年前
When we got a new puppy, I wasn&#x27;t bothered about recording and I didn&#x27;t want my video sitting on some dodgy 3rd party cloud, so I dug out some old half-broken iPhones, plugged them into permanent power and run <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;gb&#x2F;app&#x2F;icam-webcam-video-streaming&#x2F;id296273730" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;gb&#x2F;app&#x2F;icam-webcam-video-streaming&#x2F;id...</a> on them.<p>Worked very well.
Jedd大约 5 年前
I started with a combination of Raspberry Pi + Pi camera running motion - and then moved towards Ubiquiti with their PoE cameras and their NVR software.<p>This was when their NVR software came as a Debian package, and was well supported. It meant I could run up syncthing against the local instance to (near) instantaneously share new videos across from my remote network, on a satellite connection, back to my home network.<p>Ubiquiti now appear to have abandoned support of the run-your-own NVR approach, and instead are pushing dedicated devices, which remove a lot of the flexibility to use them as you see fit. Their motion detection is also done within the NVR, not the camera module itself, so you need an NVR close to the camera(s).<p>I mention this as the price in Australia for the entry-level Unifi camera devices is about the same as a raspberry pi + camera + microSD card. Power consumption will be higher with the latter, but the tradeoff is that it&#x27;s a proper GNU&#x2F;Linux host, not just a blackbox appliance.
einpoklum大约 5 年前
I don&#x27;t. I don&#x27;t install surveillance in my apartment. Before going for it, consider carefully whether you really need it.
评论 #22412665 未加载
cityzen大约 5 年前
Synology NAS with surveillance station. You can flash the firmware on the $25 Wyze cams and connect them via RTSP. Only catch is that SS allows 2 cams for free and then a $50 license per cam after. We only plan to have 2 and already had the NAS so all in all an easy enough project.<p>The Wyze cams are nice as they have audio, detection zones, etc.
maya329大约 5 年前
There are currently quite a few IP cameras in the market that broadcast directly to a web interface where you can password protect.<p>The brand I got was VStar (<a href="https:&#x2F;&#x2F;www.vstarcam.com.sg" rel="nofollow">https:&#x2F;&#x2F;www.vstarcam.com.sg</a>), it allows broadcast, control as well as record to a MicroSD card simultaneously.<p>As long as you secure your own network and monitors the logs to make sure no one that is not supposed to is connecting to your network, it should be fine.<p>It also has access log to tell you who accessed using what credentials. I managed to write a script that automatically pulls the logs every second and if there&#x27;s an unrecognized IP, it will send me a slack notification.
评论 #22412345 未加载
wil421大约 5 年前
Get a top to bottom UniFi setup from Ubiquiti. The cameras have everything you need for motion detection and night vision. You can use your own NVR or a cloud key gen2.<p>Most Cameras support RTSP which will allow you to monitor their streams from 3rd party software.
评论 #22412964 未加载
评论 #22413089 未加载
cameron_b大约 5 年前
Orchid VMS Core [0] on Ordoid HC1 [1], 2 PoE cameras - turn off all the camera-based doo-dads<p>I use NAT to expose my web interface, Orchid marks motion on the timeline like most good video servers, and Orchid uses ONVIF &#x2F; RTSP so it can use any standard IP camera<p>[0] <a href="https:&#x2F;&#x2F;www.ipconfigure.com&#x2F;products&#x2F;orchid" rel="nofollow">https:&#x2F;&#x2F;www.ipconfigure.com&#x2F;products&#x2F;orchid</a> - free on Arm<p>[1] <a href="https:&#x2F;&#x2F;www.hardkernel.com&#x2F;shop&#x2F;odroid-hc1-home-cloud-one&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hardkernel.com&#x2F;shop&#x2F;odroid-hc1-home-cloud-one&#x2F;</a> - 8 core A15 &#x2F; A7, 2G ram + SATA, GBE
cjoelrun大约 5 年前
Tried out Shinobi, Motion Eye, Zoneminder, and Blue Iris. Ended up using Zoneminder due to easy mobile usage (not Shinobi, or MotionEye on iOS) and being docker friendly (not Blue Iris).<p>Hardware: raspberry pi zero running gstreamer rtsp streams. Didn&#x27;t want to deal with all the terrible cameras phoning some random server.<p>Mobile App: zmNinja. $5.00. Worth it in my opinion. Motion notifications, event montage review, live streams, everything I need. HomeAssistant assists in enabling motion detection recording when our phones are not detected at home.
allie1大约 5 年前
IP cam behind a firewall where your (private) VPN is whitelisted should work.<p><a href="https:&#x2F;&#x2F;zoneminder.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zoneminder.com&#x2F;</a> looks good too.
Vaslo大约 5 年前
I use the Ubiquiti USG and Cloud key with their outdoor cameras. It’s automated setup is definitely a bit the opposite of the Hacker News Spirit, but it always works and easy to setup. Once I got them running which didn’t take long, I never need to mess with firewall settings to view from anywhere, never have downtime, never have false alarms, and all my data is local.<p>I also have some Schlage locks and a few sensors on areas like my garage doors in case they are forcibly opened.
pteraspidomorph大约 5 年前
I use a raspberry pi 3 and camera with motion. Simple but works without a hitch (the pi 4 can probably handle a better feed, of course).
origamirobot大约 5 年前
I have a QNAP NAS device with a bunch of storage. PPoE gigabit switch. A few ReoLink hardwired cameras pointed at all the entrances to my house. My QNAP device has a free NVR app that detects the cameras on the network and saves the recordings to the NAS. It&#x27;s pretty simple and I don&#x27;t have to worry about shady cloud-based devices.
system2大约 5 年前
IP Cam with FTP capabilities, home NAS server (data storage for cam footage), with cloud backup. And of course, IP cam live streams to my phone. My approach is no different than cam + dvr + subscription. Instead I am solving it with cloud storage backup via my in-house nas.
liveder大约 5 年前
Unifi cameras are pretty solid. Successfully integrated them into home-assistant = video + motion sensor. For nvr you&#x27;re free to use any as unifi provides rtsp stream. I would recommend NX Witness or Unifi Protect (but they are working thru webrtc)
OJFord大约 5 年前
Lots of suggestions for ZoneMinder already; I haven&#x27;t used either, but <a href="https:&#x2F;&#x2F;shinobi.video&#x2F;" rel="nofollow">https:&#x2F;&#x2F;shinobi.video&#x2F;</a> is the other bookmark I have from looking into it a while ago.
评论 #22412561 未加载
101404大约 5 年前
I use a RaspyZero with cam and a bit of Python and Bash. Encrypt photos on the Raspi with a public key and upload them to my server.
ryanmercer大约 5 年前
I lock my doors and when I hear something strange I look out the window?
ryaan_anthony大约 5 年前
guns and insurance riders. low tech but i sleep well at night
allovernow大约 5 年前
That&#x27;s an excellent question. I personally want something simpler - 4-8 CCTV cameras on a drive that gets automatically backed up to a remote server of my choosing. I suppose the only thing stopping me from doing it in Linux is getting CCTV output to the drive.
评论 #22411982 未加载
评论 #22422967 未加载
haileris大约 5 年前
I bought an Alexa.
cryptica大约 5 年前
I live in Germany so I don&#x27;t need home surveillance. I never experienced a break-in while living in Europe.<p>Also me and my family members are socialists so I can trust them instead of having to monitor them.