Files
old-tfm/controller
visocicaguy 46af39c7af Update README.md
changed the crontab info in means of changing
*/15 * * * * /usr/bin/python /home/pi/projects/tfm/controller/sensors.py "Automatski, Senad Uka" 120
*/1 * * * * /usr/bin/python /home/pi/projects/tfm/controller/sync_state.py "Automatski, Senad Uka" 120
to 
*/5 * * * * cd /home/pi/projects/tfm/controller && sh activity.sh
2016-06-08 13:18:08 +02:00
..
2016-06-08 13:12:36 +02:00
2015-12-27 07:12:51 +01:00
2016-06-08 10:34:05 +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-06-08 13:18:08 +02:00
2016-06-02 23:13:42 +02:00
2016-01-24 09:15:14 +01: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. 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