How did you setup? I am at the discovery and it is stuck!!
Make sure when you copied the config file you renamed it “config.json” and that you are typing in your PC’s IP in the smartapp and not your harmony hub IP. If you have anything else running in node.js make sure its not using the same ports(8282).
Here does the IP address go? IN the MQTT? below is what my config looks like. This is probably my issue.
{
“enableHTTPserver”: true,
“mqtt_host”: “mqtt://127.0.0.1”,
“topic_namespace”: “harmony-api”,
“mqtt_options”: {
“port”: 1883,
“username”: “someuser”,
“password”: “somepassword”,
“rejectUnauthorized”: false
}
}
I didnt modify my config file (other than the name), mine looks just like what you have. I was referring to the IP you enter in the ST app
.Windows 10 could have a more aggressive firewall and that might be why you and Bill are having issues at this step. You could try temporarily disabling your firewall to test that theory.
Last question, when you say install git in the harmony-api directory. Are you saying to actually install it there and not under program files on the c drive?
I see now on the server that it is listing an IP address, but the IP address it is listing is my ST hub, not my Harmony hub. any ideas on that?
@Core_Phx any ideas on this?
correct, at least that is what I did to get npm to install without errors.
Where on your server is it listing your ST hub IP? When you first start the instance in cmd it should display your harmony hub’s IP.
’
C:\NodeJS\harmony-api>node app.js
Starting discovery.
Hub discovered: Harmony Hub at 192.168.1.121.
Updating activities for harmony-hub.
’
Yeah, I HATE the firewall on Windows 10.
Can you post a screenshot of what you are seeing?
Looks like some folks are making progress with this. I ditched my install last time, maybe time to revisit with the previous steps mentioned above Windows user here also.
I can do when I get home
We’re trying!!!
(Even though it’s easier on Linux :P) lol
Ok, what I was seeing was from me opening the smart app and hitting save. That is why I was seeing the feed in the server. The good news is that part seems to work. But still stilling on discovery and I turn off all firewalls.
Yeah, I haven’t been able to get that part working. I’ll be able to work on it more this evening though. I have a work issue I have to deal with (silly people wanting their website working… wth are they thinking? lol).
I swear I have never dealt with something so stubborn and relentless to not want to work, arrgh!!!
@Core_Phx Did you have have a chance to figure this out?
Nope. I’ve been up to my neck with work issues last night/this morning. I’ll be able to jump back into it in the next hour or so. I was able to trace it to the ping.js script and something in the Win10 firewall and/or TCP-IP stack. But I haven’t gotten further than that.
And yeah, I’ve never seen a node.js script that is this difficult on Windows. Now I see why the docker/Linux “requirements” are there. It literally took me 10 minutes to set it up start to finish on my Linux box. sigh Now I’m just fighting it because I refuse to let a script (or operating system like Win10) beat me. LOL
@Core_Phx Check this out. I downloaded and installed this.
His config.json is different, you can do manual on it. I loaded it up and guess what, it finds the hub. Only issue I am having is how to add my other 2 hubs to this.
{
“enableHTTPserver”: true,
“hubs”: [
{
“name”: “Living”,
“ip”: “192.168.5.200”
}
]
}
OOHHH!!! Give me a sec to look over the code!
Ok, the “hubs” section is an array. Try this:
“hubs”: [
{ “name”: “Living Room”, “ip”: “192.168.5.200” },
{ “name”: “Next one”, “ip”: “192.168.5.201” },
{ “name”: “Next one”, “ip”: “192.168.5.202” }
]