Interesting, it seems that you have discovered an instance in which the NWS published an alert to their API that does not adhere to their own API and data specifications. The alert should be titled Tsunami Warning
, not Tsunami warning
(“Warning” must be capitalized). The list of all possible alert types can be found directly at the NWS API endpoint at the following URL: https://api.weather.gov/alerts/types
If you scroll down in this list you will find Tsunami Warning
(“Warning” is capitalized).
Just to show your issue with debug output, I ran two tests -
Manually injecting a Tsunami Warning
(no issues):
2024-07-31 08:22:13,680 DEBUG getAlerts: Current time: 2024-07-31 12:22:13.680183+00:00
2024-07-31 08:22:13,681 DEBUG getAlerts: DEV Alert Injection Enabled
2024-07-31 08:22:13,681 DEBUG getAlerts: Injecting alerts: [{'Title': 'Tsunami Warning'}]
2024-07-31 08:22:15,724 INFO Added: Tsunami Warning for [Saline]
2024-07-31 08:22:15,744 DEBUG sayAlert: Added Tsunami Warning (SWP_115.wav) to alert sound
2024-07-31 08:22:15,745 DEBUG sayAlert: Exporting alert sound to /tmp/SkywarnPlus/alert.wav
2024-07-31 08:22:15,753 INFO Broadcasting alert on node 1998
2024-07-31 08:22:31,285 DEBUG buildTailMessage: Added Tsunami Warning (SWP_115.wav) to tailmessage
2024-07-31 08:22:31,286 INFO Built new tailmessage
2024-07-31 08:22:31,287 DEBUG buildTailMessage: Exporting tailmessage to /tmp/SkywarnPlus/wx-tail.wav
and manually injecting a Tsunami warning
(unable to match the alert string to a .WAV)
2024-07-31 08:22:46,950 DEBUG getAlerts: Current time: 2024-07-31 12:22:46.950866+00:00
2024-07-31 08:22:46,951 DEBUG getAlerts: DEV Alert Injection Enabled
2024-07-31 08:22:46,951 DEBUG getAlerts: Injecting alerts: [{'Title': 'Tsunami warning'}]
2024-07-31 08:22:48,837 INFO Added: Tsunami warning for [Saline]
2024-07-31 08:22:48,851 ERROR sayAlert: Alert not found: Tsunami warning
2024-07-31 08:22:48,852 DEBUG sayAlert: All alerts were blocked, not broadcasting any alerts.
2024-07-31 08:22:48,854 ERROR Alert not found: Tsunami warning
2024-07-31 08:22:48,854 INFO Built new tailmessage
2024-07-31 08:22:48,855 DEBUG buildTailMessage: Exporting tailmessage to /tmp/SkywarnPlus/wx-tail.wav
I would hope that this is a very rare occurrence, although I will still add some error handling to my to-do list for SkywarnPlus - eg accept alert tiles in a case-insensitive manner.
Thank you for the report, Paul.