2 * Copyright (c) 2010-2023 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.config;
15 import static org.openhab.binding.opensprinkler.internal.OpenSprinklerBindingConstants.DEFAULT_ADMIN_PASSWORD;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The {@link OpenSprinklerHttpInterfaceConfig} class defines the configuration options
21 * for the OpenSprinkler Thing.
23 * @author Chris Graham - Initial contribution
26 public class OpenSprinklerHttpInterfaceConfig {
28 * Hostname of the OpenSprinkler API.
30 public String hostname = "";
33 * The port the OpenSprinkler API is listening on.
38 * The password to connect to the OpenSprinkler API.
40 public String password = DEFAULT_ADMIN_PASSWORD;
43 * Number of seconds in between refreshes from the OpenSprinkler device.
45 public int refresh = 60;
48 * Number of seconds for connection timeouts
50 public int timeout = 5;
53 * Number of retries in case of connection timeouts
58 * The basic auth username to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
60 public String basicUsername = "";
62 * The basic auth password to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
64 public String basicPassword = "";