Commit 666db27d6e89b4e98f1d42ddce007b5ac0e5caba
1 parent
7b0ebee254
Exists in
main
add safe_bearing_limit config parameter to suppress temperature warning as long …
…as the hottest bearing is below this limit (e.g. for polar mode when tap water is wamer than air)
Showing 2 changed files with 7 additions and 2 deletions Side-by-side Diff
alarmist_config.ini
View file @
666db27
... | ... | @@ -9,5 +9,8 @@ |
9 | 9 | coolant = 2 |
10 | 10 | on_torque = 2 |
11 | 11 | moving_torque = 20 |
12 | +# warn about bearing temperature if they are ambient_temperatre_delta above ambient | |
12 | 13 | ambient_temperature_delta = 0.2 |
14 | +# only warn about bearing temperature if they are warmer than safe_bearing_limit | |
15 | +safe_bearing_limit = 25.0 |
ssa/alarm/alarmist.py
View file @
666db27
... | ... | @@ -167,7 +167,9 @@ |
167 | 167 | ) |
168 | 168 | bearing_temperature_warning = False |
169 | 169 | if ambient > 0 and max_bearing > 0: |
170 | - if max_bearing > ambient + ambient_delta: | |
170 | + if (max_bearing > ambient + ambient_delta) and ( | |
171 | + max_bearing > float(self.config["thresholds"]["safe_bearing_limit"]) | |
172 | + ): | |
171 | 173 | bearing_temperature_warning = True |
172 | 174 | |
173 | 175 | dprint( |