]> git.basschouten.com Git - openhab-addons.git/blob
e6a0d58b588b1051af81dd787ef6e3373833e598
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.opensprinkler.internal.api;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link OpenSprinklerApiContents} class defines common constants, which are
19  * used across OpenSprinkler API classes.
20  *
21  * @author Chris Graham - Initial contribution
22  */
23 @NonNullByDefault
24 public class OpenSprinklerApiConstants {
25     public static final String HTTP_REQUEST_URL_PREFIX = "http://";
26     public static final String HTTPS_REQUEST_URL_PREFIX = "https://";
27
28     public static final String DEFAULT_ADMIN_PASSWORD = "opendoor";
29     public static final int DEFAULT_API_PORT = 80;
30     public static final int DEFAULT_STATION_COUNT = 8;
31
32     public static final String CMD_ENABLE_MANUAL_MODE = "mm=1";
33     public static final String CMD_DISABLE_MANUAL_MODE = "mm=0";
34     public static final String CMD_PASSWORD = "pw=";
35     public static final String CMD_STATION = "sid=";
36     public static final String CMD_STATION_ENABLE = "en=1";
37     public static final String CMD_STATION_DISABLE = "en=0";
38
39     public static final String CMD_STATUS_INFO = "jc";
40     public static final String CMD_OPTIONS_INFO = "jo";
41     public static final String CMD_STATION_INFO = "js";
42     public static final String CMD_STATION_CONTROL = "cm";
43
44     public static final String JSON_OPTION_FIRMWARE_VERSION = "fwv";
45     public static final String JSON_OPTION_RAINSENSOR = "rs";
46     public static final String JSON_OPTION_STATION = "sn";
47     public static final String JSON_OPTION_STATION_COUNT = "nstations";
48
49     public static final String JSON_OPTION_RESULT = "result";
50 }