Included in this package is a python 3 program that runs a Pi camera in conjunction with a PIR motion sensor. The picture will be saved to a local NAS run by a samba server.
In order to run the package there are a few setup steps needed
If a NAS storage sever is desired I recommend the samaba server to store content on and retrive. To use the samaba server a Linux computer or Pi will have to be used to host it. As all the commands and code is used to set-up and save to a samba server, it is require to have these tools installed Samaba, follow this link to see how to install the samaba sever.
To run the package all you need is the included files unless you would like a NAS storage. To run the default package just follow these steps.
- Download the program as a zip
- Extract to desired location
- Open a terminal
- Navigate to the PiMotionCamera folder
- Navigate to the PiCameraServer
- run sudo ./connect_server.sh
- Navigate back to the PiMotionCamera folder by entering in cd ..
- use python3 ./config_parser.py in the terminal
- use python3 ./PiMotionCamera.py
Following the above sets should allow the camera to start functioning and start taking pictures if motion is detected by the PIR sensor.
If the camera fails to take pictures ensure that everything is plugged in correctly and that the camera is enable in the configuration menu for the pi.
To connect to the Samba server you will need the following packages- sambas
- samba-common-bin
- samba-client
The above will allow you to work witht eh samba server