-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First rev of updated coded. Used config.py to set code variables
- Loading branch information
Showing
8 changed files
with
170 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0 | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from collections import defaultdict | ||
|
||
config = defaultdict() | ||
|
||
#Directory where git code is present | ||
config['home_alarm_git_dir'] = "/home/pi/trush_workdir/scripts/homealarm_git" | ||
|
||
#Dir where 433 MHz scripts are installed | ||
config['rf433_dir'] = "/home/pi/trush_workdir/rf_xmit/433Utils/RPi_utils" | ||
|
||
#Keypad arm/disarm code | ||
config['keypad_code'] = 123 | ||
|
||
#Webserer port | ||
config['port'] = 8085 | ||
|
||
#Webserver username | ||
config['browser_username'] = "anyusername" | ||
|
||
#Webserver password | ||
config['browser_passwd'] = "anypassword" | ||
|
||
#RF code for first switch outlet | ||
config['switch1'] = "1398209" | ||
|
||
#RF code for second switch outlet | ||
config['switch2'] = "1398065" | ||
|
||
#RF code for third switch outlet | ||
config['switch3'] = "1398029" | ||
|
||
#RF code for enableing the RF Siren | ||
config['siren_enable'] = "1568816" | ||
|
||
#RF code for disabling the RF Siren | ||
config['siren_disable'] = "1568771" | ||
|
||
#Send gtalk message using a script | ||
config['send_gtalk_message'] = "/home/pi/trush_workdir/raspi_gtalk_robot/tkgtalk.py" | ||
config['enable_gtalk_message'] = 0 | ||
|
||
#Enable webcam motion tracking | ||
config['webcam_motion_enable']=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
#!/bin/bash | ||
|
||
############ Parameters ############ | ||
user="pi" | ||
mittente="<from_email>@gmail.com" | ||
dest="<to_email>@gmail.com" | ||
smtp="smtp.gmail.com:587" | ||
username="<from_email>@gmail.com" | ||
pass="<my password>" | ||
dest="[email protected]" | ||
############ End Parameters ############ | ||
|
||
|
||
subject="Home Alarm Motion Detect!" | ||
message="WARNING! Motion detected on home alarm system" | ||
sendEmail -f $mittente -t $dest -u $subject -s $smtp -xu $username -xp $pass -m $message | ||
echo $message | mail -s "$subject" $dest | ||
exit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |