]> git.basschouten.com Git - openhab-addons.git/blob
359a757b050d0173ccc82a64af687fc4649d0af0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.fmiweather.internal.client;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Request for weather forecasts
19  *
20  * @author Sami Salonen - Initial contribution
21  *
22  */
23 @NonNullByDefault
24 public class ForecastRequest extends Request {
25
26     public static final String STORED_QUERY_ID = "fmi::forecast::harmonie::surface::point::multipointcoverage";
27
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 };
41
42     public ForecastRequest(QueryParameter location, long startEpoch, long endEpoch, long timestepMinutes) {
43         super(STORED_QUERY_ID, location, startEpoch, endEpoch, timestepMinutes, PARAMETERS);
44     }
45 }