Commit 31eabe3
committed
fix: improve alert filtering with time window and deduplication
- Add showAlertsHours config option (default: 12 hours)
- Filter alerts to only show those starting within configured time window
- Remove duplicate alert names when same alert spans multiple days
- Change showAlerts default from false to true
- Update README documentation with new option and examples
This fixes the issue where duplicate alerts were shown (e.g., "Winter Weather Advisory" appearing 3 times for alerts spanning today and tomorrow).1 parent 22f3fdb commit 31eabe3
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
697 | 701 | | |
698 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
699 | 707 | | |
700 | 708 | | |
701 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
702 | 713 | | |
703 | | - | |
| 714 | + | |
704 | 715 | | |
705 | 716 | | |
706 | 717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
0 commit comments