Skip to content
Snippets Groups Projects
Commit 18fdfec2 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

log: Log where weather observations are retrieved from

parent b18f8aa5
No related branches found
No related tags found
1 merge request!191Add map module and Open-Meteo support
...@@ -73,6 +73,7 @@ public class WeatherDataSourceUtil { ...@@ -73,6 +73,7 @@ public class WeatherDataSourceUtil {
*/ */
public List<WeatherObservation> getWeatherObservations(PointOfInterestWeatherStation station, Integer logIntervalId, String[] elementMeasurementTypes, Date startTime, Date endTime, Boolean ignoreErrors, Set<Integer> toleratedLogIntervalIds) throws WeatherDataSourceException { public List<WeatherObservation> getWeatherObservations(PointOfInterestWeatherStation station, Integer logIntervalId, String[] elementMeasurementTypes, Date startTime, Date endTime, Boolean ignoreErrors, Set<Integer> toleratedLogIntervalIds) throws WeatherDataSourceException {
// Get measured (and possibly forecasted, depending on the data source) observations // Get measured (and possibly forecasted, depending on the data source) observations
LOGGER.info("Get weather observations for {} with URL {}", station.getName(), station.getDataFetchUri());
List<WeatherObservation> observations = this.getWeatherObservations(station.getDataFetchUri(), logIntervalId, elementMeasurementTypes, startTime, endTime, TimeZone.getTimeZone(station.getTimeZone()), ignoreErrors, toleratedLogIntervalIds); List<WeatherObservation> observations = this.getWeatherObservations(station.getDataFetchUri(), logIntervalId, elementMeasurementTypes, startTime, endTime, TimeZone.getTimeZone(station.getTimeZone()), ignoreErrors, toleratedLogIntervalIds);
Collections.sort(observations); Collections.sort(observations);
// Append forecasts, if available // Append forecasts, if available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment