Tfm Controller - little thingy that reads sensors, runs motors and communicates with the cloud
Installation
- Go to every subdirectory in drivers directory and follow instructions about installation of drivers
- edit controller/config/init.py and set your controller ID to unique number
- 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
- 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