

sudo rm -f pep.zip

sudo mkdir -p pep_backup

sudo mv alarm.py pep_backup 2 >/ dev / null

sudo mv restarter.py pep_backup 2 >/ dev / null

sudo mv alarmfunctionsr.py pep_backup 2 >/ dev / null

sudo mv dht22.py pep_backup 2 >/ dev / null

sudo mv dallas.py pep_backup 2 >/ dev / null

sudo mv rfsensor.py pep_backup 2 >/ dev / null

sudo mv globals.py pep_backup 2 >/ dev / null

sudo mv webcam.py pep_backup 2 >/ dev / null



sudo mv lcd_hd44780.py pep_backup 2 >/ dev / null

sudo mv lcd_nokia.py pep_backup 2 >/ dev / null

sudo mv lcdtest.py pep_backup 2 >/ dev / null

sudo mv publish.py pep_backup 2 >/ dev / null

sudo mv subscribe.py pep_backup 2 >/ dev / null



sudo wget www.privateeyepi.com / downloads / pep.zip

unzip -o pep.zip

sudo chmod 777 alarm.py

sudo chmod 777 dallas.py

sudo chmod 777 globals.py

sudo chmod 777 alarmfunctionsr.py

sudo chmod 777 dht22.py

sudo chmod 777 restarter.py

sudo chmod 777 pep_backup

sudo chmod 777 webcam.py



sudo chmod 777 lcd_hd44780.py

sudo chmod 777 lcd_nokia.py

sudo chmod 777 lcdtest.py

sudo chmod 777 publish.py

sudo chmod 777 subscribe.py



sudo apt-get install python-serial



We are secure. We used encryption!

I spy with my little eye ... uff, why am I suddenly blind?

Look mum no hands!

Inoutput. What?!



def ProcessActions ( ActionList ) :

FalseInd = True

for x in ActionList:

if x [ 0 ] == "/EMAIL" :

SendEmailAlertFromRule ( x [ 1 ] , x [ 2 ] , 0 )

x. remove

if x [ 0 ] == "/SEMAIL" :

SendEmailAlert ( x [ 1 ] )

x. remove

if x [ 0 ] == "/CHIME" :

StartChimeThread ( )

x. remove

if x [ 0 ] == "/rn588" :

exit ( )

if x [ 0 ] == "/FALSE" :

FalseInd = False

if x [ 0 ] == "/SIREN" :

StartSirenThread ( x [ 2 ] )

FalseInd = 3

x. remove

if x [ 0 ] == "/PHOTO" :

SendEmailAlertFromRule ( x [ 1 ] , x [ 2 ] , 1 )

x. remove

if x [ 0 ] == "/RELAYON" :

SwitchRelay ( 1 , x [ 2 ] )

x. remove

if x [ 0 ] == "/RELAYOFF" :

SwitchRelay ( 0 , x [ 2 ] )

x. remove

if x [ 0 ] == "/WRELAYON" :

SwitchRFRelay ( 1 )

x. remove

if x [ 0 ] == "/WRELAYOFF" :

SwitchRFRelay ( 0 )

x. remove

return ( FalseInd )





[ ... ]

def PollGPIO ( ) :

# Routine to continuously poll the IO ports on the Raspberry Pi

global ciruit

global GPIOList

global numgpio

global GPIO

global AlarmActioned

[ ... ]



def NotifyHostEvent ( z , status ) :

global GPIOList

global Locations

[ ... ]



def PollRoutine ( ) :

global start_time

global elapsed_time

[ ... ]

