https://github.com/bcambl/picam-playbook
Automated installation and configuration of raspberrypi motion cameras
https://github.com/bcambl/picam-playbook
Last synced: 4 months ago
JSON representation
Automated installation and configuration of raspberrypi motion cameras
- Host: GitHub
- URL: https://github.com/bcambl/picam-playbook
- Owner: bcambl
- Created: 2017-10-28T02:19:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-05T01:15:03.000Z (over 8 years ago)
- Last Synced: 2025-02-27T11:28:46.476Z (over 1 year ago)
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pi Motion Playbook
Automate the installation and configuration of raspberrypi `motion` cameras
### Ensure the following set via `raspi-config`
- camera enabled
- video memory split to `128` MB
### Requirements
Ansible must be installed to use ansible playbooks
```
sudo easy_install pip
sudo pip install ansible
```
###### Note: ansible >= 2.4
---
### Instructions
1. Edit the `hosts` file with the IP address of each raspberry pi
2. Ensure you have an ssh key setup to each raspberry pi
From workstation terminal, do the following for each raspberry pi
ie:
```
ssh-copy-id pi@192.168.X.X
```
The above command will prompt for your password
3. Install:
```
ansible-playbook -i hosts picam.yml --tags install
```
### Modifying motion settings
Modify motion settings in `settings.yml` then execute
```
ansible-playbook -i hosts picam.yml --tags configure
```
The `motion` service will be restarted after the configurations have been updated.
### Uninstall
```
ansible-playbook -i hosts picam.yml --tags uninstall
```