GithubHelp home page GithubHelp logo

Comments (9)

bwssytems avatar bwssytems commented on July 28, 2024

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.

willplaice avatar willplaice commented on July 28, 2024

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.

bwssytems avatar bwssytems commented on July 28, 2024

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.

willplaice avatar willplaice commented on July 28, 2024

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.

bwssytems avatar bwssytems commented on July 28, 2024

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.

willplaice avatar willplaice commented on July 28, 2024

ok let me put this into a Debian VM and retry

from ha-bridge.

cr4zyg047 avatar cr4zyg047 commented on July 28, 2024

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.

bwssytems avatar bwssytems commented on July 28, 2024

No activity so closing this issue.

from ha-bridge.

willplaice avatar willplaice commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.