Files
old-tfm/controller
Senad Uka bffab2bf26 Merge pull request #17 from senaduka/shell_script_to_unify_activities
created activity.sh to unify all activities in a specific order
2016-06-08 11:14:33 +02:00
..
2016-06-02 23:13:42 +02:00
2015-12-27 07:12:51 +01:00
2016-03-06 14:49:26 +01:00
2016-01-24 09:57:03 +01: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
*/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