Jump to content

Recommended Posts

Posted

With 0.9.4 I'm still having issues getting it to connect with my 1st gen.

 

When I enter the ipaddress:port I'm getting a tooltip message that says "! Please match the requested format"  I'm entering 192.168.92.56:443 so I'm not sure why that doesn't match the requested format.  Am I missing something?

 

If I go with just the IP address, it accepts it but I'm getting:

 

2018-02-07 17:06:52 - RainMachine Login Error - Unable to connect to the remote server [rain1]

 

I know it's possible to connect and interact with my rainmachine with local authentication as I have a HomeSeer plug-in that works with it.

Posted

Oops that's my bad.  I added regex checks to the IP address fields in NodeLink but forgot to take into account the possible addition of ports.  I'll clean that up in a new release shortly.

Posted

With 0.9.5 it does accept the port number but now I get:

 

2018-02-08 15:22:00 - RainMachine Login Error - The underlying connection was closed: The connection was closed unexpectedly. [rain1]
 
I don't know if this helps, but with my HS plug-in I'm connecting to:
 
 
and posting:
{
"pwd":"<passwrd>",
"remember": 1
}
 
I'm using C# and have to also handle the invalid certificate and force disable the Expect: 100-continue header to get authentication working.
 
I believe my code works for later RM modes also although my sample size is very small (1 new generation RM)
Posted

Yet another stupid bug.  It's cause it's still using http when you set from the config until you restart.

 

The address saved is fine though, so rebooting NodeLink should get it up and running (it loads the address properly with https).  Will fix in next version.

Posted

After a restart the error changes but still not working

 

2018-02-09 09:20:23 - ISY NodeLink Server v0.9.5 started
2018-02-09 09:20:23 - Web config server started (http://192.168.92.205:8090)
2018-02-09 09:20:23 - ISY resolved to 192.168.92.26
2018-02-09 09:20:23 - ISY Node Server config detected (profile 1)
2018-02-09 09:20:24 - Warning: nodesetup.zip file needs updating in ISY
2018-02-09 09:20:29 - RainMachine Login Error - The remote server returned an error: (400) Bad Request. [rain1]
Posted

And for some reason the last post lost more than half of what I wrote

 

I logged the connection with my HS plug-in and get the following. You'll notice that the response from my HW version 1 box is different from what a newer box will return.  Is is possible that your response parsing is failing on this?  I know I had issues with it when trying to get my code working on a newer box.

 

If you want me to try pre-release versions to help debug, let me know.

 

 

RainMachine HW version: 1 SW version: 3.74 API: 3.64
Attempting to authenticate with https://192.168.92.56/api/4/auth/login
Got response: {"statusCode": 0, "access_token":"NMAMFMCMPAAGAJMA", "expires_in":157680000 }
Posted

Wouldn't be the parse or I'd get a JSON error.  Any chance you could open the port up so I can connect from here?  There must be something silly/different in the request post.

Posted

Wouldn't be the parse or I'd get a JSON error.  Any chance you could open the port up so I can connect from here?  There must be something silly/different in the request post.

 

Sure, to the rainmachine or nodelink?  

 

I won't be able to do it until a bit later tonight, but I can PM you the info.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...