]> git.basschouten.com Git - openhab-addons.git/blob
52811650ea28fbb3f45af123409f31b17df4bab2
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.config;
14
15 import static org.openhab.binding.opensprinkler.internal.OpenSprinklerBindingConstants.DEFAULT_ADMIN_PASSWORD;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * The {@link OpenSprinklerHttpInterfaceConfig} class defines the configuration options
21  * for the OpenSprinkler Thing.
22  *
23  * @author Chris Graham - Initial contribution
24  */
25 @NonNullByDefault
26 public class OpenSprinklerHttpInterfaceConfig {
27     /**
28      * Hostname of the OpenSprinkler API.
29      */
30     public String hostname = "";
31
32     /**
33      * The port the OpenSprinkler API is listening on.
34      */
35     public int port = 80;
36
37     /**
38      * The password to connect to the OpenSprinkler API.
39      */
40     public String password = DEFAULT_ADMIN_PASSWORD;
41
42     /**
43      * Number of seconds in between refreshes from the OpenSprinkler device.
44      */
45     public int refresh = 60;
46
47     /**
48      * Number of seconds for connection timeouts
49      */
50     public int timeout = 5;
51
52     /**
53      * Number of retries in case of connection timeouts
54      */
55     public int retry = 3;
56
57     /**
58      * The basic auth username to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
59      */
60     public String basicUsername = "";
61     /**
62      * The basic auth password to use when the OpenSprinkler device is behind a reverse proxy with basic auth enabled.
63      */
64     public String basicPassword = "";
65 }