create account

Raspberry Pi Security Camera by makerhacks

View this thread on: hive.blogpeakd.comecency.com
· @makerhacks ·
$6.18
Raspberry Pi Security Camera
<p>Have you been wanting a wifi camera? Maybe for some added security, or perhaps to monitor the kids/pets/roommate?</p>



<p>Turn your Raspberry Pi into an internet camera!</p>







<p>Raspberry Pi projects abound, but this is a circumstance when I knew the solution for a while but only just got around to implementing it. It turns out it is really easy.</p>



<p>Many people use this set up rather than expensive internet security cameras. Rather than worrying about security, I wanted to know if it was worthwhile going to the front door when the dog barks!</p>



<p>Benji Dog is going deaf, so he tends to bark even if there is nobody there. If there really is a person at the door, I want to know if it is a parcel, girl guide cookies,Β or some other good reason to answer, or if I should ignore it because it is a salesperson or something equally annoying.</p>



<p>With Halloween just around the corner I thought it would be fun to use the motion detection and Python to trigger some scary stuff too ...</p>



<figure class="wp-block-image"><img src="https://makerhacks.com/wp-content/uploads/2018/10/Pasted_Image_10_9_18__5_29_PM.jpg" alt="" class="wp-image-115111" /><br/></figure>



<h3>What you need</h3>



<ol>
<li><strong>Raspberry Pi</strong> - I am using a Raspberry Pi 3 for the built-in wifi and because it has 4 USB ports.</li>
<li><strong>Camera</strong> - You can use USB cameras or you can use the official Pi camera. I went with the official Pi camera alone for now.</li>
<li><strong>Power</strong> - Supply your Pi with 5v, 2amps.</li>
<li><strong>Optional</strong>Β <strong>Extras</strong> - Due to where and how the front door is located, I am using an extra long Pi camera ribbon cable from Adafruit, and a <em>Zero View</em> camera holder that suctions to the glass. Using my 3d printers and <a href="https://makerhacks.com/glowforge-review/">Glowforge</a> I will be creating a more permanent solution, check back for that!</li>
</ol>



<h3>Installation</h3>



<p>The magic is all performed by <a href="https://github.com/ccrisan/motioneyeos">MotionEyeOs</a>. You can also install onto an existing operating system installation, but the disk image does all the heavy lifting for you.</p>



<p>While there are, of course, installation <a href="https://github.com/ccrisan/motioneyeos" target="_blank">instructions</a>, I simply downloaded the operating system <a href="https://github.com/ccrisan/motioneyeos/releases" target="_blank">image</a> and burned it as I usually do
<g class="gr_ gr_4 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" id="4" data-gr-id="4">using</g> <a href="https://etcher.io/" target="_blank">Etcher</a>.Β </p>



<figure class="wp-block-image"><img src="https://makerhacks.com/wp-content/uploads/2018/10/Etcher.png" alt="" class="wp-image-115118" /><br/>
<figcaption>Etcher.io</figcaption>
</figure>



<p>If you are new to using Etcher to make Raspberry Pi boot disks, follow the instructions in my <a href="https://youtu.be/C90seIxg1Eo?t=439" target="_blank">Octopi tutorial</a> and simply use the MotionEyeOs image file instead.</p>



<p>For
<g class="gr_ gr_3 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="3" data-gr-id="3">network</g>, I plugged in an ethernet cable, but there is an <a href="https://github.com/ccrisan/motioneyeos/wiki/Wifi-Preconfiguration" target="_blank">option to set up wifi before booting</a>, or you can use a screen and keyboard to set it up too.</p>



<p>A really cool feature is you can set up the Pi as its own access point and access the camera that way.</p>



<p>Once your Pi has booted and is on the network, you can point your browser at the IP address. The default user is Admin with no password - you will want to change that as soon as you can!</p>



<p>On the web UI in the top left is a burger menu with all the options. You can expand the options to change the user passwords, set your timezone, and so on.</p>



<figure class="wp-block-image aligncenter"><img src="https://makerhacks.com/wp-content/uploads/2018/10/motioncam.png" alt="" class="wp-image-115117" /><br/>
<figcaption>Burger Menu</figcaption>
</figure>



