Page 1 of 1
Alarm disable for period of Time
Posted: Fri Jun 01, 2018 9:41 am
by SergeyK
What is the best way to disable Alarm for configurable period of time?
This should be done in runtime, with minimum user access check.
Alarm to be re-enabled automatically after time lapsed.
Re: Alarm disable for period of Time
Posted: Mon Jun 04, 2018 10:26 am
by adaneau
Hi,
Are you talking about shelving or totally disabling it?
if disabling, you can use _alert_hdl.._active to disable it.
Be careful about some points:
- If you activate again, new instance will be generated not related to previous one.
- Use dpSetTimed with NULL time: To avoid an increasing size of the configuration history the time of the configs _alert_hdl and _alert_class can be set with dpSetTimed(0,...).
If shelved, you will need to develop it yourself. Perhaps using add_values and filters.
BR
Alex
Re: Alarm disable for period of Time
Posted: Mon Jun 04, 2018 10:30 am
by Gertjan van Schijndel
In the topic '
Alert with time hysteresis' there are some suggestions to temporary disable alarms.