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;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ThingTypeUID;
17 import org.openhab.core.thing.ThingUID;
20 * The {@link BindingConstants} class defines common constants, which are
21 * used across the whole binding.
23 * @author Sami Salonen - Initial contribution
26 public class BindingConstants {
28 private static final String BINDING_ID = "fmiweather";
30 public static final int RETRIES = 3;
31 public static final int RETRY_DELAY_MILLIS = 1500;
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");
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";
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";
56 // Configuration properties
57 public static final String FMISID = "fmisid";
58 public static final String LOCATION = "location";