Documentation Index
Fetch the complete documentation index at: https://benrover-docs.tekbot.io/llms.txt
Use this file to discover all available pages before exploring further.
Configuring the Raspberry Pi with the USB camera
Install motion package
Run the following command:sudo apt-get install motion
Check motion service status
Execute the command:sudo service motion status
Create required directories
If you encounter an error about missing Motion folders, create them:sudo mkdir /var/log/motion
sudo mkdir /var/lib/motion
Verify the folders were created:ls -ld /var/log/motion
ls -ld /var/lib/motion
Set permissions
Grant necessary permissions:sudo chmod -R 777 /var/log/motion
sudo chmod -R 777 /var/lib/motion
Recheck motion service status
Run the command again:sudo service motion status
If you still encounter an “access denied” error, repeat the chmod commands from Step 4. Backup and edit motion configuration
Make a backup of the configuration file:sudo cp /etc/motion/motion.conf /etc/motion/motion.conf.bckp
Edit the configuration file:sudo nano /etc/motion/motion.conf
Start motion service
Start the service and check its status:sudo service motion start
sudo service motion status
Edit motion log (if enabled)
If enabled, edit the motion log:sudo nano ~/.motion/motion.log
Modify the following parameters:
Camera Feed Examples