network check script
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## 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
|
||||
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:
|
||||
|
||||
```
|
||||
@@ -12,3 +12,10 @@ crontab -e -u root
|
||||
*/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
|
||||
```
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user