From a1a694c8bd5acd58b72aa4258647a5769e821896 Mon Sep 17 00:00:00 2001 From: schluchc Date: Thu, 11 Sep 2025 16:06:28 +0200 Subject: [PATCH] Update get-weather-data.mjs Dates can be described in multiple ways: Single date: YYYY-MM-DDTHHZ Time Period fixed start/end: YYYY-MM-DDTHHZ--YYYY-MM-DDTHHZ:, where is e.g. PT1H for hourly Time Period fixed start/length: YYYY-MM-DDTHHZP:, where is e.g. P3D for three days. Multiple dates: YYYY-MM-DDTHHZ,YYYY-MM-DDTHHZ,YYYY-MM-DDTHHZ (comma separated. As e.g. Claude tries to join multiple dates with '--' instead of ',' because of that description. This should fix the behavior to query multiple dates --- .../actions/get-weather-data/get-weather-data.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/meteomatics_weather_api/actions/get-weather-data/get-weather-data.mjs b/components/meteomatics_weather_api/actions/get-weather-data/get-weather-data.mjs index 30f657a0fde78..d7fd657ce8d56 100644 --- a/components/meteomatics_weather_api/actions/get-weather-data/get-weather-data.mjs +++ b/components/meteomatics_weather_api/actions/get-weather-data/get-weather-data.mjs @@ -36,7 +36,7 @@ export default { async run({ $ }) { const response = await this.app.getWeatherData({ $, - validdatetime: this.validDateTime.join("--"), + validdatetime: this.validDateTime.join(","), parameters: this.parameters.join(","), locations: this.locations, format: this.format,