Creating an IP Camera Monitor using a Raspberry Pi |
I love working with the Raspberry Pi, I never really sank myself into the ins and outs, just 'played' with it. Now I had a project!!!! We had a Harbor Fright (yep) camera setup $125 for a 2 cam setup. Totally Proprietary hardware. Then we started on the Blink Camera system. Again Proprietary! A base setup is a 2 Camera Blink kit. $178 at the time of this article. Raspberry Pi 4 = $90 for the best/newest IP PTZ Camera = $50 this is the one I used(non PTZ $35) So, Yes, $140 and one camera. But Now we have a non-proprietary Standard platform. And I still have to use a Tablet to control it but we will get back to that. Just a little bit about Blink. My WIFI is everywhere!!!!! Just so you know ... TODO: |
1. Setup Your Raspberry Pi Obviously you need a working system. Below are links to what I used. My Clean Pi Operating System Setup Raspberry Pi OS with desktop Configure your OS to boot to the GUI Desktop. |
2. Hardware Used I used an old Raspberry Pi 3b+, Case - iUniker - Because of the fan Memory Card - 32g SanDisk Extreme PRO Camera - Alptop AT-200DW |
3. Installing the Needed Software Open up Terminal and do the usual upkeep sudo apt-get update sudo apt-get -y upgrade Then the Software sudo apt-get install -y motion sudo apt-get install -y unclutter sudo apt-get install -y xdotool unclutter removes the mouse cursor from the screen and sudo apt-get autoremove to clean up the repositories
|
4. Configuring the System Tweaking File Manager Now editing files is much easier Turning Off AutoBlanking sudo raspi-config Using the arrow keys select Display Options Now Setup a Back Door |
5. Configuring Motion Setup Folder For Clips Open Terminal and enter mkdir /home/pi/motion-clips If you are using an external drive here is where you set it up Close Terminal //------------------------------------------------------------------------------------- Open File Manager and open /etc/motion/motion.conf Change daemon off to on now the fun part... Easy First... Find the netcam_userpass and set it as directed Hard part.. Above netcam_userpass is netcam_url My connection string is rtsp://192.168.68.118/11 I found the string parser by google search: Cam Model number Command Line //------------------------------------------------------------------------------------- Change start_motion_daemon=no to yes Save and Close the file Choose Open not Execute Above exit 0 type this echo save and close the editor (I use Geany) reboot //------------------------------------------------------------------------------------- Now you should be able ot open a Browser and type in localhost:8080 to show all cameras, or localhost:8081 for the first camera only |
6. Fine Tuning To Be Continued |
A. Starting Kiosk Mode AutoStart Open up File Manager we will be creating this path /home/pi/.config/lxsession/LXDE-pi You should now see the .config folder in the side pane Open Terminal and enter sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart Enter this @chromium-browser http://localhost:8081 -kiosk press ctrl-x then y then enter enter sudo reboot
B. Stopping Kiosk Mode AutoStart ssh into the raspberry pi - I Use PuTTY log in to the pi and type sudo rm /home/pi/.config/lxsession/LXDE-pi/autostart sudo reboot
|