Files
old-tfm/controller/README.md
2016-10-08 18:48:19 +02:00

41 lines
1.1 KiB
Markdown

# Tfm Controller - little thingy that reads sensors, runs motors and communicates with the cloud
## Installation
1. Go to every subdirectory in drivers directory and follow instructions about installation of drivers
2. edit controller/config/__init__.py and set your controller ID to unique number
3. configure cron to run controller.py every 15 minutes as a superuser:
```
crontab -e -u root
#enter these lines
*/5 * * * * cd /home/pi/projects/tfm/controller && sh activity.sh
*/30 * * * * /usr/bin/python /home/pi/projects/tfm/controller/network_check.py
*/1 * * * * /usr/bin/python /home/pi/projects/tfm/controller/camera_capture.py
*/1 * * * * /usr/bin/python /home/pi/projects/tfm/controller/camera_send.py
```
4. add following lines at the end of /etc/rc.local
```
python /home/pi/projects/tfm/controller/lockdown.py
python /home/pi/projects/tfm/controller/dweet.py
```
5. create directory
```
mkdir -p /mnt/zoblakdata
```
6. add following line to /etc/fstab for ramdisk
```
tmpfs /mnt/zoblakdata tmpfs nodev,nosuid,size=100M 0 0
```
7. install packages
```
sudo apt-get update
sudo apt-get install libav-tools
```