2 * Copyright (c) 2010-2021 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.opensprinkler.internal.api;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link OpenSprinklerApiContents} class defines common constants, which are
19 * used across OpenSprinkler API classes.
21 * @author Chris Graham - Initial contribution
24 public class OpenSprinklerApiConstants {
25 public static final String HTTP_REQUEST_URL_PREFIX = "http://";
26 public static final String HTTPS_REQUEST_URL_PREFIX = "https://";
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;
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";
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";
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";
49 public static final String JSON_OPTION_RESULT = "result";