i got it working
there was a setting not right (UPNP IP Address in the web interface was wrong)
but now i have an other question...
i want to change the default port to port '80' (because thats the only way to let it work with google home)
but wen i use the command:
sudo java -jar -Dserver.port=80 ha-bridge-3.5.1.jar
this happens:
Code: Select all
pi@raspberrypi:~/habridge$ sudo java -jar -Dserver.port=80 ha-bridge-3.5.1.jar
2017-01-27 22:07:20,061 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridg e (v3.5.1) starting....
2017-01-27 22:07:20,179 [main] INFO com.bwssystems.HABridge.BridgeSettings - re ading from config file: data/habridge.config
2017-01-27 22:07:20,600 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridg e initializing....
2017-01-27 22:07:20,702 [main] INFO com.bwssystems.HABridge.SystemControl - Sys tem control service started....
2017-01-27 22:07:21.342:INFO::Thread-0: Logging initialized @4038ms
2017-01-27 22:07:21,864 [Thread-0] INFO spark.webserver.JettySparkServer - == S park has ignited ...
2017-01-27 22:07:21,875 [Thread-0] INFO spark.webserver.JettySparkServer - >> L istening on 0.0.0.0:80
2017-01-27 22:07:21.894:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT
2017-01-27 22:07:22.262:INFO:oejs.ServerConnector:Thread-0: Started ServerConnec tor@1476d3d{HTTP/1.1,[http/1.1]}{0.0.0.0:80}
2017-01-27 22:07:22.269:INFO:oejs.Server:Thread-0: Started @4983ms
2017-01-27 22:07:23,198 [main] INFO com.bwssystems.harmony.HarmonyServer - setu p initiated ....
2017-01-27 22:07:26,342 [main] ERROR com.bwssystems.harmony.HarmonyHome - Cannot get harmony client (Harmony) setup, Exiting with message: Failed communicating with Harmony Hub
java.lang.RuntimeException: Failed communicating with Harmony Hub
at net.whistlingfish.harmony.HarmonyClient.connect(HarmonyClient.java:17 9)
at com.bwssystems.harmony.HarmonyServer.execute(HarmonyServer.java:78)
at com.bwssystems.harmony.HarmonyServer.setup(HarmonyServer.java:50)
at com.bwssystems.harmony.HarmonyHome.<init>(HarmonyHome.java:45)
at com.bwssystems.HABridge.HABridge.main(HABridge.java:70)
Caused by: org.jivesoftware.smack.SmackException$ConnectionException: null
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguratio n(XMPPTCPConnection.java:433)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPC onnection.java:808)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396 )
at net.whistlingfish.harmony.HarmonyClient.connect(HarmonyClient.java:11 5)
... 4 common frames omitted
2017-01-27 22:07:26,464 [main] INFO com.bwssystems.HABridge.devicemanagmeent.De viceResource - HABridge device management service started....
2017-01-27 22:07:26,537 [main] INFO com.bwssystems.HABridge.upnp.UpnpSettingsRe source - Hue description service started....
2017-01-27 22:07:26,551 [main] INFO com.bwssystems.util.UDPDatagramSender - Ini tializing UDP response Seocket...
2017-01-27 22:07:26,567 [main] INFO com.bwssystems.util.UDPDatagramSender - UDP response Seocket initialized to: 50000
2017-01-27 22:07:28,223 [main] INFO com.bwssystems.HABridge.hue.HueMulator - Hu e emulator service started....
2017-01-27 22:07:28,277 [main] INFO com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener starting....
2017-01-27 22:07:28,283 [main] INFO com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener running and ready....
and then it all works (habridge is running on port 80)
but..
as long i keep running putty it works, but when i close putty, or use 'Control + C' to end the action (because it doesnt end on its own for some reason?) then it is not running on port 80 anymore...