@ -9,6 +9,7 @@ send an email if the system is not available (network down or power failure).
@@ -9,6 +9,7 @@ send an email if the system is not available (network down or power failure).
importjson
importrequests
importsys
fromdatetimeimportdatetime
@ -17,19 +18,28 @@ from . import pysema
@@ -17,19 +18,28 @@ from . import pysema
# alert emails recipients, subject and message
EMAIL_RECIPIENTS=['frey@imtek.de']
EMAIL_RECIPIENTS=[
'brandstetter@imtek.uni-freiburg.de',
'ute.riede@imtek.uni-freiburg.de',
'samora.okujeni@imtek.uni-freiburg.de',
'felix.juenger@imtek.de',
'enderle@imtek.de',
'huegle@imtek.de',
'huber@imtek.de',
'frey@imtek.de'
]
EMAIL_SUBJECT='[S2 Scullery]: Deep Freezer Alert System Is Offline'
EMAIL_BODY=[
'The -80 alert system in the S2 scullery seems to be offline.',
'Maybe the network is down, there is a power outage or the system crashed.',
'',
'>>> Please have a look as soon as possible. <<<',
'==> Please have a look as soon as possible. <==',