-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
26 lines (13 loc) · 916 Bytes
/
Copy pathREADME
File metadata and controls
26 lines (13 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
lo script richiede il pacchetto python RPi.GPIO che fa parte della distribuzione raspbian, apache e php per apache:
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
inoltre per inviare la foto e visualizzare la foto nella pagina web occorre che sia in esecuzione il daemon di motion
richiede ssmtp che si puo' installare con:
sudo apt-get install ssmtp
per installare le pagine web eseguire:
sudo ./install.sh <motion control port>
con questo comando verra' creata, se non esiste gia', la directory "/var/apache" appartenente al gruppo "www-data"
al quale verra' dato privilegio di scrittura
aggiungere ai cronjob di root con il comando "sudo crontab -e" la seguente linea:
@reboot /home/pi/RaspberryPiPresence/scripts/presence.py "'<email-address1>,<email-address2>,...'" <motion control port>
Ogni allarme viene registrato nel file /var/[html]/www/presenze/alarm.list