|
|
@@ -34,8 +34,12 @@ public class MetnoFetcher implements ConnectorFetcher<VoidSession, MetnoModel> {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void init() throws Exception {
|
|
|
+ public void init() {}
|
|
|
|
|
|
+ @Override
|
|
|
+ public MetnoModel fetch(Optional<VoidSession> session) {
|
|
|
+
|
|
|
+ stations.clear();
|
|
|
stations.addAll(config.getStations());
|
|
|
|
|
|
if (config.getAllowedStationURL() != null) {
|
|
|
@@ -60,12 +64,6 @@ public class MetnoFetcher implements ConnectorFetcher<VoidSession, MetnoModel> {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public MetnoModel fetch(Optional<VoidSession> session) {
|
|
|
-
|
|
|
-
|
|
|
List<JsonObject> predictions = new ArrayList<>(config.getStations().size());
|
|
|
|
|
|
OffsetDateTime minPredictionDate = OffsetDateTime.MAX;
|