Need to keep an eye on the Driveway but also finish work on the computer?
Ok so my house layout makes it imposable to hear the bus pull in. My office is on the 2nd floor, on the opposite side of the driveway. Since my son is disabled I have to help him off the bus. The bus shows up between 3:45 and 5:15. I have to work so I can’t just sit and wait looking out the window. Since I have an extra pi or 2 seating around I thought this would be a good way to put 1 to work. So let’s get started.
Here is what you will need.
You won’t need much. I put together a list with links so you can get everything you need.
· SD card
· Motion
. TXT file
Ok see small list nothing fancy. After we are done I will show you how to upgrade to an IR camera and battery.
Putting everything together.
Now that you have everything you need, it’s time to install the software. You can download Motion Eye at the link above. Make sure you download the correct one for your pi. I downloaded the ”Raspberry PI (A, B, A+, B+, Compute Module, Zero and Zero W models). Just click the latest version link at the time of writing it was 2020060. After the download is finished, use Noobs to install it on the SD card. If you do not have noobs installed you can download it here. https://www.raspberrypi.com/software/ . Under OS select custom image, then MotionEye.img. Now select the SD card and click install. With that installing now is a good time to assemble the pi. Slide the black clips up and insert the ribbon with the metal facing the board. Do the same on the camera. With the ribbon fully seated press the black clip back down to lock it in place. Check to make sure the ribbon is straight and square with the clip.
Set up the software.
Once the install is finished Motion Eye OS is now installed. Now you will need to create a txt file with your country code, ssid, and password. Create a new txt file names wpa_supplicant and copy/paste the following in and change the ssid and psk to your wifi name and password.
country=US
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="NetworkName"
psk="Password"
}
After saving the updates drag n drop in into the root folder on the sd card. If you are on windows this might throw an error that the drive needs formatted. If that happens remove the card and reinsert it.
Connect to the Camera.
Almost finished! With everything set up now it’s time to plug it in and connect to it. To connect to the camera you will need the IP address of the pi. The easiest way is to check your router for the Pi and get the IP from it. The second option is to use the command prompt. Type ipconfig and press enter. Then enter arp –a this will return a list of IP addresses. After you have your list turn the pi zero on and wait a few minutes for it to fully set up and run arp –a again. You should now see a new IP Address on the list. Now that you have the IP Address, open a browser and put the IP Address into the
address bar. MotionEye will ask for a log in and password. Default it is set to Username: admin Password “blank”. So enter admin and hit enter. Now you should see your camera feed in the browser. One important note is if you change the Username or Password REMEMBER IT. There is no way to reset the password. You will have to reinstall MotionEye and redo the json file to reset the password.
Conclusion.
Congrats you now have your own wifi camera you use how you please. Now that its finished you could do some upgrades. Everything on my camera is simple plug in upgrades. No change to software was needed. The IR camera was a great add-on for keeping track of kids sneaking snacks in the middle of the night, and the battery pack means I can set up the camera anywhere without having a cord hanging from it.
I hope you enjoyed this and let me know what you end up with. That’s a great thing about using a Pi, you can add almost anything and make it fit your needs.
コメント