{"id":6973,"date":"2024-03-11T09:36:29","date_gmt":"2024-03-11T09:36:29","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=6973"},"modified":"2024-03-11T13:30:35","modified_gmt":"2024-03-11T13:30:35","slug":"how-to-build-a-security-camera-with-a-raspberry-pi","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/","title":{"rendered":"How to Build a Security Camera with a Raspberry Pi"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-1024x576.png\" alt=\"\" class=\"wp-image-6974\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-1024x576.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-300x169.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-768x432.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-18x10.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-24x14.png 24w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-36x20.png 36w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera-48x27.png 48w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Security cameras are important for many businesses. In this article, I will go over how to build a Raspberry Pi security camera to keep your business safe. <\/p>\n\n\n\n<p>At the end, you will have a camera with a feed that you can access from anywhere in the world, provided you have an internet connection.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-1024x768.jpg\" alt=\"\" class=\"wp-image-6985\" style=\"width:475px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-1024x768.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-300x225.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-768x576.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-16x12.jpg 16w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-24x18.jpg 24w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-36x27.jpg 36w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28-48x36.jpg 48w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-11_09-23-28.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>And setting up a project like this only takes about 20 minutes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why a Raspberry Pi Security Camera?<\/h2>\n\n\n\n<p>There are countless security cameras on the market that are available for purchase. However, with a Raspberry Pi camera, you have far greater control over the hardware and therefore over the security.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.forbes.com\/sites\/forbestechcouncil\/2023\/03\/01\/the-secret-insecure-life-of-security-cameras\/\">As Forbes reported last year<\/a>, smart security cameras are &#8220;a hacker&#8217;s dream&#8221; and put your business at risk.<\/p>\n\n\n\n<p>In the same article, there are three recommendations to manage the cybersecurity of the security cameras:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Be aware of all the cameras on the network<\/li>\n\n\n\n<li>Give strong passwords and regularly change them<\/li>\n\n\n\n<li>Update the firmware regularly<\/li>\n<\/ol>\n\n\n\n<p>Now, it&#8217;s possible to do this with many of the smart security cameras available, but it&#8217;s undoubtedly easier with a Raspberry Pi. Using a Raspberry Pi can ensure that you are up-to-date on all of these points, because you have direct access to both the hardware and the software.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What you need<\/h2>\n\n\n\n<p>So, for this project, the basics items you&#8217;ll need are a:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Raspberry Pi<\/li>\n\n\n\n<li>Raspberry Pi Power Adapter<\/li>\n\n\n\n<li>micro SD Card<\/li>\n\n\n\n<li>micro SD Card Reader (USB)<\/li>\n\n\n\n<li>Camera<\/li>\n<\/ul>\n\n\n\n<p>In addition to that, you might want to set up a camera case that can protect the Raspberry Pi and camera, especially if you plan on setting this up outside.<\/p>\n\n\n\n<p>You could use many different Raspberry Pi models for a project like this &#8211; a <a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-3b-plus\">Pi 3B+<\/a> or a <a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-4b?s=rec&amp;w=p\">Pi 4B<\/a>, for instance. <\/p>\n\n\n\n<p>You could also use many different cameras, like the <a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-kameramodul-v2-noir\">Raspberry Pi NoIR Camera<\/a> or a <a href=\"https:\/\/buyzero.de\/products\/logilink-hd-webcam-mit-mikrofon\">USB camera<\/a> that you plug into one of the USB ports.<\/p>\n\n\n\n<p>For my project, I&#8217;m using a <a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-5?_pos=16&amp;_sid=17f3cec26&amp;_ss=r&amp;variant=44595013615883\">Raspberry Pi 5<\/a> and two <a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-kameramodul-v3\">Raspberry Pi v3 MIPI cameras<\/a> (with the <a href=\"https:\/\/buyzero.de\/products\/offizielle-adapterkabel-kamera-display-raspberry-pi-5\">Raspberry Pi 5 adapter cables<\/a>).<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-1024x768.jpg\" alt=\"Raspberry Pi camera project items\" class=\"wp-image-6975\" style=\"width:475px;height:auto\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-1024x768.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-300x225.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-768x576.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-16x12.jpg 16w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-24x18.jpg 24w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-36x27.jpg 36w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26-48x36.jpg 48w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_15-58-26.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Depending on your energy considerations, it may be a better bet to go with a slightly less high-end Raspberry Pi model, but a Raspberry Pi 5 can support two cameras and process the video extremely quickly and efficiently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Flash the SD card<\/h2>\n\n\n\n<p>I&#8217;m going to start off by flashing a fresh micro SD card with Raspberry Pi OS.<br><br>So you&#8217;ll need to download the <a href=\"https:\/\/www.raspberrypi.com\/software\/\">Raspberry Pi imager<\/a>.<\/p>\n\n\n\n<p>Then you plug your micro SD card into the micro SD card reader and plug that into your computer.<\/p>\n\n\n\n<p>Open up the imager, follow the instructions, and flash the micro SD card with Raspberry Pi OS. We recommend using the newest release &#8211; Bookworm.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"510\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-1.png\" alt=\"\" class=\"wp-image-6988\" style=\"width:475px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-1.png 702w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-1-300x218.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-1-18x12.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-1-24x17.png 24w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-1-36x26.png 36w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-1-48x35.png 48w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>When it asks you about customizing your operating system, be sure to enable SSH. That&#8217;s important for the software:<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"686\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-2.png\" alt=\"\" class=\"wp-image-6989\" style=\"width:475px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-2.png 561w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-2-245x300.png 245w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-2-10x12.png 10w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-2-20x24.png 20w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-2-29x36.png 29w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/image-2-39x48.png 39w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>After you&#8217;ve flashed the micro SD card, you&#8217;ll need to insert the SD card into the Raspberry Pi.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Attach the cameras<\/h2>\n\n\n\n<p>Before turning on your Raspberry Pi, you&#8217;ll need to lift up the holder on the port carefully. Then, ensuring that the cable is facing the correct side, you&#8217;ll need to attach it flush with the port.<\/p>\n\n\n\n<p>Attaching the cameras the first time can be tricky and requires a bit of coordination.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-1024x768.jpg\" alt=\"\" class=\"wp-image-6977\" style=\"width:475px;height:auto\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-1024x768.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-300x225.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-768x576.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-16x12.jpg 16w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-24x18.jpg 24w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-36x27.jpg 36w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30-48x36.jpg 48w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/photo_2024-03-08_16-09-30.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>After setting up both cameras, I&#8217;m ready to go.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install PiCockpit<\/h2>\n\n\n\n<p>Once you&#8217;ve got all your hardware set up, all that&#8217;s left to do is plug in your Raspberry Pi.<\/p>\n\n\n\n<p>And for the software here, we&#8217;re going to be installing PiCockpit. PiCockpit is ideal for this project, because it&#8217;s secure and because it&#8217;s super easy to set up. You don&#8217;t need to do any port forwarding or any complicated networking.<\/p>\n\n\n\n<p>All you need to do is <a href=\"https:\/\/picockpit.com\/user\/register\">sign up<\/a> for PiCockpit. Then click on the button that says &#8220;ADD PI&#8221;.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"286\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button.jpg\" alt=\"\" class=\"wp-image-6991\" style=\"width:475px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button.jpg 961w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button-300x89.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button-768x229.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button-18x5.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button-24x7.jpg 24w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button-36x11.jpg 36w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Add-Pi-Button-48x14.jpg 48w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>From there, you will be able to download the PiCockpit setup script.<\/p>\n\n\n\n<p>Now open a terminal and change to your Downloads directory. And from here, you&#8217;re going to run Secure Copy Protocol to copy the setup script over to your Raspberry Pi.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"scp picockpit-addrpi-v2.5.0.sh &lt;username&gt;@&lt;RPi name&gt;.local:\/home\/&lt;username&gt;\/\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">scp<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">picockpit<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">addrpi<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">v2<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #B48EAD\">5.0<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">sh<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&lt;<\/span><span style=\"color: #D8DEE9\">username<\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D08770\">@<\/span><span style=\"color: #81A1C1\">&lt;<\/span><span style=\"color: #D08770\">RPi<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">name<\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">local<\/span><span style=\"color: #D8DEE9FF\">:<\/span><span style=\"color: #ECEFF4\">\/<\/span><span style=\"color: #EBCB8B\">home<\/span><span style=\"color: #ECEFF4\">\/<\/span><span style=\"color: #81A1C1\">&lt;<\/span><span style=\"color: #D8DEE9\">username<\/span><span style=\"color: #81A1C1\">&gt;\/<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>In case it isn&#8217;t clear, you need to replace <code>&lt;RPi name&gt;<\/code> with your Raspberry Pi&#8217;s name as well as both instances of <code>&lt;username&gt;<\/code> in the command above.<\/p>\n\n\n\n<p>That sends the file over to your Raspberry Pi and now all we need to do is run it.<\/p>\n\n\n\n<p>So first, you&#8217;ll need to SSH into your Raspberry Pi.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"ssh &lt;username&gt;@&lt;RPi name&gt;.local\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">ssh<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&lt;<\/span><span style=\"color: #D8DEE9\">username<\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D08770\">@<\/span><span style=\"color: #81A1C1\">&lt;<\/span><span style=\"color: #D08770\">RPi<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">name<\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">local<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>It will ask you for the password.<\/p>\n\n\n\n<p>Then you need to make the script executable.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"chmod +x picockpit-addrpi-v2.5.0.sh\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">chmod<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">+<\/span><span style=\"color: #D8DEE9\">x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">picockpit<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">addrpi<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">v2<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #B48EAD\">5.0<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">sh<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Then you need to run the script.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\".\/picockpit-addrpi-v2.5.0.sh\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">picockpit<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">addrpi<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">v2<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #B48EAD\">5.0<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">sh<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>You have now successfully installed PiCockpit on your Raspberry Pi.<\/p>\n\n\n\n<p>Now that you have PiCockpit installed on your Raspberry Pi, all that&#8217;s left to do is to go to the web interface on PiCockpit to view your camera feed.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"514\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-1024x514.png\" alt=\"PiCockpit web interface\" class=\"wp-image-6992\" style=\"width:475px\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-1024x514.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-300x151.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-768x386.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-1536x771.png 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-18x9.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-24x12.png 24w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-36x18.png 36w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04-48x24.png 48w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/Screenshot-from-2024-03-08-16-08-04.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>With the <a href=\"https:\/\/picockpit.com\/raspberry-pi\/picockpit-pricing\/\">Free Plan<\/a>, you&#8217;ll receive 30 minutes across all cameras. With the <a href=\"https:\/\/picockpit.com\/raspberry-pi\/picockpit-pricing\/\">Pro Plan<\/a>, however, you&#8217;ll receive unlimited streaming across unlimited cameras. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Now you can access the security camera from anywhere. All you need is an internet connection.<\/p>\n\n\n\n<p>If you have any questions, feel free to leave a comment below!<\/p>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-build-a-security-camera-with-a-raspberry-pi%2F&text=How%20to%20Build%20a%20Security%20Camera%20with%20a%20Raspberry%20Pi\" title=\"Share on X\" aria-label=\"Share on X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-build-a-security-camera-with-a-raspberry-pi%2F\" title=\"Share on Facebook\" aria-label=\"Share on Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-build-a-security-camera-with-a-raspberry-pi%2F&text=How%20to%20Build%20a%20Security%20Camera%20with%20a%20Raspberry%20Pi\" title=\"Share on Telegram\" aria-label=\"Share on Telegram\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fhow-to-build-a-security-camera-with-a-raspberry-pi%2F\" title=\"Share on Reddit\" aria-label=\"Share on Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">share<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>Security cameras are important for many businesses. In this article, I will go over how to build a Raspberry Pi security camera to keep your business safe. At the end, you will have a camera with a feed that you can access from anywhere in the world, provided you have an internet connection. And setting&hellip;<\/p>\n","protected":false},"author":2,"featured_media":6974,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,3],"tags":[2126,2317,1826,2315,1975,599,1805,193,486,447,187,456,2311,2309,2316,2318,749,968],"class_list":["post-6973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-picockpit-apps","category-raspberry-pi-how-to","tag-business","tag-footage","tag-industry","tag-live-feed","tag-mipi","tag-monitor","tag-network","tag-picockpit","tag-project","tag-projects","tag-raspberry-pi","tag-raspberry-pi-projects","tag-security-camera","tag-streaming","tag-surveillance","tag-surveillance-system","tag-usb","tag-video"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Build a Security Camera with a Raspberry Pi | PiCockpit<\/title>\n<meta name=\"description\" content=\"In this article, I go over how to build a Raspberry Pi security camera to keep your business safe and secure.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Build a Security Camera with a Raspberry Pi | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"In this article, I go over how to build a Raspberry Pi security camera to keep your business safe and secure.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-11T09:36:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-11T13:30:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"raspi berry\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"raspi berry\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/\"},\"author\":{\"name\":\"raspi berry\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\"},\"headline\":\"How to Build a Security Camera with a Raspberry Pi\",\"datePublished\":\"2024-03-11T09:36:29+00:00\",\"dateModified\":\"2024-03-11T13:30:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/\"},\"wordCount\":867,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/A-Raspberry-Pi-Security-Camera.png\",\"keywords\":[\"Business\",\"footage\",\"Industry\",\"live feed\",\"MIPI\",\"monitor\",\"Network\",\"picockpit\",\"project\",\"Projects\",\"Raspberry Pi\",\"Raspberry Pi projects\",\"security camera\",\"streaming\",\"surveillance\",\"surveillance system\",\"usb\",\"video\"],\"articleSection\":[\"PiCockpit Apps\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/\",\"name\":\"How to Build a Security Camera with a Raspberry Pi | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/A-Raspberry-Pi-Security-Camera.png\",\"datePublished\":\"2024-03-11T09:36:29+00:00\",\"dateModified\":\"2024-03-11T13:30:35+00:00\",\"description\":\"In this article, I go over how to build a Raspberry Pi security camera to keep your business safe and secure.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/A-Raspberry-Pi-Security-Camera.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/A-Raspberry-Pi-Security-Camera.png\",\"width\":1200,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/how-to-build-a-security-camera-with-a-raspberry-pi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/raspberry-pi-how-to\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Build a Security Camera with a Raspberry Pi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\",\"name\":\"raspi berry\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"caption\":\"raspi berry\"},\"description\":\"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)\",\"sameAs\":[\"https:\\\/\\\/picockpit.com\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/author\\\/raspi-berry\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Build a Security Camera with a Raspberry Pi | PiCockpit","description":"In this article, I go over how to build a Raspberry Pi security camera to keep your business safe and secure.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/","og_locale":"en_US","og_type":"article","og_title":"How to Build a Security Camera with a Raspberry Pi | PiCockpit","og_description":"In this article, I go over how to build a Raspberry Pi security camera to keep your business safe and secure.","og_url":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2024-03-11T09:36:29+00:00","article_modified_time":"2024-03-11T13:30:35+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera.png","type":"image\/png"}],"author":"raspi berry","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"Written by":"raspi berry","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/"},"author":{"name":"raspi berry","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee"},"headline":"How to Build a Security Camera with a Raspberry Pi","datePublished":"2024-03-11T09:36:29+00:00","dateModified":"2024-03-11T13:30:35+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/"},"wordCount":867,"commentCount":4,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera.png","keywords":["Business","footage","Industry","live feed","MIPI","monitor","Network","picockpit","project","Projects","Raspberry Pi","Raspberry Pi projects","security camera","streaming","surveillance","surveillance system","usb","video"],"articleSection":["PiCockpit Apps","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/","url":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/","name":"How to Build a Security Camera with a Raspberry Pi | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera.png","datePublished":"2024-03-11T09:36:29+00:00","dateModified":"2024-03-11T13:30:35+00:00","description":"In this article, I go over how to build a Raspberry Pi security camera to keep your business safe and secure.","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2024\/03\/A-Raspberry-Pi-Security-Camera.png","width":1200,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/how-to-build-a-security-camera-with-a-raspberry-pi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Tutorials","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/raspberry-pi-how-to\/"},{"@type":"ListItem","position":3,"name":"How to Build a Security Camera with a Raspberry Pi"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"PiCockpit","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee","name":"raspi berry","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","caption":"raspi berry"},"description":"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)","sameAs":["https:\/\/picockpit.com"],"url":"https:\/\/picockpit.com\/raspberry-pi\/author\/raspi-berry\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/6973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/comments?post=6973"}],"version-history":[{"count":13,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/6973\/revisions"}],"predecessor-version":[{"id":6999,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/6973\/revisions\/6999"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/media\/6974"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/media?parent=6973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/categories?post=6973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/tags?post=6973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}