Skip to content

Discover does not find hub #92

@dok18

Description

@dok18

harmony-api is running on 192.168.0.33
hub is on 192.168.0.33.35

harmony-api is running on Raspberry-PI with Raspbian:

pi@raspi:~/harmony-api $ script/server
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
Starting discovery.
'[2018-03-25T17:04:34.453Z] - ::ffff:127.0.0.1 - GET /hubs 500 2.764 ms - 32b
pi@raspi:~/harmony-api $ curl http://127.0.0.1:8282/hubs
{"message":"No hubs available."}

I can ping hub:

pi@raspi:~/harmony-api $ ping 192.168.0.35
PING 192.168.0.35 (192.168.0.35) 56(84) bytes of data.
64 bytes from 192.168.0.35: icmp_seq=1 ttl=64 time=3.26 ms
64 bytes from 192.168.0.35: icmp_seq=2 ttl=64 time=1.20 ms

There is no firewall.

This is my config.json:

pi@raspi:~/harmony-api $ cat config/config.json 
{
  "enableHTTPserver": true,
  "mqtt_host": "mqtt://127.0.0.1",
  "topic_namespace": "harmony-api",
  "hub_ip": "192.168.0.35",
  "mqtt_options": {
      "port": 1883,
      "username": "someuser",
      "password": "somepassword",
      "rejectUnauthorized": false,
      "hub_ip": "192.168.0.35"
  }
}

I tried adding hub_ip directly to config.json without any success.

How can I debug this? Do I have to enable something in my local network? Do I have to enable something in the hub?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions