diff options
author | coderick14 | 2017-05-23 17:34:13 +0530 |
---|---|---|
committer | coderick14 | 2017-05-23 17:34:13 +0530 |
commit | 1608f74e480974b709771a2c827834c973ce04f5 (patch) | |
tree | 2ceda57dabfa3df045fc943f71fbc914c341e068 /sbhs_server/settings.py | |
parent | c33417821258d583e24e91b7cc6933bb66994ec0 (diff) | |
download | SBHS-2018-Rpi-1608f74e480974b709771a2c827834c973ce04f5.tar.gz SBHS-2018-Rpi-1608f74e480974b709771a2c827834c973ce04f5.tar.bz2 SBHS-2018-Rpi-1608f74e480974b709771a2c827834c973ce04f5.zip |
Add script for server monitoring
Diffstat (limited to 'sbhs_server/settings.py')
-rw-r--r-- | sbhs_server/settings.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbhs_server/settings.py b/sbhs_server/settings.py index b7ec8b7..15dc8ae 100644 --- a/sbhs_server/settings.py +++ b/sbhs_server/settings.py @@ -136,6 +136,7 @@ EMAIL_HOST = 'smtp.gmail.com' #'smtp-auth.iitb.ac.in' EMAIL_PORT = 587 #25 EMAIL_HOST_USER = credentials.EMAIL_HOST_USER EMAIL_HOST_PASSWORD = credentials.EMAIL_HOST_PASSWORD +ADMIN_EMAIL=credentials.ADMIN_EMAIL # Static files (CSS, JavaScript, Images) @@ -251,13 +252,13 @@ with open(os.path.join(BASE_DIR, 'map_machine_ids.txt')) as f: for line in f: try: data = line.split("=") - MID_PORT_MAP[int(data[0])]=data[1].strip() brd = sbhs.Sbhs() b = brd.connect(int(data[0])) assert b == True - key = int(brd.getMachineId()) + key = int(brd.getMachineId()) assert key > 0 brd.reset_board() + MID_PORT_MAP[key]=data[1].strip() boards[str(key)] = {"board": brd, "experiment_id": None} except: pass |