From 346e6f602421d6f5dbc9062c0a59208d77fa4b0a Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Thu, 20 Aug 2020 11:06:58 +0200 Subject: [PATCH] Added VIPSWeatherProxy URL as system property --- .../nibio/vips/util/weather/FMIWeatherForecastprovider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/no/nibio/vips/util/weather/FMIWeatherForecastprovider.java b/src/main/java/no/nibio/vips/util/weather/FMIWeatherForecastprovider.java index 12f6f0d0..9915633a 100644 --- a/src/main/java/no/nibio/vips/util/weather/FMIWeatherForecastprovider.java +++ b/src/main/java/no/nibio/vips/util/weather/FMIWeatherForecastprovider.java @@ -34,8 +34,8 @@ import no.nibio.vips.logic.entity.PointOfInterest; * @author Tor-Einar Skog <tor-einar.skog@nibio.no> */ public class FMIWeatherForecastprovider implements WeatherForecastProvider { - - private final static String FMI_VIPS_WEATHER_PROXY_URL = "http://localhost:8080/VIPSWeatherProxy/rest/forecasts/fmi?longitude={0}&latitude={1}&altitude={2}"; + + private final static String FMI_VIPS_WEATHER_PROXY_URL = System.getProperty("no.nibio.vips.logic.weather.VIPS_WEATHER_PROXY_BASE_URL") + "/rest/forecasts/fmi?longitude={0}&latitude={1}&altitude={2}"; @Override public List<WeatherObservation> getWeatherForecasts(PointOfInterest location) throws ParseWeatherDataException { -- GitLab