From 77d3084b019af0881dff01d520d40199829b4943 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 19 Feb 2016 16:34:04 -0600 Subject: [PATCH] Finished slider for testint items with percentage items. Many refactors and fixes. Fixes #43 Fixes #46 Fixes #47 Fixes #48 --- README.md | 31 +---- pom.xml | 2 +- .../bwssystems/HABridge/BackupHandler.java | 2 +- .../bwssystems/HABridge/BridgeSettings.java | 12 +- .../HABridge/BridgeSettingsDescriptor.java | 8 -- .../bwssystems/HABridge/Configuration.java | 5 +- .../devicemanagmeent/DeviceResource.java | 2 +- .../bwssystems/HABridge/hue/HueMulator.java | 81 ++++++----- .../com/bwssystems/harmony/HarmonyHome.java | 10 +- .../com/bwssystems/harmony/HarmonyServer.java | 22 +-- .../public/css/bootstrap-theme.min.css | 6 + src/main/resources/public/index.html | 10 +- src/main/resources/public/scripts/app.js | 127 ++++++++++++------ .../resources/public/views/configuration.html | 4 + src/main/resources/public/views/system.html | 20 +-- 15 files changed, 193 insertions(+), 149 deletions(-) create mode 100644 src/main/resources/public/css/bootstrap-theme.min.css diff --git a/README.md b/README.md index 811c75e..8e3fc4b 100644 --- a/README.md +++ b/README.md @@ -9,35 +9,12 @@ Otherwise, downloads are available at https://github.com/bwssytems/ha-bridge/rel ## Run Then locate the jar and start the server with: ``` -java -jar -Dupnp.config.address=A.B.C.D -Dvera.address=E.F.G.H -Dharmony.address=W.X.Y.Z -Dharmony.user=myself -Dharmony.pwd=passwd ha-bridge-W.X.Y.jar +java -jar ha-bridge-W.X.Y.jar ``` ## Available Arguments -### -Dupnp.config.address=`` -The server defaults to the first available address on the host if this is not given. This default may NOT be the correct IP that is your public IP for your host on the network. It is best to set this parameter to not have discovery issues. Replace the -Dupnp.config.address=`` value with the server ipv4 address you would like to use as the address that any upnp device will call after discovery. -### -Dvera.address=`` | `<{devices:[{name:avera,ip:x.y.w.z},{name:anothervera,ip:a.b.c.d}]}>` -The argument for the vera address should be given as it the system does not have a way to find the address. Supply -Dvera.address=X.Y.Z.A on the command line to provide it. If a vera is not used, do not set it. To provide multiple veras, use the json style notation outlined above to provide the list. The json notation may need to be surrounded by quotation marks when starting from a shell script. Most service scripts will not need the quotation marks. This argument is backwards compatible. -### -Dserver.port=`` -The server defaults to running on port 8080. If you're already running a server (like openHAB) on 8080, -Dserver.port=`` on the command line. -### -Dupnp.device.db=`` -The default location for the db to contain the devices as they are added is the relative path from where the bridge is started in "data/device.db". If you would like a different filename or directory, specify -Dupnp.devices.db=`/` explicitly. -### -Dupnp.response.port=`` -The upnp response port that will be used. The default is 50000. -### -Dharmony.address=`` | `<{devices:[{name:ahub,ip:x.y.w.z},{name:anotherhub,ip:a.b.c.d}]}>` -The argument for the Harmony Hub address should be given as the system does not have a way to find the address. Supply -Dharmony.address=X.Y.Z.A on the command line to provide it. If a Harmony Hub is not used, do not set it. To provide multiple harmony hubs, use the json style notation outlined above to provide the list. The json notation may need to be surrounded by quotation marks when starting from a shell script. Most service scripts will not need the quotation marks. This argument is backwards compatible. -### -Dharmony.user=`` -The user name of the MyHarmony.com account for the Harmony Hub. This needs to be given if you are using the Harmony Hub features, provide -Dharmony.user=`` on the command line. -### -Dharmony.pwd=`` -The password for the user name of the MyHarmony.com account for the Harmony Hub. This needs to be given if you are using the Harmony Hub Features, provide -Dharmony.pwd=`` on the command line. -### -Dbutton.sleep=`