]> git.basschouten.com Git - openhab-addons.git/blob
a1cf0b6e743a8a4a2710132cf3370bf552f51315
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.sagercaster.internal;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 /**
21  * The {@link SagerCasterBindingConstants} class defines common constants, which are
22  * used across the whole binding.
23  *
24  * @author GaĆ«l L'hopital - Initial contribution
25  */
26 @NonNullByDefault
27 public class SagerCasterBindingConstants {
28
29     public static final String BINDING_ID = "sagercaster";
30     public static final String LOCAL = "local";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_SAGERCASTER = new ThingTypeUID(BINDING_ID, "sagercaster");
34
35     // Configuration elements
36     public static final String CONFIG_LOCATION = "location";
37     public static final String CONFIG_PERIOD = "observation-period";
38
39     // List of all Channel Groups Group Channel ids
40     public static final String GROUP_OUTPUT = "output";
41
42     // Output channel ids
43     public static final String CHANNEL_FORECAST = "forecast";
44     public static final String CHANNEL_VELOCITY = "velocity";
45     public static final String CHANNEL_VELOCITY_BEAUFORT = "velocity-beaufort";
46     public static final String CHANNEL_WINDFROM = "wind-from";
47     public static final String CHANNEL_WINDTO = "wind-to";
48     public static final String CHANNEL_WINDEVOLUTION = "wind-evolution";
49     public static final String CHANNEL_PRESSURETREND = "pressure-trend";
50     public static final String CHANNEL_TEMPERATURETREND = "temperature-trend";
51     public static final String CHANNEL_TIMESTAMP = "timestamp";
52
53     // Input channel ids
54     public static final String CHANNEL_CLOUDINESS = "cloudiness";
55     public static final String CHANNEL_IS_RAINING = "is-raining";
56     public static final String CHANNEL_RAIN_QTTY = "rain-qtty";
57     public static final String CHANNEL_WIND_SPEED = "wind-speed-beaufort";
58     public static final String CHANNEL_TEMPERATURE = "temperature";
59     public static final String CHANNEL_PRESSURE = "pressure";
60     public static final String CHANNEL_WIND_ANGLE = "wind-angle";
61
62     // Some algorythms constants
63     public static final String FORECAST_PENDING = "0";
64     public static final Set<String> SHOWERS = Set.of("G", "K", "L", "R", "S", "T", "U", "W");
65 }