Mason10198 / SkywarnPlus

Empowering Asterisk / app_rpt Nodes with Local Alert Intelligence
GNU General Public License v3.0
45 stars 3 forks source link

Feature Request - Alert Time out #32

Closed JDtheEE closed 1 year ago

JDtheEE commented 1 year ago

General Idea: After a set time period (24 hours, etc., maybe user settable?) time out the alert and revert all tones back to normal.

The idea being that after a storm, there is a possibility of the repeater loosing internet. Should the repeater owner (i.e. Chris ) be out of town and can't take the alert down with DTMF, the time out will ensure the repeater reverts to normal. This will keep the listeners from being confused that the repeater will send an alert even though the alert (presumably) has already passed.

Mason10198 commented 1 year ago

I think I have devised a robust solution for this. Rather than a "timeout", just use the estimated "end" time of the alert encoded by the NWS from the last time the alert data was downloaded from the API.

This would have the effect of treating any "expired" alerts the same as if they were "cleared". Thus, if your courtesy tone was changed due to the existence of a Tornado Warning, and the internet goes down during the warning, then SWP would "clear" the alert on its own once the estimated end time has passed, and courtesy tones would automatically revert to normal.

Mason10198 commented 1 year ago

Implemented in v0.3.0