maddox / harmony-api

🗼 A simple server allowing you to query/control multiple local Harmony Home Hubs over HTTP or MQTT
MIT License
394 stars 115 forks source link

Stuck on "Starting Discovery" in development mod #80

Closed camcdonald1 closed 6 years ago

camcdonald1 commented 6 years ago

I've installed on a full Ubuntu 16.04 distro (not docker). I can't install the production server so am attempting to run the script/server in development mode. In dev mode the script runs but never finds the Hub on my home network. I ran debug and get the message below. I've tried flushing IPtables but that doesn't help. The hub is working and discovered on my home network, just not through Harmony-API. Note, I'm not looking for MQTT functionality yet, just HTTP to begin with. Let me know if there are known issues or if you have ideas on how I can debug this problem and get the HTTP server working.

harmony-api@2.3.5 start /home/chris/harmony-api-master node app.js Starting Discovery.

maddox commented 6 years ago

Is upnp disabled on your router? It uses UPNP to discover the hub. Also, make sure both the server and hubs are on the same subnet.

camcdonald1 commented 6 years ago

Thanks for the fast reply. UPNP was initially on. I turned it off, restarted and then flipped it back to on. Still no resolution. I'm not sure about the subnet question, or how to verify that - but that is what I will google next.

camcdonald1 commented 6 years ago

I've confirmed both the server and hub are on the same subnet. Also, as previously stated UPNP is enabled.

camcdonald1 commented 6 years ago

This has been resolved after adding eth0 to my etc startup config file and connecting an ethernet cord to hardwire connect my laptop.