Add raw SPC convective outlook source

This commit is contained in:
2026-06-11 00:15:40 +00:00
parent 42c646c328
commit cefd4dfc7c
5 changed files with 786 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ func TestRegisterBuiltinsRegistersAllCurrentDrivers(t *testing.T) {
"openmeteo_observation",
"openmeteo_forecast",
"openweather_observation",
"spc_convective_outlook",
}
for _, driver := range drivers {
@@ -105,13 +106,18 @@ func sourceConfigForDriver(driver string) config.SourceConfig {
if driver == "openweather_observation" {
url = "https://example.invalid?units=metric"
}
params := map[string]any{
"url": url,
"user_agent": "test-agent",
}
if driver == "spc_convective_outlook" {
params["latitude"] = 38.6239
params["longitude"] = -90.3571
}
return config.SourceConfig{
Name: "test-source",
Driver: driver,
Mode: config.SourceModePoll,
Params: map[string]any{
"url": url,
"user_agent": "test-agent",
},
Params: params,
}
}