Comments (9)
It needs to be in a specific order for Java command lines. Parameters go before the jar like this:
java -jar -Dupnp.config.address=192.168.1.243 -Dserver.port=8081 -Dupnp.response.port=50099 ha-bridge-1.3.8.jar
from ha-bridge.
ok changed and it picked up the port ok - but i think i'm still stuck on the udp settings ?
ns:target administrator$ java -jar -Dupnp.config.address=192.168.1.243 -Dserver.port=8081 -Dupnp.response.port=50005 ha-bridge-1.3.8.jar
[main] INFO com.bwssystems.HABridge.HABridge - HA Bridge (v1.3.8) starting setup....
[main] INFO com.bwssystems.NestBridge.NestHome - not a valid nest
[main] INFO com.bwssystems.HABridge.devicemanagmeent.DeviceResource - HABridge device management service started....
2016-02-09 14:51:31.743:INFO::Thread-0: Logging initialized @257ms
[Thread-0] INFO spark.webserver.JettySparkServer - == Spark has ignited ...
[Thread-0] INFO spark.webserver.JettySparkServer - >> Listening on 0.0.0.0:8081
2016-02-09 14:51:31.812:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT
2016-02-09 14:51:31.848:INFO:oejs.ServerConnector:Thread-0: Started ServerConnector@41bdaf97{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
2016-02-09 14:51:31.848:INFO:oejs.Server:Thread-0: Started @365ms
[main] INFO com.bwssystems.HABridge.hue.HueMulator - Hue emulator service started....
[main] INFO com.bwssystems.HABridge.upnp.UpnpSettingsResource - Hue description service started....
[main] INFO com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener starting....
[main] ERROR com.bwssystems.HABridge.upnp.UpnpListener - UpnpListener encountered an error opening sockets. Shutting down
java.net.SocketException: Address already in use
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.joinGroup(AbstractPlainDatagramSocketImpl.java:203)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:406)
at com.bwssystems.HABridge.upnp.UpnpListener.startListening(UpnpListener.java:65)
at com.bwssystems.HABridge.HABridge.main(HABridge.java:150)
[main] INFO com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener Stopped
from ha-bridge.
You have a process already running using that port identified by the error "java.net.SocketException: Address already in use" above.
Make sure you did not leave any java processes running.
from ha-bridge.
ok (and thanks very much for helping)
i don't see another java service (ps -e shows nothing) and I see nothing listening on any UDP port:
ns:~ administrator$ lsof -Pi | grep LISTEN
iTunes 820 administrator 24u IPv4 0xd11b959432f0e0fb 0t0 TCP *:54749 (LISTEN)
iTunes 820 administrator 36u IPv4 0xd11b959432f7f0fb 0t0 TCP *:3689 (LISTEN)
iTunes 820 administrator 37u IPv6 0xd11b9594320f449b 0t0 TCP *:3689 (LISTEN)
Plex\x20M 1024 administrator 59u IPv4 0xd11b959432eff8e3 0t0 TCP *:32400 (LISTEN)
Plex\x20M 1024 administrator 60u IPv4 0xd11b9594346460fb 0t0 TCP *:32401 (LISTEN)
Plex\x20S 1083 administrator 10u IPv4 0xd11b9594368258e3 0t0 TCP *:58103 (LISTEN)
Plex\x20S 1399 administrator 4u IPv4 0xd11b959432f488e3 0t0 TCP *:64124 (LISTEN)
java 74048 administrator 27u IPv6 0xd11b95943920bf5b 0t0 TCP *:8081 (LISTEN)
(running on OSX).... would appreciate any other advice ?
from ha-bridge.
So looking at this a bit more, it seems that OSX is not letting you join the multicast port for upnp! Not good. This is the default port (1900) for listening to the broadcast requests for upnp config and is supposed to be joinable. Wondering if iti is a permissions issue. Not an OSX person, but is there a "root" level user that can be tried as it may be a permissions issue.
from ha-bridge.
ok let me put this into a Debian VM and retry
from ha-bridge.
Here's a BAT file example that gives you an easily customizable foundation. Configure the parameters like IP - but port is optional.
A friend wrote this yesterday to make running it easier for himself.
https://github.com/dale3h/amazon-echo-bridge-launcher
from ha-bridge.
No activity so closing this issue.
from ha-bridge.
Just wanted to say thanks. All working on Ubuntu
Will
On 19 Feb 2016, at 14:17, bwssytems [email protected] wrote:
No activity so closing this issue.
—
Reply to this email directly or view it on GitHub.
from ha-bridge.
Related Issues (20)
- How to specify the port to be used when running ha_bridge with https? HOT 7
- New set up discovery issues, UPNP discovery address not found? HOT 8
- Hub emulation isn't working consistently for an app that supports Philips Hue in local mode HOT 2
- executing curl ? HOT 2
- When using systemd to start the bridge, the static IP is not always known at service start. HOT 1
- After last raspberry pi updates ha bridge is not starting anymore HOT 1
- Installation of HA-Bridge HOT 2
- Has the Java dependency moved on from 8 to 11? :-( HOT 2
- Should new devices be given 9-octet IDs by default? HOT 2
- Executing .bat script Windows HOT 17
- 2023: HA-Bridge does not work anymore (no device detection possible) HOT 41
- Cannot Link HA Bridge to Harmony Hub HOT 6
- Backup recovery not working HOT 1
- HA Bridge any refresh planned ? HOT 4
- cant exec shell script HOT 4
- Alexa can no longer set bright/dim percentage HOT 2
- Philips HUE app finds ha-bridge as HUE Bridge, but asks for me to press "the button in the center" to connect... HOT 3
- Add / update bridges devices without SPA url ? HOT 1
- Home Assistant Z-Wave Fan Speed HOT 2
- Feature request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-bridge.