Compare commits

..

No commits in common. "ac9f83d8561a5275871b96d9ca34e4b27463d4bc" and "69412dc5fe6ba733315790413e4883cf37e0b147" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -4,6 +4,7 @@ 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, LCQ
channel_names: ["Clock Quality (%)", "Temperature (°C)", "230V/12V Status (V)", "Router/Charger State (V)", "Logger Voltage (V)"] # names for plotting (optional)
stations_blacklist: ["TEST", "EREA"] stations_blacklist: ["TEST", "EREA"]
networks_blacklist: [] networks_blacklist: []
interval: 60 # Perform checks every x seconds interval: 60 # Perform checks every x seconds
@ -62,10 +63,9 @@ EMAIL:
sender: "webmaster@geophysik.ruhr-uni-bochum.de" # mail sender sender: "webmaster@geophysik.ruhr-uni-bochum.de" # mail sender
# 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: ["Temperature (°C)", "230V/12V Status (V)", "Router/Charger State (V)", "Logger Voltage (V)"]
# specify y-ticks (and ylims) giving, (ymin, ymax, step) for each of the above channels (0: default) # specify y-ticks (and ylims) giving, (ymin, ymax, step) for each of the above channels (0: default)
CHANNEL_TICKS: CHANNEL_TICKS:
- [0, 100, 20]
- [-10, 50, 10] - [-10, 50, 10]
- [1, 5, 1] - [1, 5, 1]
- [1, 5, 1] - [1, 5, 1]

View File

@ -157,7 +157,7 @@ class SurveillanceBot(object):
if filename in self.filenames_read: if filename in self.filenames_read:
continue continue
try: try:
st_new = read(filename, dtype=float) st_new = read(filename)
# add file to read filenames to prevent re-reading in case it is not the current day (or end of # add file to read filenames to prevent re-reading in case it is not the current day (or end of
# previous day) # previous day)
if not filename.endswith(f'{current_day:03}') and not ( if not filename.endswith(f'{current_day:03}') and not (
@ -167,7 +167,7 @@ class SurveillanceBot(object):
print(f'Could not read file {filename}:', e) print(f'Could not read file {filename}:', e)
continue continue
self.dataStream += st_new self.dataStream += st_new
self.dataStream.merge(fill_value=np.nan) self.dataStream.merge()
# organise data in dictionary with key for each station # organise data in dictionary with key for each station
for trace in self.dataStream: for trace in self.dataStream: