Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  24 Sep 2018, Lars Martin, Suggestion, Self-resetting alarm class 
    Reply  24 Sep 2018, Lukas Gerritzen, Suggestion, Self-resetting alarm class 
       Reply  25 Sep 2018, Stefan Ritt, Suggestion, Self-resetting alarm class 
          Reply  26 Dec 2018, Konstantin Olchanski, Suggestion, Self-resetting alarm class 
    Reply  25 Sep 2018, Stefan Ritt, Suggestion, Self-resetting alarm class 
Message ID: 1400     Entry time: 25 Sep 2018     In reply to: 1397
Author: Stefan Ritt 
Topic: Suggestion 
Subject: Self-resetting alarm class 
> I was planning to use the alarm system to display an information banner when a
> certain valve is open, but I would like it to go away again when the valve is
> closed.
> Is there a way to achieve that? Maybe reset the alarm from an alarm script?
> (Seems like a hack...)
> Maybe this could be a useful feature, to be able to define an alarm class that
> resets itself once the condition is no longer met?

Actually you can implement such a thing already now pretty quickly using custom javascript on 
the status page. Just read the valve state regularly from the ODB and dynamically modify the 
status page to show or hide a banner. Look how custom pages work in midas and try to apply 
this to the status page status.html which you find in the resources directory.

Stefan
ELOG V3.1.4-2e1708b5