From 565ffe3f7287a257a84c693f74e2dff6f35f84af Mon Sep 17 00:00:00 2001 From: Hemna Date: Sat, 15 Jul 2023 18:22:24 -0400 Subject: [PATCH] Changed weather plugin regex pattern The weather plugins used to match on w, but now require wx --- aprsd/plugins/weather.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aprsd/plugins/weather.py b/aprsd/plugins/weather.py index f8f8cef..821dcce 100644 --- a/aprsd/plugins/weather.py +++ b/aprsd/plugins/weather.py @@ -26,7 +26,7 @@ class USWeatherPlugin(plugin.APRSDRegexCommandPluginBase, plugin.APRSFIKEYMixin) "weather" - returns weather near the calling callsign """ - command_regex = r"^([w]|[w]\s|[w][x]|[w][x]\s|weather)" + command_regex = r"^([w][x]|[w][x]\s|weather)" command_name = "USWeather" short_description = "Provide USA only weather of GPS Beacon location" @@ -92,7 +92,7 @@ class USMetarPlugin(plugin.APRSDRegexCommandPluginBase, plugin.APRSFIKEYMixin): """ - command_regex = r"^([m]|[m]|[m]\s|metar)" + command_regex = r"^([m]|[M]|[m]\s|metar)" command_name = "USMetar" short_description = "USA only METAR of GPS Beacon location" @@ -182,7 +182,7 @@ class OWMWeatherPlugin(plugin.APRSDRegexCommandPluginBase): """ - command_regex = r"^([w]|[w]\s|[w][x]|[w][x]\s|weather)" + command_regex = r"^([w][x]|[w][x]\s|weather)" command_name = "OpenWeatherMap" short_description = "OpenWeatherMap weather of GPS Beacon location"