Commit Graph
67 Commits
Author SHA1 Message Date
kasper 080e73c1db [update] update Dockerfile
- mojor update of Dockerfile
- reverted location of simulate_fail.json file for simulating errors, e.g. to test sending e-mails
2025-03-21 14:22:59 +01:00
kasper 3f07b7bcd0 [minor] update Dockerfile and parameters.yaml
- In the Dockerfile, added a new parameter "-parfile" with value "conf/parameters.yaml" to the CMD command in survBot.py.
- In parameters.yaml, made changes to the EMAIL section:
  - Added comments explaining how to specify mail server and credentials.
  - Added auth_type field with value "SSL".
  - Updated port field to 465 for SSL.
  - Updated user and password fields to read from environment variables or docker secrets.
  - Added comments explaining how to specify mail recipients, sender, and blacklists.
  - Moved location of simulate_fail.json to conf/simulate_fail.json for easier Docker integration
2025-03-21 12:41:50 +01:00
kasper cf12500ec2 [minor] refactor mail server connection code
- Added `connect_to_mail_server` function to handle mail server connection
- Moved code for connecting to the mail server from `StationQC` class to `connect_to_mail_server`
- Updated references to use `connect_to_mail_server` in `StationQC` class
- Created new function `get_credential` to retrieve credentials from Docker secrets or environment variables
2025-03-21 12:36:52 +01:00
kasper 43912135e9 Update email parameters in parameters.yaml and modify SMTP connection in survBot.py
- Update mailserver, port, user, password, and sender in parameters.yaml
- Modify SMTP connection in survBot.py to support starttls connection if server is not "localhost"
- Read password from docker secret or environment variable if set to 'DOCKER' or 'ENV' respectively
2025-03-20 16:11:27 +01:00
kasper f4605b146b [feature] run survBot in Docker container
- version 0.2-docker
- add Dockerfile
- update paramters.yaml to use logo.png
- update stylesheet to reflect latest changes
- removed survBotGUI.py which is not needed in Docker container
2025-03-20 11:38:54 +01:00
marcel 94cac54716 [update] add parameter to disable PowBox usage for selected stations 2024-08-13 16:40:22 +02:00
marcel c57763c016 [update] added coloring for temperature warning and a critical temperature level, improved tooltip message 2024-08-13 13:38:50 +02:00
marcel fde000ec0d [minor] revert accidental change 2023-12-18 16:05:24 +01:00
marcel c621b31f6e [update] use logging module instead of print/verbosity 2023-12-18 15:24:56 +01:00
marcel 08b12aeb9d [minor] catch matplotlib write error 2023-09-04 15:30:37 +02:00
marcel 353f073d12 [update] added color palette suggested by AM, some visual tweaks 2023-04-21 16:33:02 +02:00
marcel 10e2322882 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	utils.py
2023-04-21 14:17:28 +02:00
annem a6475f2c3b tweak website design in html and css 2023-04-21 13:52:56 +02:00
marcel 72e3ede52f [minor] small adjustments 2023-04-20 15:41:20 +02:00
marcel 1983cc3b1e [new] add logo on html webpage 2023-04-19 14:59:45 +02:00
marcel acc8575d70 [update] can add global (station-independent) links on html web page 2023-04-17 17:59:09 +02:00
marcel 174a6148bf [update] disconnect status if PowBox voltage < 1V 2023-04-12 13:13:04 +02:00
marcel 5a4733b031 [minor] only send mail on inactive when no FAIL state is present 2023-02-28 11:25:43 +01:00
marcel 477727018f [minor] added call argument "parameter path" 2023-02-23 11:50:38 +01:00
marcel 9d9ced7c83 [bugfix] no warning for volt_lvl = -1 2023-02-17 16:14:59 +01:00
marcel 305ab25ab2 [bugfix] slightly wrong if condition 2023-02-17 14:16:38 +01:00
marcel b875e63f83 [bugfix] check for upcoming error 2023-02-16 16:05:12 +01:00
marcel a6c792b271 [bugfix] some bugfixes/tweaks 2023-02-16 15:49:07 +01:00
marcel 5632bab07b [update] re-wrote html part, increased flexibility, can now send html via mail incl. figure 2023-02-01 16:22:26 +01:00
marcel d7cbbe6876 [minor] add missing verbosity flag 2023-01-31 17:37:17 +01:00
marcel 3a384fd7b5 [update] add external mail list for detailed specification of info mail recipients 2023-01-31 16:12:07 +01:00
marcel c736048811 [update] re-read only modified files 2023-01-31 16:10:57 +01:00
marcel 908535fcc8 [minor] modified email message for activity check, plot figures in same time intervals 2023-01-06 10:38:07 +01:00
marcel a5486e19aa [update] first working version of gap check, testing needed
[minor] soft-coded data channels
2023-01-03 18:11:53 +01:00
marcel a89ea1b06d [refactor] PEP8 naming convention 2022-12-22 16:00:37 +01:00
marcel 24d15d9d55 [fix] mutable default argument 2022-12-22 16:00:07 +01:00
marcel bc70dc0816 [minor] soft-coded unit factor for channel analysis 2022-12-22 15:56:32 +01:00
marcel 03616a2b7b [update] refined and enabled clock quality check 2022-12-22 15:36:55 +01:00
marcel bf000fe042 [minor] visual tweaks 2022-12-21 16:03:10 +01:00
marcel c90b430fa8 [bugfix] corrected error check (plot on new FAIL status)
[minor] message output
2022-12-21 15:48:18 +01:00
marcel 7d5f9cf516 [update] re-worked channel definition in parameters.yaml, each channel now has its own dictionary with optional plotting flags
[WIP] clock quality work in progress, currently disabled
2022-12-21 12:51:01 +01:00
marcel b17ee1288c [minor] try re-read yaml in case it failed 2022-12-21 11:57:37 +01:00
marcel bf82148449 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	parameters.yaml
#	survBot.py
2022-12-20 17:02:16 +01:00
marcel 174a8e0823 [new] mass channel surveillance added 2022-12-20 16:54:27 +01:00
kasper 735abac249 use function calc_occurences 2022-12-20 12:19:05 +01:00
kasper 541815d81f Add quality check for clock quality (LCQ) 2022-12-20 12:19:05 +01:00
marcel d397ce377e [update] add network/station blacklists for mail functionality 2022-12-20 10:23:25 +01:00
kasper fc64239c88 don't analysis values of data gaps when cheching for thresholds.
use stream.merge(fill_value=np.nan)
2022-12-06 16:34:08 +01:00
marcel f0ae7da2be [update] add min_sample parameter, which controls ne number of samples that have to be of a specific voltage state before counting them as fail-state 2022-12-06 15:31:09 +01:00
marcel a30cd8c0d4 [update] add trace axis ticking/min-max 2022-12-02 11:15:37 +01:00
marcel 19b8df8f7d [minor] add html class for mobile (WIP) 2022-11-29 10:42:15 +01:00
marcel 6fc1e073c0 [bugfix] compared timedelta with int 2022-11-24 10:13:21 +01:00
marcel 56351ee700 [update] send message (mail) on station timeout 2022-11-23 11:52:26 +01:00
marcel f45c5b20c5 [bugfix] set error state to active until mail is sent 2022-11-23 11:29:05 +01:00
marcel ae0c2ef4e9 [minor] track activity status, modify html output for stylesheet 2022-11-22 18:06:25 +01:00