]> git.basschouten.com Git - openhab-addons.git/blob
4791d09a701c16c4369decded320e30870228dce
[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;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17 import org.openhab.core.thing.ThingUID;
18
19 /**
20  * The {@link BindingConstants} class defines common constants, which are
21  * used across the whole binding.
22  *
23  * @author Sami Salonen - Initial contribution
24  */
25 @NonNullByDefault
26 public class BindingConstants {
27
28     private static final String BINDING_ID = "fmiweather";
29
30     public static final int RETRIES = 3;
31     public static final int RETRY_DELAY_MILLIS = 1500;
32
33     // List of all Thing Type UIDs
34     public static final ThingTypeUID THING_TYPE_OBSERVATION = new ThingTypeUID(BINDING_ID, "observation");
35     public static final ThingTypeUID THING_TYPE_FORECAST = new ThingTypeUID(BINDING_ID, "forecast");
36     public static final ThingUID UID_LOCAL_FORECAST = new ThingUID(BINDING_ID, "forecast", "local");
37
38     // List of all Channel ids
39     public static final String CHANNEL_TIME = "time";
40     public static final String CHANNEL_TEMPERATURE = "temperature";
41     public static final String CHANNEL_HUMIDITY = "humidity";
42     public static final String CHANNEL_WIND_DIRECTION = "wind-direction";
43     public static final String CHANNEL_WIND_SPEED = "wind-speed";
44     public static final String CHANNEL_GUST = "wind-gust";
45     public static final String CHANNEL_PRESSURE = "pressure";
46     public static final String CHANNEL_PRECIPITATION_AMOUNT = "precipitation";
47     public static final String CHANNEL_SNOW_DEPTH = "snow-depth";
48     public static final String CHANNEL_VISIBILITY = "visibility";
49     public static final String CHANNEL_CLOUDS = "clouds";
50     public static final String CHANNEL_OBSERVATION_PRESENT_WEATHER = "present-weather";
51
52     public static final String CHANNEL_TOTAL_CLOUD_COVER = "total-cloud-cover";
53     public static final String CHANNEL_PRECIPITATION_INTENSITY = "precipitation-intensity";
54     public static final String CHANNEL_FORECAST_WEATHER_ID = "weather-id";
55
56     // Configuration properties
57     public static final String FMISID = "fmisid";
58     public static final String LOCATION = "location";
59 }