Merge branch 'develop' into issue/1
This commit is contained in:
commit
91fa60851d
@ -3,9 +3,9 @@ datapath: "/data/SDS/" # SC3 Datapath
|
|||||||
networks: ["1Y", "HA"] # select networks, list or str
|
networks: ["1Y", "HA"] # select networks, list or str
|
||||||
stations: "*" # select stations, list or str
|
stations: "*" # select stations, list or str
|
||||||
locations: "*" # select locations, list or str
|
locations: "*" # select locations, list or str
|
||||||
channels: ["EX1", "EX2", "EX3", "VEI", "LCQ"] # Specify SOH channels, currently supported EX[1-3], VEI, LCQ
|
channels: ["EX1", "EX2", "EX3", "VEI", "LCQ"] # Specify SOH channels, currently supported EX[1-3], VEI and LCQ
|
||||||
stations_blacklist: ["TEST", "EREA"]
|
stations_blacklist: ["TEST", "EREA"] # exclude these stations
|
||||||
networks_blacklist: []
|
networks_blacklist: [] # exclude these networks
|
||||||
interval: 60 # Perform checks every x seconds
|
interval: 60 # Perform checks every x seconds
|
||||||
n_track: 300 # wait n_track * intervals before performing an action (i.e. send mail/end highlight status)
|
n_track: 300 # wait n_track * intervals before performing an action (i.e. send mail/end highlight status)
|
||||||
timespan: 7 # Check data of the recent x days
|
timespan: 7 # Check data of the recent x days
|
||||||
@ -60,6 +60,8 @@ EMAIL:
|
|||||||
mailserver: "localhost"
|
mailserver: "localhost"
|
||||||
addresses: ["marcel.paffrath@rub.de", "kasper.fischer@rub.de"] # list of mail addresses for info mails
|
addresses: ["marcel.paffrath@rub.de", "kasper.fischer@rub.de"] # list of mail addresses for info mails
|
||||||
sender: "webmaster@geophysik.ruhr-uni-bochum.de" # mail sender
|
sender: "webmaster@geophysik.ruhr-uni-bochum.de" # mail sender
|
||||||
|
stations_blacklist: ['GR33'] # do not send emails for specific stations
|
||||||
|
networks_blacklist: [] # do not send emails for specific network
|
||||||
|
|
||||||
# names for plotting of the above defined parameter "channels" in the same order
|
# names for plotting of the above defined parameter "channels" in the same order
|
||||||
channel_names: ["Clock Quality (%)", "Temperature (°C)", "230V/12V Status (V)", "Router/Charger State (V)", "Logger Voltage (V)"] # names for plotting (optional)
|
channel_names: ["Clock Quality (%)", "Temperature (°C)", "230V/12V Status (V)", "Router/Charger State (V)", "Logger Voltage (V)"] # names for plotting (optional)
|
||||||
|
@ -6,7 +6,7 @@ ulimit -s 8192
|
|||||||
#$ -cwd
|
#$ -cwd
|
||||||
#$ -pe smp 1
|
#$ -pe smp 1
|
||||||
#$ -N survBot_bg
|
#$ -N survBot_bg
|
||||||
##$ -l os=*stretch
|
#$ -l os=*stretch
|
||||||
|
|
||||||
source /opt/anaconda3/etc/profile.d/conda.sh
|
source /opt/anaconda3/etc/profile.d/conda.sh
|
||||||
conda activate py37
|
conda activate py37
|
||||||
|
14
survBot.py
14
survBot.py
@ -581,11 +581,25 @@ class StationQC(object):
|
|||||||
if self.verbosity:
|
if self.verbosity:
|
||||||
print('Mail functionality disabled. Return')
|
print('Mail functionality disabled. Return')
|
||||||
return
|
return
|
||||||
|
|
||||||
mail_params = self.parameters.get('EMAIL')
|
mail_params = self.parameters.get('EMAIL')
|
||||||
if not mail_params:
|
if not mail_params:
|
||||||
if self.verbosity:
|
if self.verbosity:
|
||||||
print('parameter "EMAIL" not set in parameter file. Return')
|
print('parameter "EMAIL" not set in parameter file. Return')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
stations_blacklist = mail_params.get('stations_blacklist')
|
||||||
|
if stations_blacklist and self.station in stations_blacklist:
|
||||||
|
if self.verbosity:
|
||||||
|
print(f'Station {self.station} listed in blacklist. Return')
|
||||||
|
return
|
||||||
|
|
||||||
|
networks_blacklist = mail_params.get('networks_blacklist')
|
||||||
|
if networks_blacklist and self.network in networks_blacklist:
|
||||||
|
if self.verbosity:
|
||||||
|
print(f'Station {self.station} of network {self.network} listed in blacklist. Return')
|
||||||
|
return
|
||||||
|
|
||||||
sender = mail_params.get('sender')
|
sender = mail_params.get('sender')
|
||||||
addresses = mail_params.get('addresses')
|
addresses = mail_params.get('addresses')
|
||||||
server = mail_params.get('mailserver')
|
server = mail_params.get('mailserver')
|
||||||
|
Loading…
Reference in New Issue
Block a user