mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 16:17:30 +00:00
Update for start of virtualize multiple respnses
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.bwssystems.HABridge</groupId>
|
<groupId>com.bwssystems.HABridge</groupId>
|
||||||
<artifactId>ha-bridge</artifactId>
|
<artifactId>ha-bridge</artifactId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.0a</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HA Bridge</name>
|
<name>HA Bridge</name>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ public class BridgeSettings {
|
|||||||
private String harmonyaddress;
|
private String harmonyaddress;
|
||||||
private String harmonyuser;
|
private String harmonyuser;
|
||||||
private String harmonypwd;
|
private String harmonypwd;
|
||||||
|
private Integer upnpresponsedevices;
|
||||||
private boolean upnpstrict;
|
private boolean upnpstrict;
|
||||||
private boolean traceupnp;
|
private boolean traceupnp;
|
||||||
private boolean devmode;
|
private boolean devmode;
|
||||||
@@ -61,6 +62,12 @@ public class BridgeSettings {
|
|||||||
public void setHarmonyPwd(String harmonypwd) {
|
public void setHarmonyPwd(String harmonypwd) {
|
||||||
this.harmonypwd = harmonypwd;
|
this.harmonypwd = harmonypwd;
|
||||||
}
|
}
|
||||||
|
public Integer getUpnpResponseDevices() {
|
||||||
|
return upnpresponsedevices;
|
||||||
|
}
|
||||||
|
public void setUpnpResponseDevices(Integer upnpresponsedevices) {
|
||||||
|
this.upnpresponsedevices = upnpresponsedevices;
|
||||||
|
}
|
||||||
public boolean isUpnpStrict() {
|
public boolean isUpnpStrict() {
|
||||||
return upnpstrict;
|
return upnpstrict;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package com.bwssystems.HABridge;
|
|||||||
public class Configuration {
|
public class Configuration {
|
||||||
public final static String DEVICE_DB_DIRECTORY = "data/device.db";
|
public final static String DEVICE_DB_DIRECTORY = "data/device.db";
|
||||||
public final static String UPNP_RESPONSE_PORT = "50000";
|
public final static String UPNP_RESPONSE_PORT = "50000";
|
||||||
|
public final static String UPNP_RESPONSE_DEVICES = "30";
|
||||||
public final static String DEFAULT_VERA_ADDRESS = "1.1.1.1";
|
public final static String DEFAULT_VERA_ADDRESS = "1.1.1.1";
|
||||||
public final static String DEFAULT_HARMONY_ADDRESS = "1.1.1.1";
|
public final static String DEFAULT_HARMONY_ADDRESS = "1.1.1.1";
|
||||||
public final static String DEFAULT_HARMONY_USER = "";
|
public final static String DEFAULT_HARMONY_USER = "";
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public class HABridge {
|
|||||||
bridgeSettings.setUpnpStrict(Boolean.parseBoolean(System.getProperty("upnp.strict", "true")));
|
bridgeSettings.setUpnpStrict(Boolean.parseBoolean(System.getProperty("upnp.strict", "true")));
|
||||||
bridgeSettings.setTraceupnp(Boolean.parseBoolean(System.getProperty("trace.upnp", "false")));
|
bridgeSettings.setTraceupnp(Boolean.parseBoolean(System.getProperty("trace.upnp", "false")));
|
||||||
bridgeSettings.setDevMode(Boolean.parseBoolean(System.getProperty("dev.mode", "false")));
|
bridgeSettings.setDevMode(Boolean.parseBoolean(System.getProperty("dev.mode", "false")));
|
||||||
|
bridgeSettings.setUpnpResponseDevices(Integer.parseInt(System.getProperty("upnp.response.devices", Configuration.UPNP_RESPONSE_DEVICES)));
|
||||||
|
|
||||||
// sparkjava config directive to set ip address for the web server to listen on
|
// sparkjava config directive to set ip address for the web server to listen on
|
||||||
// ipAddress("0.0.0.0"); // not used
|
// ipAddress("0.0.0.0"); // not used
|
||||||
|
|||||||
Reference in New Issue
Block a user