2 * Copyright (c) 2010-2024 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.fmiweather.internal.client;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Request for weather forecasts
20 * @author Sami Salonen - Initial contribution
24 public class ForecastRequest extends Request {
26 public static final String STORED_QUERY_ID = "fmi::forecast::harmonie::surface::point::multipointcoverage";
28 // For description of variables: http://opendata.fmi.fi/meta?observableProperty=forecast
29 public static final String PARAM_TEMPERATURE = "Temperature";
30 public static final String PARAM_HUMIDITY = "Humidity";
31 public static final String PARAM_WIND_DIRECTION = "WindDirection";
32 public static final String PARAM_WIND_SPEED = "WindSpeedMS";
33 public static final String PARAM_WIND_GUST = "WindGust";
34 public static final String PARAM_PRESSURE = "Pressure";
35 public static final String PARAM_PRECIPITATION_1H = "Precipitation1h";
36 public static final String PARAM_TOTAL_CLOUD_COVER = "TotalCloudCover";
37 public static final String PARAM_WEATHER_SYMBOL = "WeatherSymbol3";
38 public static final String[] PARAMETERS = new String[] { PARAM_TEMPERATURE, PARAM_HUMIDITY, PARAM_WIND_DIRECTION,
39 PARAM_WIND_SPEED, PARAM_WIND_GUST, PARAM_PRESSURE, PARAM_PRECIPITATION_1H, PARAM_TOTAL_CLOUD_COVER,
40 PARAM_WEATHER_SYMBOL };
42 public ForecastRequest(QueryParameter location, long startEpoch, long endEpoch, long timestepMinutes) {
43 super(STORED_QUERY_ID, location, startEpoch, endEpoch, timestepMinutes, PARAMETERS);