Skip to content

Commit aee574d

Browse files
committed
fix override threshold
1 parent 2653e2f commit aee574d

File tree

1 file changed

+2
-0
lines changed
  • examples/vibration-anomaly-detection/python

1 file changed

+2
-0
lines changed

examples/vibration-anomaly-detection/python/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def on_override_th(value: float):
2525
logger.info(f"Setting new anomaly threshold: {value}")
2626
vibration_detection.anomaly_detection_threshold = value
2727

28+
ui.on_message("override_th", lambda sid, threshold: on_override_th(threshold))
29+
2830
def get_fan_status(anomaly_detected: bool):
2931
return {
3032
"anomaly": anomaly_detected,

0 commit comments

Comments
 (0)