<h3>Motion Detection</h3>



<p>As mentioned earlier, there is built-in motion detection. You can get it to send you an email, but also there are options for webhooks and launching commands.</p>



<p>The easiest option after email is to use IFTTT.</p>



<p>Enter the URL to IFTTT in the form of the following ...</p>



<pre class="wp-block-preformatted">https://maker.ifttt.com/trigger/*event_name*/with/key/*yourkey*</pre>



<p>Swap in your API key that you get from the <a href="https://ifttt.com/maker_webhooks" target="_blank">documentation linked from this page here</a>.</p>



<p>Set up an app to text you, tweet you, or whatever.</p>



<figure class="wp-block-image aligncenter is-resized"><img src="https://makerhacks.com/wp-content/uploads/2018/10/If_Maker_Event__cam___then_Send_me_an_SMS_at_4039929937__update_phone_number__-_IFTTT.png" alt="IFTTT
" class="wp-image-115119" width="365" height="527" /><br/></figure>



<p>Following the <a href="https://github.com/ccrisan/motioneyeos/wiki/Synchronize-with-Google-Drive" target="_blank">instructions here</a> you can set up Google Drive storage.</p>



<h3>Programming Your Own Scripts</h3>



<p>The operating system comes with Python 2 installed, as the web UI is written in Python, and it being Linux you can also use shell scripting, but the OS is not really intended to be used this way so you would be better using webhooks or installing on top of Raspbian.</p>



<p>I will look at this in a future tutorial!</p>



<h3>Accessing Your Camera from the Internet</h3>



<p>Want to keep an eye on your house/pets/guests while you are away?</p>



<p>You will need to <a href="https://makerhacks.com/raspberry-pi-remote-access/" target="_blank">set up your pi for remote access</a>. Follow that previous tutorial to get working over the external web.</p>
 <br /><center><hr/><em>Posted from my blog with <a href='https://wordpress.org/plugins/steempress/'>SteemPress</a> : https://makerhacks.com/raspberry-pi-security-camera/ </em><hr/></center>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authormakerhacks
permlinkraspberrypisecuritycamera-7iolqgxyir
categoryiot
json_metadata{"community":"steempress","app":"steempress/1.4","image":[""],"tags":["iot","making","raspberrypi","steemmakers"],"original_link":"https://makerhacks.com/raspberry-pi-security-camera/"}
created2018-10-10 01:05:39
last_update2018-10-10 01:05:39
depth0
children7
last_payout2018-10-17 01:05:39
cashout_time1969-12-31 23:59:59
total_payout_value4.605 HBD
curator_payout_value1.576 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6,219
author_reputation156,977,359,570,955
root_title"Raspberry Pi Security Camera"
beneficiaries
0.
accountsteempress
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id72,973,992
net_rshares5,036,932,878,579
author_curate_reward""
vote details (30)
@isarmoewe ·
$0.10
Nice project. I shall leave a 100% upvote when my power has restored.

But I'm sad for your dog. How does he handle losing his hearing?
πŸ‘  , ,
properties (23)
authorisarmoewe
permlinkre-makerhacks-raspberrypisecuritycamera-7iolqgxyir-20181010t011255193z
categoryiot
json_metadata{"tags":["iot"],"app":"steemit/0.1"}
created2018-10-10 01:12:54
last_update2018-10-10 01:12:54
depth1
children1
last_payout2018-10-17 01:12:54
cashout_time1969-12-31 23:59:59
total_payout_value0.076 HBD
curator_payout_value0.024 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length135
author_reputation27,164,632,553,667
root_title"Raspberry Pi Security Camera"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id72,974,273
net_rshares72,279,785,626
author_curate_reward""
vote details (3)
@makerhacks ·
He is doing ok, it is certain frequencies he has trouble with but he mostly uses his nose anyway ;)

