Files
old-tfm/controller
..
2016-10-08 16:55:15 +02:00
2016-10-08 16:59:22 +02:00
2016-10-08 18:26:11 +02:00
2016-10-08 16:51:12 +02:00
2016-06-08 10:03:17 +02:00
2016-06-08 08:24:43 +02:00
2016-06-08 10:34:05 +02:00
2016-10-08 21:23:22 +02:00
2016-10-08 16:39:14 +02:00
2016-01-24 09:15:14 +01:00
2016-10-08 16:55:15 +02:00

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    
  1. 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
  1. create directory
mkdir -p /mnt/zoblakdata
  1. add following line to /etc/fstab for ramdisk
tmpfs   /mnt/zoblakdata        tmpfs   nodev,nosuid,size=100M          0  0
  1. install packages
sudo apt-get update
sudo apt-get install libav-tools
  1. set timezone
sudo cp /usr/share/zoneinfo/Europe/Sarajevo /etc/localtime
sudo ntpd -gq