100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Added test for ForecastWindService. Improved test for ForecastSolarService
Michael Rademaker2b62d6be61d1
diff --git a/manager/src/main/java/org/openremote/manager/energy/ForecastWindService.java b/manager/src/main/java/org/openremote/manager/energy/ForecastWindService.javaindex 4fc6f7b2a..f454b5cee 100644--- a/manager/src/main/java/org/openremote/manager/energy/ForecastWindService.java+++ b/manager/src/main/java/org/openremote/manager/energy/ForecastWindService.java@@ -2,10 +2,10 @@ package org.openremote.manager.energy;import com.fasterxml.jackson.annotation.JsonProperty;import org.apache.camel.builder.RouteBuilder;+import org.jboss.resteasy.client.jaxrs.ResteasyClient;import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget;import org.openremote.container.message.MessageBrokerService;import org.openremote.container.persistence.PersistenceEvent;-import org.openremote.container.web.WebTargetBuilder;import org.openremote.manager.asset.AssetProcessingService;import org.openremote.manager.asset.AssetStorageService;import org.openremote.manager.datapoint.AssetPredictedDatapointService;@@ -14,9 +14,10 @@ import org.openremote.manager.gateway.GatewayService;import org.openremote.manager.rules.RulesService;import org.openremote.model.Container;import org.openremote.model.ContainerService;+import org.openremote.model.asset.Asset;import org.openremote.model.asset.impl.ElectricityProducerAsset;+import org.openremote.model.asset.impl.ElectricityProducerSolarAsset;import org.openremote.model.asset.impl.ElectricityProducerWindAsset;-import org.openremote.model.asset.impl.WeatherAsset;import org.openremote.model.attribute.AttributeEvent;import org.openremote.model.query.AssetQuery;@@ -25,6 +26,7 @@ import java.io.IOException;import java.time.Instant;import java.time.LocalDateTime;import java.time.ZoneId;+import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;@@ -38,6 +40,7 @@ import java.util.stream.Collectors;import static org.openremote.container.persistence.PersistenceEvent.PERSISTENCE_TOPIC;import static org.openremote.container.persistence.PersistenceEvent.isPersistenceEventForEntityType;import static org.openremote.container.util.MapAccess.getString;+import static org.openremote.container.web.WebTargetBuilder.createClient;import static org.openremote.manager.gateway.GatewayService.isNotForGateway;/**@@ -117,11 +120,16 @@ public class ForecastWindService extends RouteBuilder implements ContainerServicprotected RulesService rulesService;- private ResteasyWebTarget weatherForecastClient;+ protected static ResteasyClient resteasyClient;+ private ResteasyWebTarget weatherForecastWebTarget;private String openWeatherAppId;private final Map<String, ScheduledFuture<?>> calculationFutures = new HashMap<>();+ static {+ resteasyClient = createClient(org.openremote.container.Container.EXECUTOR_SERVICE);+ }+@SuppressWarnings("unchecked")@Overridepublic void configure() throws Exception {@@ -152,7 +160,7 @@ public class ForecastWindService extends RouteBuilder implements ContainerServicreturn;}- weatherForecastClient = WebTargetBuilder.createClient(container.getExecutorService())+ weatherForecastWebTarget = resteasyClient.target("https://api.openweathermap.org/data/2.5").queryParam("units", "metric").queryParam("exclude", "minutely,daily,alerts")@@ -186,15 +194,11 @@ public class ForecastWindService extends RouteBuilder implements ContainerServic@Overridepublic void stop(Container container) throws Exception {- calculationFutures.keySet().forEach(this::stopCalculation);+ new ArrayList<>(calculationFutures.keySet()).forEach(this::stopCalculation);}protected void processAttributeEvent(AttributeEvent attributeEvent) {- ScheduledFuture<?> calculationFuture = calculationFutures.get(attributeEvent.getAssetId());-- if (calculationFuture != null) {- processElectricityProducerWindAssetAttributeEvent(attributeEvent);- }+ processElectricityProducerWindAssetAttributeEvent(attributeEvent);}protected synchronized void processElectricityProducerWindAssetAttributeEvent(AttributeEvent attributeEvent) {@@ -206,24 +210,34 @@ public class ForecastWindService extends RouteBuilder implements ContainerServic}if (attributeEvent.getAttributeName().equals(ElectricityProducerWindAsset.INCLUDE_FORECAST_WIND_SERVICE.getName())) {- boolean disabled = attributeEvent.<Boolean>getValue().orElse(false);- if (!disabled && calculationFutures.containsKey(attributeEvent.getAssetId())) {+ boolean enabled = attributeEvent.<Boolean>getValue().orElse(false);+ if (enabled && calculationFutures.containsKey(attributeEvent.getAssetId())) {// Nothing to do herereturn;- } else if (disabled && !calculationFutures.containsKey(attributeEvent.getAssetId())) {+ } else if (!enabled && !calculationFutures.containsKey(attributeEvent.getAssetId())) {// Nothing to do herereturn;}- }- LOG.info("Processing producer wind asset attribute event: " + attributeEvent);- stopCalculation(attributeEvent.getAssetId());+ LOG.info("Processing producer wind asset attribute event: " + attributeEvent);+ stopCalculation(attributeEvent.getAssetId());- // Get latest asset from storage- ElectricityProducerWindAsset asset = (ElectricityProducerWindAsset) assetStorageService.find(attributeEvent.getAssetId());+ // Get latest asset from storage+ ElectricityProducerWindAsset asset = (ElectricityProducerWindAsset) assetStorageService.find(attributeEvent.getAssetId());- if (asset != null && asset.isIncludeForecastWindService().orElse(false) && asset.getLocation().isPresent()) {- startCalculation(asset);+ if (asset != null && asset.isIncludeForecastWindService().orElse(false) && asset.getLocation().isPresent()) {+ startCalculation(asset);+ }+ }++ if (attributeEvent.getAttributeName().equals(ElectricityProducerSolarAsset.SET_ACTUAL_VALUE_WITH_FORECAST.getName())) {+ // Get latest asset from storage+ ElectricityProducerWindAsset asset = (ElectricityProducerWindAsset) assetStorageService.find(attributeEvent.getAssetId());++ // Check if power is currently zero and set it if power forecast has an value+ if (asset.getPower().orElse(0d) == 0d && asset.getPowerForecast().orElse(0d) != 0d) {+ assetProcessingService.sendAttributeEvent(new AttributeEvent(asset.getId(), ElectricityProducerWindAsset.POWER, asset.getPowerForecast().orElse(0d)));+ }}}@@ -255,7 +269,7 @@ public class ForecastWindService extends RouteBuilder implements ContainerServic}protected void processWeatherData(ElectricityProducerWindAsset electricityProducerWindAsset) {- try (Response response = weatherForecastClient+ try (Response response = weatherForecastWebTarget.path("onecall").queryParam("lat", electricityProducerWindAsset.getLocation().get().getY()).queryParam("lon", electricityProducerWindAsset.getLocation().get().getX())diff --git a/test/src/main/java/org/openremote/test/setup/ManagerTestSetup.java b/test/src/main/java/org/openremote/test/setup/ManagerTestSetup.javaindex 11036ce4b..0025faace 100644--- a/test/src/main/java/org/openremote/test/setup/ManagerTestSetup.java+++ b/test/src/main/java/org/openremote/test/setup/ManagerTestSetup.java@@ -94,6 +94,7 @@ public class ManagerTestSetup extends ManagerSetup {public String electricityOptimisationAssetId;public String electricityConsumerAssetId;public String electricitySolarAssetId;+ public String electricityWindAssetId;public String electricitySupplierAssetId;public String electricityBatteryAssetId;@@ -233,6 +234,23 @@ public class ManagerTestSetup extends ManagerSetup {electricitySolarAsset = assetStorageService.merge(electricitySolarAsset);electricitySolarAssetId = electricitySolarAsset.getId();+ ElectricityProducerWindAsset electricityWindAsset = new ElectricityProducerWindAsset("Wind Turbine");+ electricityWindAsset.setParent(electricityOptimisationAsset);+ electricityWindAsset.getAttribute(ElectricityAsset.POWER).ifPresent(attr ->+ attr.addMeta(new MetaItem<>(HAS_PREDICTED_DATA_POINTS))+ );+ electricityWindAsset.setWindSpeedMax(18d);+ electricityWindAsset.setWindSpeedMin(2d);+ electricityWindAsset.setWindSpeedReference(12d);+ electricityWindAsset.setPowerExportMax(9000d);+ electricityWindAsset.setEfficiencyExport(100);+ electricityWindAsset.setPowerExportMax(2.5);+ electricityWindAsset.setLocation(new GeoJSONPoint(9.195285, 48.787418));+ electricityWindAsset.setSetActualValueWithForecast(true);+ electricityWindAsset.setIncludeForecastWindService(true);+ electricityWindAsset = assetStorageService.merge(electricityWindAsset);+ electricityWindAssetId = electricityWindAsset.getId();+ElectricityBatteryAsset electricityBatteryAsset = new ElectricityBatteryAsset("Battery");electricityBatteryAsset.setParent(electricityOptimisationAsset);electricityBatteryAsset.setEnergyCapacity(200d);diff --git a/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovy b/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovyindex 7e0fb4248..5df4ad570 100644--- a/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovy+++ b/test/src/test/groovy/org/openremote/test/energy/ForecastSolarServiceTest.groovy@@ -3,10 +3,13 @@ package org.openremote.test.energyimport org.openremote.manager.asset.AssetProcessingServiceimport org.openremote.manager.asset.AssetStorageService+import org.openremote.manager.datapoint.AssetPredictedDatapointServiceimport org.openremote.manager.energy.ForecastSolarServiceimport org.openremote.manager.setup.SetupServiceimport org.openremote.model.asset.impl.ElectricityProducerSolarAsset+import org.openremote.model.asset.impl.ElectricityProducerWindAssetimport org.openremote.model.attribute.AttributeEvent+import org.openremote.model.attribute.AttributeRefimport org.openremote.model.geo.GeoJSONPointimport org.openremote.model.util.ValueUtilimport org.openremote.test.ManagerContainerTrait@@ -135,6 +138,7 @@ class ForecastSolarServiceTest extends Specification implements ManagerContainerdef container = startContainer(config, defaultServices())def managerTestSetup = container.getService(SetupService.class).getTaskOfType(ManagerTestSetup.class)def assetStorageService = container.getService(AssetStorageService.class)+ def assetPredictedDatapointService = container.getService(AssetPredictedDatapointService.class)def assetProcessingService = container.getService(AssetProcessingService.class)def forecastSolarService = container.getService(ForecastSolarService.class)@@ -145,6 +149,8 @@ class ForecastSolarServiceTest extends Specification implements ManagerContainerdef solarAsset = assetStorageService.find(managerTestSetup.electricitySolarAssetId)assert solarAsset.getAttribute(ElectricityProducerSolarAsset.POWER).flatMap { it.value }.orElse(0d) != 0dassert solarAsset.getAttribute(ElectricityProducerSolarAsset.POWER_FORECAST).flatMap { it.value }.orElse(0d) != 0d+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(solarAsset.getId(), ElectricityProducerSolarAsset.POWER.getName())).size() > 0+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(solarAsset.getId(), ElectricityProducerSolarAsset.POWER_FORECAST.getName())).size() > 0}when: "an asset is added with includeForecastSolarService set to true"@@ -166,6 +172,8 @@ class ForecastSolarServiceTest extends Specification implements ManagerContainernewSolarAsset = assetStorageService.find(newSolarAsset.getId())assert newSolarAsset.getAttribute(ElectricityProducerSolarAsset.POWER).flatMap { it.value }.orElse(0d) != 0dassert newSolarAsset.getAttribute(ElectricityProducerSolarAsset.POWER_FORECAST).flatMap { it.value }.orElse(0d) != 0d+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newSolarAsset.getId(), ElectricityProducerSolarAsset.POWER.getName())).size() > 0+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newSolarAsset.getId(), ElectricityProducerSolarAsset.POWER_FORECAST.getName())).size() > 0}when: "an asset is added with includeForecastSolarService set to false"@@ -195,6 +203,8 @@ class ForecastSolarServiceTest extends Specification implements ManagerContainernewSolarAsset2 = assetStorageService.find(newSolarAsset2.getId())assert newSolarAsset2.getAttribute(ElectricityProducerSolarAsset.POWER).flatMap { it.value }.orElse(0d) == 0dassert newSolarAsset2.getAttribute(ElectricityProducerSolarAsset.POWER_FORECAST).flatMap { it.value }.orElse(0d) != 0d+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newSolarAsset2.getId(), ElectricityProducerSolarAsset.POWER.getName())).size() > 0+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newSolarAsset2.getId(), ElectricityProducerSolarAsset.POWER_FORECAST.getName())).size() > 0}when: "an asset updated it's setActualValueWithForecast to true"diff --git a/test/src/test/groovy/org/openremote/test/energy/ForecastWindServiceTest.groovy b/test/src/test/groovy/org/openremote/test/energy/ForecastWindServiceTest.groovynew file mode 100644index 000000000..102e92f0a--- /dev/null+++ b/test/src/test/groovy/org/openremote/test/energy/ForecastWindServiceTest.groovy@@ -0,0 +1,1324 @@+package org.openremote.test.energy++import org.openremote.manager.asset.AssetProcessingService+import org.openremote.manager.asset.AssetStorageService+import org.openremote.manager.datapoint.AssetPredictedDatapointService+import org.openremote.manager.energy.ForecastWindService+import org.openremote.manager.setup.SetupService+import org.openremote.model.asset.Asset+import org.openremote.model.asset.impl.ElectricityProducerWindAsset+import org.openremote.model.attribute.AttributeEvent+import org.openremote.model.attribute.AttributeRef+import org.openremote.model.geo.GeoJSONPoint+import org.openremote.model.util.ValueUtil+import org.openremote.test.ManagerContainerTrait+import org.openremote.test.setup.ManagerTestSetup+import spock.lang.Shared+import spock.lang.Specification+import spock.util.concurrent.PollingConditions++import javax.ws.rs.client.ClientRequestContext+import javax.ws.rs.client.ClientRequestFilter+import javax.ws.rs.core.MediaType+import javax.ws.rs.core.Response+import java.time.LocalDateTime+import java.time.ZoneOffset+import java.time.temporal.ChronoUnit++import static org.openremote.manager.energy.ForecastWindService.OPEN_WEATHER_API_APP_ID++class ForecastWindServiceTest extends Specification implements ManagerContainerTrait {++ @Shared+ def mockServer = new ClientRequestFilter() {++ @Override+ void filter(ClientRequestContext requestContext) throws IOException {+ def requestUri = requestContext.uri++ switch (requestUri.path) {+ case "/data/2.5/onecall":+ def now = LocalDateTime.now().truncatedTo(ChronoUnit.HOURS)+ def content = "{\n" ++ "\t\"lat\": 51.97,\n" ++ "\t\"lon\": 5.9,\n" ++ "\t\"timezone\": \"Europe/Amsterdam\",\n" ++ "\t\"timezone_offset\": 3600,\n" ++ "\t\"current\": {\n" ++ "\t\t\"dt\": ${now.toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\"sunrise\": 1637045887,\n" ++ "\t\t\"sunset\": 1637077471,\n" ++ "\t\t\"temp\": 5.37,\n" ++ "\t\t\"feels_like\": 5.37,\n" ++ "\t\t\"pressure\": 1022,\n" ++ "\t\t\"humidity\": 93,\n" ++ "\t\t\"dew_point\": 4.33,\n" ++ "\t\t\"uvi\": 0.51,\n" ++ "\t\t\"clouds\": 90,\n" ++ "\t\t\"visibility\": 6000,\n" ++ "\t\t\"wind_speed\": 3.45,\n" ++ "\t\t\"wind_deg\": 170,\n" ++ "\t\t\"wind_gust\": 0,\n" ++ "\t\t\"weather\": [\n" ++ "\t\t\t{\n" ++ "\t\t\t\t\"id\": 701,\n" ++ "\t\t\t\t\"main\": \"Mist\",\n" ++ "\t\t\t\t\"description\": \"mist\",\n" ++ "\t\t\t\t\"icon\": \"50d\"\n" ++ "\t\t\t}\n" ++ "\t\t]\n" ++ "\t},\n" ++ "\t\"hourly\": [\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.37,\n" ++ "\t\t\t\"feels_like\": 5.37,\n" ++ "\t\t\t\"pressure\": 1022,\n" ++ "\t\t\t\"humidity\": 93,\n" ++ "\t\t\t\"dew_point\": 4.33,\n" ++ "\t\t\t\"uvi\": 0.51,\n" ++ "\t\t\t\"clouds\": 90,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.19,\n" ++ "\t\t\t\"wind_deg\": 230,\n" ++ "\t\t\t\"wind_gust\": 1.4,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(1).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.63,\n" ++ "\t\t\t\"feels_like\": 4.53,\n" ++ "\t\t\t\"pressure\": 1022,\n" ++ "\t\t\t\"humidity\": 89,\n" ++ "\t\t\t\"dew_point\": 3.96,\n" ++ "\t\t\t\"uvi\": 0.3,\n" ++ "\t\t\t\"clouds\": 92,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 2.61,\n" ++ "\t\t\t\"wind_deg\": 232,\n" ++ "\t\t\t\"wind_gust\": 2.04,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(2).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.79,\n" ++ "\t\t\t\"feels_like\": 4.46,\n" ++ "\t\t\t\"pressure\": 1022,\n" ++ "\t\t\t\"humidity\": 86,\n" ++ "\t\t\t\"dew_point\": 3.63,\n" ++ "\t\t\t\"uvi\": 0.11,\n" ++ "\t\t\t\"clouds\": 94,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 1.83,\n" ++ "\t\t\t\"wind_deg\": 239,\n" ++ "\t\t\t\"wind_gust\": 2.56,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(3).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.83,\n" ++ "\t\t\t\"feels_like\": 4.51,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 83,\n" ++ "\t\t\t\"dew_point\": 3.17,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 96,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 1.83,\n" ++ "\t\t\t\"wind_deg\": 248,\n" ++ "\t\t\t\"wind_gust\": 2.92,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(4).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.89,\n" ++ "\t\t\t\"feels_like\": 4.64,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 81,\n" ++ "\t\t\t\"dew_point\": 2.88,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 98,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 1.77,\n" ++ "\t\t\t\"wind_deg\": 254,\n" ++ "\t\t\t\"wind_gust\": 3.22,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(5).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.99,\n" ++ "\t\t\t\"feels_like\": 4.72,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 78,\n" ++ "\t\t\t\"dew_point\": 2.31,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 1.81,\n" ++ "\t\t\t\"wind_deg\": 251,\n" ++ "\t\t\t\"wind_gust\": 3.57,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(6).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6,\n" ++ "\t\t\t\"feels_like\": 4.55,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 77,\n" ++ "\t\t\t\"dew_point\": 2.15,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 1.98,\n" ++ "\t\t\t\"wind_deg\": 254,\n" ++ "\t\t\t\"wind_gust\": 3.76,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(7).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.95,\n" ++ "\t\t\t\"feels_like\": 4.68,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 77,\n" ++ "\t\t\t\"dew_point\": 2.15,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 1.8,\n" ++ "\t\t\t\"wind_deg\": 242,\n" ++ "\t\t\t\"wind_gust\": 3.37,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(8).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.93,\n" ++ "\t\t\t\"feels_like\": 4.53,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 77,\n" ++ "\t\t\t\"dew_point\": 2.18,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 1.92,\n" ++ "\t\t\t\"wind_deg\": 213,\n" ++ "\t\t\t\"wind_gust\": 3.31,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(9).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.94,\n" ++ "\t\t\t\"feels_like\": 4.27,\n" ++ "\t\t\t\"pressure\": 1020,\n" ++ "\t\t\t\"humidity\": 77,\n" ++ "\t\t\t\"dew_point\": 2.24,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 2.2,\n" ++ "\t\t\t\"wind_deg\": 195,\n" ++ "\t\t\t\"wind_gust\": 3.58,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(10).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.05,\n" ++ "\t\t\t\"feels_like\": 4.19,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 77,\n" ++ "\t\t\t\"dew_point\": 2.35,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 2.45,\n" ++ "\t\t\t\"wind_deg\": 192,\n" ++ "\t\t\t\"wind_gust\": 4.3,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(11).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.16,\n" ++ "\t\t\t\"feels_like\": 4.12,\n" ++ "\t\t\t\"pressure\": 1020,\n" ++ "\t\t\t\"humidity\": 78,\n" ++ "\t\t\t\"dew_point\": 2.52,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 2.7,\n" ++ "\t\t\t\"wind_deg\": 228,\n" ++ "\t\t\t\"wind_gust\": 6.04,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(12).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.24,\n" ++ "\t\t\t\"feels_like\": 4.04,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 78,\n" ++ "\t\t\t\"dew_point\": 2.66,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 2.93,\n" ++ "\t\t\t\"wind_deg\": 221,\n" ++ "\t\t\t\"wind_gust\": 7.28,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(13).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.33,\n" ++ "\t\t\t\"feels_like\": 3.88,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 79,\n" ++ "\t\t\t\"dew_point\": 2.84,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.34,\n" ++ "\t\t\t\"wind_deg\": 208,\n" ++ "\t\t\t\"wind_gust\": 7.93,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(14).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.49,\n" ++ "\t\t\t\"feels_like\": 3.7,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 79,\n" ++ "\t\t\t\"dew_point\": 2.97,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.98,\n" ++ "\t\t\t\"wind_deg\": 202,\n" ++ "\t\t\t\"wind_gust\": 8.55,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(15).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.52,\n" ++ "\t\t\t\"feels_like\": 3.53,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 79,\n" ++ "\t\t\t\"dew_point\": 3.15,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 98,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.37,\n" ++ "\t\t\t\"wind_deg\": 214,\n" ++ "\t\t\t\"wind_gust\": 9.76,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(16).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.69,\n" ++ "\t\t\t\"feels_like\": 3.65,\n" ++ "\t\t\t\"pressure\": 1018,\n" ++ "\t\t\t\"humidity\": 81,\n" ++ "\t\t\t\"dew_point\": 3.62,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 98,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.57,\n" ++ "\t\t\t\"wind_deg\": 211,\n" ++ "\t\t\t\"wind_gust\": 9.8,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(17).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.72,\n" ++ "\t\t\t\"feels_like\": 3.71,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 84,\n" ++ "\t\t\t\"dew_point\": 4.1,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 99,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.52,\n" ++ "\t\t\t\"wind_deg\": 218,\n" ++ "\t\t\t\"wind_gust\": 10.41,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(18).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.85,\n" ++ "\t\t\t\"feels_like\": 3.86,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 86,\n" ++ "\t\t\t\"dew_point\": 4.58,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.54,\n" ++ "\t\t\t\"wind_deg\": 225,\n" ++ "\t\t\t\"wind_gust\": 10.91,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.01\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(19).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 7.15,\n" ++ "\t\t\t\"feels_like\": 4.2,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 89,\n" ++ "\t\t\t\"dew_point\": 5.39,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 98,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.6,\n" ++ "\t\t\t\"wind_deg\": 228,\n" ++ "\t\t\t\"wind_gust\": 10.3,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.05\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(20).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 7.85,\n" ++ "\t\t\t\"feels_like\": 5.02,\n" ++ "\t\t\t\"pressure\": 1019,\n" ++ "\t\t\t\"humidity\": 91,\n" ++ "\t\t\t\"dew_point\": 6.35,\n" ++ "\t\t\t\"uvi\": 0.1,\n" ++ "\t\t\t\"clouds\": 91,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.72,\n" ++ "\t\t\t\"wind_deg\": 229,\n" ++ "\t\t\t\"wind_gust\": 10.31,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.05\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(21).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 8.52,\n" ++ "\t\t\t\"feels_like\": 5.91,\n" ++ "\t\t\t\"pressure\": 1020,\n" ++ "\t\t\t\"humidity\": 93,\n" ++ "\t\t\t\"dew_point\": 7.31,\n" ++ "\t\t\t\"uvi\": 0.26,\n" ++ "\t\t\t\"clouds\": 94,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.6,\n" ++ "\t\t\t\"wind_deg\": 258,\n" ++ "\t\t\t\"wind_gust\": 9.79,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.05\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(22).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 10.23,\n" ++ "\t\t\t\"feels_like\": 9.5,\n" ++ "\t\t\t\"pressure\": 1020,\n" ++ "\t\t\t\"humidity\": 84,\n" ++ "\t\t\t\"dew_point\": 7.47,\n" ++ "\t\t\t\"uvi\": 0.36,\n" ++ "\t\t\t\"clouds\": 94,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.92,\n" ++ "\t\t\t\"wind_deg\": 287,\n" ++ "\t\t\t\"wind_gust\": 8.04,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.05\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(23).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 10.03,\n" ++ "\t\t\t\"feels_like\": 9.05,\n" ++ "\t\t\t\"pressure\": 1020,\n" ++ "\t\t\t\"humidity\": 75,\n" ++ "\t\t\t\"dew_point\": 5.78,\n" ++ "\t\t\t\"uvi\": 0.37,\n" ++ "\t\t\t\"clouds\": 95,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.91,\n" ++ "\t\t\t\"wind_deg\": 294,\n" ++ "\t\t\t\"wind_gust\": 8.34,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.05\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(24).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 9.77,\n" ++ "\t\t\t\"feels_like\": 8.22,\n" ++ "\t\t\t\"pressure\": 1020,\n" ++ "\t\t\t\"humidity\": 73,\n" ++ "\t\t\t\"dew_point\": 5.19,\n" ++ "\t\t\t\"uvi\": 0.53,\n" ++ "\t\t\t\"clouds\": 99,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.02,\n" ++ "\t\t\t\"wind_deg\": 273,\n" ++ "\t\t\t\"wind_gust\": 6.7,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.18\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(25).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 10.16,\n" ++ "\t\t\t\"feels_like\": 9.11,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 72,\n" ++ "\t\t\t\"dew_point\": 5.19,\n" ++ "\t\t\t\"uvi\": 0.31,\n" ++ "\t\t\t\"clouds\": 99,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.88,\n" ++ "\t\t\t\"wind_deg\": 276,\n" ++ "\t\t\t\"wind_gust\": 7.62,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.12\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(26).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 9.19,\n" ++ "\t\t\t\"feels_like\": 7.03,\n" ++ "\t\t\t\"pressure\": 1021,\n" ++ "\t\t\t\"humidity\": 75,\n" ++ "\t\t\t\"dew_point\": 4.98,\n" ++ "\t\t\t\"uvi\": 0.11,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.95,\n" ++ "\t\t\t\"wind_deg\": 276,\n" ++ "\t\t\t\"wind_gust\": 8.37,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0.04\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(27).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 7.33,\n" ++ "\t\t\t\"feels_like\": 5.08,\n" ++ "\t\t\t\"pressure\": 1022,\n" ++ "\t\t\t\"humidity\": 83,\n" ++ "\t\t\t\"dew_point\": 4.62,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 88,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.35,\n" ++ "\t\t\t\"wind_deg\": 270,\n" ++ "\t\t\t\"wind_gust\": 7.42,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(28).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.69,\n" ++ "\t\t\t\"feels_like\": 4.25,\n" ++ "\t\t\t\"pressure\": 1023,\n" ++ "\t\t\t\"humidity\": 86,\n" ++ "\t\t\t\"dew_point\": 4.51,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 91,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.44,\n" ++ "\t\t\t\"wind_deg\": 260,\n" ++ "\t\t\t\"wind_gust\": 8.64,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(29).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.54,\n" ++ "\t\t\t\"feels_like\": 4,\n" ++ "\t\t\t\"pressure\": 1023,\n" ++ "\t\t\t\"humidity\": 87,\n" ++ "\t\t\t\"dew_point\": 4.47,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 92,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.56,\n" ++ "\t\t\t\"wind_deg\": 257,\n" ++ "\t\t\t\"wind_gust\": 9.1,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(30).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.54,\n" ++ "\t\t\t\"feels_like\": 3.94,\n" ++ "\t\t\t\"pressure\": 1024,\n" ++ "\t\t\t\"humidity\": 87,\n" ++ "\t\t\t\"dew_point\": 4.48,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.66,\n" ++ "\t\t\t\"wind_deg\": 253,\n" ++ "\t\t\t\"wind_gust\": 9.4,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(31).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.56,\n" ++ "\t\t\t\"feels_like\": 3.8,\n" ++ "\t\t\t\"pressure\": 1024,\n" ++ "\t\t\t\"humidity\": 87,\n" ++ "\t\t\t\"dew_point\": 4.54,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.95,\n" ++ "\t\t\t\"wind_deg\": 247,\n" ++ "\t\t\t\"wind_gust\": 10.34,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(32).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 7.1,\n" ++ "\t\t\t\"feels_like\": 4.42,\n" ++ "\t\t\t\"pressure\": 1024,\n" ++ "\t\t\t\"humidity\": 85,\n" ++ "\t\t\t\"dew_point\": 4.71,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.03,\n" ++ "\t\t\t\"wind_deg\": 243,\n" ++ "\t\t\t\"wind_gust\": 9.87,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(33).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 7.61,\n" ++ "\t\t\t\"feels_like\": 5,\n" ++ "\t\t\t\"pressure\": 1024,\n" ++ "\t\t\t\"humidity\": 83,\n" ++ "\t\t\t\"dew_point\": 4.81,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.12,\n" ++ "\t\t\t\"wind_deg\": 242,\n" ++ "\t\t\t\"wind_gust\": 9.75,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(34).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 7.4,\n" ++ "\t\t\t\"feels_like\": 4.69,\n" ++ "\t\t\t\"pressure\": 1024,\n" ++ "\t\t\t\"humidity\": 84,\n" ++ "\t\t\t\"dew_point\": 4.89,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.24,\n" ++ "\t\t\t\"wind_deg\": 239,\n" ++ "\t\t\t\"wind_gust\": 10.22,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(35).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.66,\n" ++ "\t\t\t\"feels_like\": 3.87,\n" ++ "\t\t\t\"pressure\": 1025,\n" ++ "\t\t\t\"humidity\": 90,\n" ++ "\t\t\t\"dew_point\": 4.99,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.06,\n" ++ "\t\t\t\"wind_deg\": 239,\n" ++ "\t\t\t\"wind_gust\": 9.87,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(36).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.25,\n" ++ "\t\t\t\"feels_like\": 3.37,\n" ++ "\t\t\t\"pressure\": 1024,\n" ++ "\t\t\t\"humidity\": 92,\n" ++ "\t\t\t\"dew_point\": 5.05,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.04,\n" ++ "\t\t\t\"wind_deg\": 236,\n" ++ "\t\t\t\"wind_gust\": 9.76,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(37).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 6.18,\n" ++ "\t\t\t\"feels_like\": 3.37,\n" ++ "\t\t\t\"pressure\": 1025,\n" ++ "\t\t\t\"humidity\": 93,\n" ++ "\t\t\t\"dew_point\": 5.08,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.89,\n" ++ "\t\t\t\"wind_deg\": 235,\n" ++ "\t\t\t\"wind_gust\": 9.44,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(38).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.99,\n" ++ "\t\t\t\"feels_like\": 3.04,\n" ++ "\t\t\t\"pressure\": 1025,\n" ++ "\t\t\t\"humidity\": 93,\n" ++ "\t\t\t\"dew_point\": 4.93,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.06,\n" ++ "\t\t\t\"wind_deg\": 239,\n" ++ "\t\t\t\"wind_gust\": 10.04,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(39).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.74,\n" ++ "\t\t\t\"feels_like\": 2.93,\n" ++ "\t\t\t\"pressure\": 1025,\n" ++ "\t\t\t\"humidity\": 94,\n" ++ "\t\t\t\"dew_point\": 4.72,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.71,\n" ++ "\t\t\t\"wind_deg\": 239,\n" ++ "\t\t\t\"wind_gust\": 9.54,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(40).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.68,\n" ++ "\t\t\t\"feels_like\": 2.89,\n" ++ "\t\t\t\"pressure\": 1025,\n" ++ "\t\t\t\"humidity\": 94,\n" ++ "\t\t\t\"dew_point\": 4.64,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.66,\n" ++ "\t\t\t\"wind_deg\": 236,\n" ++ "\t\t\t\"wind_gust\": 9.14,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(41).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.56,\n" ++ "\t\t\t\"feels_like\": 2.77,\n" ++ "\t\t\t\"pressure\": 1026,\n" ++ "\t\t\t\"humidity\": 94,\n" ++ "\t\t\t\"dew_point\": 4.55,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 100,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.62,\n" ++ "\t\t\t\"wind_deg\": 236,\n" ++ "\t\t\t\"wind_gust\": 9.26,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(42).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.26,\n" ++ "\t\t\t\"feels_like\": 2.52,\n" ++ "\t\t\t\"pressure\": 1027,\n" ++ "\t\t\t\"humidity\": 95,\n" ++ "\t\t\t\"dew_point\": 4.43,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 59,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.43,\n" ++ "\t\t\t\"wind_deg\": 233,\n" ++ "\t\t\t\"wind_gust\": 8.77,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 803,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"broken clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04n\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(43).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 5.99,\n" ++ "\t\t\t\"feels_like\": 3.21,\n" ++ "\t\t\t\"pressure\": 1027,\n" ++ "\t\t\t\"humidity\": 93,\n" ++ "\t\t\t\"dew_point\": 4.9,\n" ++ "\t\t\t\"uvi\": 0,\n" ++ "\t\t\t\"clouds\": 77,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 3.77,\n" ++ "\t\t\t\"wind_deg\": 230,\n" ++ "\t\t\t\"wind_gust\": 9.2,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 803,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"broken clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(44).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 7.51,\n" ++ "\t\t\t\"feels_like\": 4.8,\n" ++ "\t\t\t\"pressure\": 1027,\n" ++ "\t\t\t\"humidity\": 88,\n" ++ "\t\t\t\"dew_point\": 5.6,\n" ++ "\t\t\t\"uvi\": 0.24,\n" ++ "\t\t\t\"clouds\": 85,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 4.29,\n" ++ "\t\t\t\"wind_deg\": 232,\n" ++ "\t\t\t\"wind_gust\": 9.78,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(45).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 8.75,\n" ++ "\t\t\t\"feels_like\": 5.98,\n" ++ "\t\t\t\"pressure\": 1027,\n" ++ "\t\t\t\"humidity\": 85,\n" ++ "\t\t\t\"dew_point\": 6.23,\n" ++ "\t\t\t\"uvi\": 0.47,\n" ++ "\t\t\t\"clouds\": 89,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 5.12,\n" ++ "\t\t\t\"wind_deg\": 236,\n" ++ "\t\t\t\"wind_gust\": 10.55,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(46).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 9.89,\n" ++ "\t\t\t\"feels_like\": 7.14,\n" ++ "\t\t\t\"pressure\": 1027,\n" ++ "\t\t\t\"humidity\": 81,\n" ++ "\t\t\t\"dew_point\": 6.69,\n" ++ "\t\t\t\"uvi\": 0.66,\n" ++ "\t\t\t\"clouds\": 91,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 5.87,\n" ++ "\t\t\t\"wind_deg\": 240,\n" ++ "\t\t\t\"wind_gust\": 10.95,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t},\n" ++ "\t\t{\n" ++ "\t\t\t\"dt\": ${now.plusHours(47).toEpochSecond(ZoneOffset.UTC)},\n" ++ "\t\t\t\"temp\": 10.55,\n" ++ "\t\t\t\"feels_like\": 9.72,\n" ++ "\t\t\t\"pressure\": 1026,\n" ++ "\t\t\t\"humidity\": 79,\n" ++ "\t\t\t\"dew_point\": 6.9,\n" ++ "\t\t\t\"uvi\": 0.69,\n" ++ "\t\t\t\"clouds\": 92,\n" ++ "\t\t\t\"visibility\": 10000,\n" ++ "\t\t\t\"wind_speed\": 6.06,\n" ++ "\t\t\t\"wind_deg\": 240,\n" ++ "\t\t\t\"wind_gust\": 11.02,\n" ++ "\t\t\t\"weather\": [\n" ++ "\t\t\t\t{\n" ++ "\t\t\t\t\t\"id\": 804,\n" ++ "\t\t\t\t\t\"main\": \"Clouds\",\n" ++ "\t\t\t\t\t\"description\": \"overcast clouds\",\n" ++ "\t\t\t\t\t\"icon\": \"04d\"\n" ++ "\t\t\t\t}\n" ++ "\t\t\t],\n" ++ "\t\t\t\"pop\": 0\n" ++ "\t\t}\n" ++ "\t]\n" ++ "}"+ def responseBody = ValueUtil.JSON.readValue(content, ForecastWindService.WeatherForecastResponseModel.class)+ requestContext.abortWith(+ Response.ok(responseBody, MediaType.APPLICATION_JSON_TYPE).build()+ )+ return+ }++ requestContext.abortWith(Response.serverError().build())+ }+ }++ def "Test adding and removing asset with enabled attributes"() {+ given: "the container environment is started"+ def conditions = new PollingConditions(timeout: 10, delay: 0.2)+ def config = defaultConfig()+ config << [(OPEN_WEATHER_API_APP_ID): "test-key"]++ if (!ForecastWindService.resteasyClient.configuration.isRegistered(mockServer)) {+ ForecastWindService.resteasyClient.register(mockServer, Integer.MAX_VALUE)+ }++ def container = startContainer(config, defaultServices())+ def managerTestSetup = container.getService(SetupService.class).getTaskOfType(ManagerTestSetup.class)+ def assetStorageService = container.getService(AssetStorageService.class)+ def assetPredictedDatapointService = container.getService(AssetPredictedDatapointService.class)+ def assetProcessingService = container.getService(AssetProcessingService.class)+ def forecastWindService = container.getService(ForecastWindService.class)++ expect: "a Future for calculation should exist and the asset should have filled in value for power and powerForecast"+ conditions.eventually {+ assert !forecastWindService.calculationFutures.isEmpty()+ assert forecastWindService.calculationFutures.get(managerTestSetup.electricityWindAssetId) != null+ def windAsset = assetStorageService.find(managerTestSetup.electricityWindAssetId)+ assert windAsset.getAttribute(ElectricityProducerWindAsset.POWER).flatMap { it.value }.orElse(0d) != 0d+ assert windAsset.getAttribute(ElectricityProducerWindAsset.POWER_FORECAST).flatMap { it.value }.orElse(0d) != 0d+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(windAsset.getId(), ElectricityProducerWindAsset.POWER.getName())).size() > 0+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(windAsset.getId(), ElectricityProducerWindAsset.POWER_FORECAST.getName())).size() > 0+ }++ when: "an asset is added with includeForecastWindService set to true"+ def newWindAsset = new ElectricityProducerWindAsset("WindAsset")+ newWindAsset.setParentId(managerTestSetup.electricityOptimisationAssetId)+ newWindAsset.setRealm(managerTestSetup.realmEnergyTenant)+ newWindAsset.setWindSpeedMax(18d);+ newWindAsset.setWindSpeedMin(2d);+ newWindAsset.setWindSpeedReference(12d);+ newWindAsset.setEfficiencyExport(100);+ newWindAsset.setPowerExportMax(2.5);+ newWindAsset.setLocation(new GeoJSONPoint(9.195295, 48.787418));+ newWindAsset.setSetActualValueWithForecast(true);+ newWindAsset.setIncludeForecastWindService(true);+ newWindAsset = assetStorageService.merge(newWindAsset)++ then: "the assetId should be present in the calculationFutures"+ conditions.eventually {+ assert forecastWindService.calculationFutures.get(newWindAsset.getId()) != null+ newWindAsset = assetStorageService.find(newWindAsset.getId())+ assert newWindAsset.getAttribute(ElectricityProducerWindAsset.POWER).flatMap { it.value }.orElse(0d) != 0d+ assert newWindAsset.getAttribute(ElectricityProducerWindAsset.POWER_FORECAST).flatMap { it.value }.orElse(0d) != 0d+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newWindAsset.getId(), ElectricityProducerWindAsset.POWER.getName())).size() > 0+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newWindAsset.getId(), ElectricityProducerWindAsset.POWER_FORECAST.getName())).size() > 0+ }++ when: "an asset is added with includeForecastWindService set to false"+ def newWindAsset2 = new ElectricityProducerWindAsset("WindAsset2")+ newWindAsset2.setParentId(managerTestSetup.electricityOptimisationAssetId)+ newWindAsset2.setRealm(managerTestSetup.realmEnergyTenant)+ newWindAsset2.setWindSpeedMax(18d);+ newWindAsset2.setWindSpeedMin(2d);+ newWindAsset2.setWindSpeedReference(12d);+ newWindAsset2.setEfficiencyExport(100);+ newWindAsset2.setPowerExportMax(2.5);+ newWindAsset2.setLocation(new GeoJSONPoint(9.195275, 48.787418));+ newWindAsset2.setSetActualValueWithForecast(false);+ newWindAsset2.setIncludeForecastWindService(false);+ newWindAsset2 = assetStorageService.merge(newWindAsset2)++ then: "the assetId shouldn't be present in the calculationFutures"+ conditions.eventually {+ assert forecastWindService.calculationFutures.get(newWindAsset2.getId()) == null+ }++ when: "an asset updated it's includeForecastWindService to true"+ assetProcessingService.sendAttributeEvent(new AttributeEvent(newWindAsset2.getId(), ElectricityProducerWindAsset.INCLUDE_FORECAST_WIND_SERVICE.name, true))++ then: "it should be present present in the calculationFutures"+ conditions.eventually {+ assert forecastWindService.calculationFutures.get(newWindAsset2.getId()) != null+ newWindAsset2 = assetStorageService.find(newWindAsset2.getId())+ assert newWindAsset2.getAttribute(ElectricityProducerWindAsset.POWER).flatMap { it.value }.orElse(0d) == 0d+ assert newWindAsset2.getAttribute(ElectricityProducerWindAsset.POWER_FORECAST).flatMap { it.value }.orElse(0d) != 0d+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newWindAsset2.getId(), ElectricityProducerWindAsset.POWER.getName())).size() > 0+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newWindAsset2.getId(), ElectricityProducerWindAsset.POWER_FORECAST.getName())).size() > 0+ }++ when: "an asset updated it's setActualValueWithForecast to true"+ assetProcessingService.sendAttributeEvent(new AttributeEvent(newWindAsset2.getId(), ElectricityProducerWindAsset.SET_ACTUAL_VALUE_WITH_FORECAST.name, true))++ then: "it power should be updated too"+ conditions.eventually {+ newWindAsset2 = assetStorageService.find(newWindAsset2.getId())+ assert newWindAsset2.getAttribute(ElectricityProducerWindAsset.POWER).flatMap { it.value }.orElse(0d) != 0d+ }++ when: "an asset updated it's includeForecastWindService to false"+ assetProcessingService.sendAttributeEvent(new AttributeEvent(newWindAsset2.getId(), ElectricityProducerWindAsset.INCLUDE_FORECAST_WIND_SERVICE.name, false))++ then: "it shouldn't be present present in the calculationFutures"+ conditions.eventually {+ assert forecastWindService.calculationFutures.get(newWindAsset2.getId()) == null+ }++ when: "an asset is added with includeForecastWindService set to true but no location"+ def newWindAsset3 = new ElectricityProducerWindAsset("WindAsset3")+ newWindAsset3.setParentId(managerTestSetup.electricityOptimisationAssetId)+ newWindAsset3.setRealm(managerTestSetup.realmEnergyTenant)+ newWindAsset3.setWindSpeedMax(18d);+ newWindAsset3.setWindSpeedMin(2d);+ newWindAsset3.setWindSpeedReference(12d);+ newWindAsset3.setEfficiencyExport(100);+ newWindAsset3.setPowerExportMax(2.5);+ newWindAsset3.setSetActualValueWithForecast(true);+ newWindAsset3.setIncludeForecastWindService(true);+ newWindAsset3 = assetStorageService.merge(newWindAsset3)++ then: "the assetId shouldn't be present in the calculationFutures"+ conditions.eventually {+ assert forecastWindService.calculationFutures.get(newWindAsset3.getId()) == null+ }++ when: "an asset updated it's location to have a value"+ assetProcessingService.sendAttributeEvent(new AttributeEvent(newWindAsset3.getId(), Asset.LOCATION.name, new GeoJSONPoint(9.195275, 48.787418)))++ and: "trigger the service by setting includeForecastWindService to true again "+ assetProcessingService.sendAttributeEvent(new AttributeEvent(newWindAsset3.getId(), ElectricityProducerWindAsset.INCLUDE_FORECAST_WIND_SERVICE.name, true))++ then: "it should be present present in the calculationFutures"+ conditions.eventually {+ assert forecastWindService.calculationFutures.get(newWindAsset3.getId()) != null+ newWindAsset3 = assetStorageService.find(newWindAsset3.getId())+ assert newWindAsset3.getAttribute(ElectricityProducerWindAsset.POWER).flatMap { it.value }.orElse(0d) != 0d+ assert newWindAsset3.getAttribute(ElectricityProducerWindAsset.POWER_FORECAST).flatMap { it.value }.orElse(0d) != 0d+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newWindAsset3.getId(), ElectricityProducerWindAsset.POWER.getName())).size() > 0+ assert assetPredictedDatapointService.getDatapoints(new AttributeRef(newWindAsset3.getId(), ElectricityProducerWindAsset.POWER_FORECAST.getName())).size() > 0+ }+ }+}