this repo will be archieved, as there is a better, new one
Autocam is a Python script designed for Raspberry Pi and similar Linux-based mini computers. Its main purpose is to automatically take pictures using a connected camera every 30 minutes. The captured images >can be saved to different locations, such as a server, the device's internal storage, or an external USB device.
To achieve this functionality, Autocam utilizes the fswebcam command-line tool, which allows for efficient image capture. The script provides a configuration file called config.json, where users can >easily customize various settings according to their preferences. For example, users can specify the desired video device (e.g., "video0" or "video1") and choose where the captured images should be stored.
By using Autocam, users can effortlessly automate the process of capturing images on their Raspberry Pi or similar devices. It proves to be a convenient solution for applications like surveillance, time-lapse photography, or monitoring systems.
You might need to run the install command multiple times after restarting
To install Autocam, run the suited command:
sudo wget https://raw.githubusercontent.com/Erfinden/Autocam/main/simplesetup.sh -O /usr/local/simplesetup.sh && sudo bash /usr/local/simplesetup.sh
sudo wget https://raw.githubusercontent.com/Erfinden/Autocam/main/setup.sh -O /home/setup.sh && sudo sed -i 's/#domain-name=/domain-name=/g' /etc/avahi/avahi-daemon.conf && sudo sed -i 's/^domain-name=.*/domain-name=local/g' /etc/avahi/avahi-daemon.conf && sudo chmod +x /home/setup.sh && sudo /home/setup.sh
- Connect the camera to the Raspberry Pi.
- Connect a USB drive to the Raspberry Pi. (Optional)
- connect to autocam.local in your local network to access the site
- Upload Pictures to cloud:
-update the server ip:sudo nano /var/www/html/config.json
-you can also update the key in the config file
- Camera conneced to camera port or usb port
- A Setup Minicomputer with Linux, like Raspbian Lite or Armbian: Raspberry Pi / Banana Pi / ...
- USB drive (optional)
- Internet
- Lan with Internet
- Setup Wifi:
-for Raspberry: in advanced options in the raspberry pi imager. / sudo raspi-config > Network Options > Wifi
-for Armbian and other simmalar Linux distributionens: while installation process
- If the folder
images
doesn't exist on the USB drive or inconfig[img_dir]
, the script will create it automatically. - If you encounter a permission error when running the script, make sure you have the necessary permissions to access the camera and USB drive.