Cocker spaniels sometimes have trouble with their ears as they get older apparently. He's still a good boy and full of happy pupper love.
properties (22)
authormakerhacks
permlinkre-isarmoewe-re-makerhacks-raspberrypisecuritycamera-7iolqgxyir-20181010t190835130z
categoryiot
json_metadata{"tags":["iot"],"app":"steemit/0.1"}
created2018-10-10 19:08:36
last_update2018-10-10 19:08:36
depth2
children0
last_payout2018-10-17 19:08:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length238
author_reputation156,977,359,570,955
root_title"Raspberry Pi Security Camera"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,027,142
net_rshares0
@theguymasamato ·
$0.10
Do you have any tips/suggestions to use the RaspPi + Cam at night?
Something like a night vison version?
thx
πŸ‘  
properties (23)
authortheguymasamato
permlinkre-makerhacks-raspberrypisecuritycamera-7iolqgxyir-20181010t084743749z
categoryiot
json_metadata{"tags":["iot"],"app":"steemit/0.1"}
created2018-10-10 08:47:45
last_update2018-10-10 08:47:45
depth1
children2
last_payout2018-10-17 08:47:45
cashout_time1969-12-31 23:59:59
total_payout_value0.074 HBD
curator_payout_value0.024 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length108
author_reputation1,163,475,396,254
root_title"Raspberry Pi Security Camera"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id72,994,237
net_rshares69,512,329,934
author_curate_reward""
vote details (1)
@makerhacks ·
I haven't tried it yet but there is this guy, probably what you meant https://www.adafruit.com/product/3100
πŸ‘  
properties (23)
authormakerhacks
permlinkre-theguymasamato-re-makerhacks-raspberrypisecuritycamera-7iolqgxyir-20181010t190539265z
categoryiot
json_metadata{"tags":["iot"],"links":["https://www.adafruit.com/product/3100"],"app":"steemit/0.1"}
created2018-10-10 19:05:39
last_update2018-10-10 19:05:39
depth2
children1
last_payout2018-10-17 19:05:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation156,977,359,570,955
root_title"Raspberry Pi Security Camera"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,027,026
net_rshares2,330,118,434
author_curate_reward""
vote details (1)
@theguymasamato ·
Thx, I will have a look at it.
properties (22)
authortheguymasamato
permlinkre-makerhacks-20181012t15337128z
categoryiot
json_metadata{"tags":["iot"],"app":"esteem/1.1.12-surfer","format":"markdown+html","community":"esteem.app","encrypted":0}
created2018-10-12 13:03:36
last_update2018-10-12 13:03:36
depth3
children0
last_payout2018-10-19 13:03:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length30
author_reputation1,163,475,396,254
root_title"Raspberry Pi Security Camera"
beneficiaries
0.
accountesteemapp
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,145,644
net_rshares0
@viraldrome ·
$0.10
Now you will never miss those girl guide cookies
πŸ‘  
properties (23)
authorviraldrome
permlinkre-makerhacks-raspberrypisecuritycamera-7iolqgxyir-20181010t012025165z
categoryiot
json_metadata{"tags":["iot"],"app":"steemit/0.1"}
created2018-10-10 01:20:27
last_update2018-10-10 01:20:27
depth1
children1
last_payout2018-10-17 01:20:27
cashout_time1969-12-31 23:59:59
total_payout_value0.072 HBD
curator_payout_value0.024 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length48
author_reputation47,002,452,735,957
root_title"Raspberry Pi Security Camera"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id72,974,614
net_rshares68,126,003,897
author_curate_reward""
vote details (1)
@makerhacks ·
$0.03
Which is clearly the priority :D
πŸ‘  
properties (23)
authormakerhacks
permlinkre-viraldrome-re-makerhacks-raspberrypisecuritycamera-7iolqgxyir-20181010t190602906z
categoryiot
json_metadata{"tags":["iot"],"app":"steemit/0.1"}
created2018-10-10 19:06:03
last_update2018-10-10 19:06:03
depth2
children0
last_payout2018-10-17 19:06:03
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.008 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length32
author_reputation156,977,359,570,955
root_title"Raspberry Pi Security Camera"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id73,027,039
net_rshares24,939,083,472
author_curate_reward""
vote details (1)