Rain Machine not autheticating
So, I have rain machine-12 that was integrated into my savant controlling system as of last march. Since the updated last March it won't authenticating correctly. I am using Postman to determine this and getting the same result though terminal. I know the the account has to be authenticated in order to hold the access token the same. I have tried forgetting the email and changed email address with no such luck. Anybody else ran into this issue?
-
I'm not sure how Savant integration work but maybe we can make it work if you give me some details. I guess Savant uses remote authentication using email address and password (or token) ? Can you tell me what are you trying from Postman and what Postman environment you have setup ?
-
These are the Notes on the Savant Profile:
RainMachine has released a fix in their beta software to resolve control issue. You will need to enable beta update in RainMachine configuration. Find "Enable beta quality update" in the configuration and set to enable. If you rather official software with a fix, then please contact RainMachine when they will release their official software.
Please be aware that as this profile has only custom commands, it will require the screens to be built manually in Blueprint for True Control II and Savant Pro App.
Specify password for device. This is needed in order to control device.
- To do this inspect profile within Blueprint and navigate to "State Variables" under "Show".
StartWateringZone requires minutes value in parameter in order to start irrigation. Without the value the command will not work.
It looks like an Access token is needed but no were to be found and received from the unit.,
Terminal Report:
HTTP Response (Status Code: 0, Status String: 0)
-
Ok I thought there would be some code to look over.
From what I see it looks like it only requires you to enter the password not an access token. So after you enter your password, still doesn't work ?
We don't have a SAVANT system on our lab to check, and I find very little information about Savant and integrations with other systems.
-
IP is the address of your RainMachine, should show up on your phone below your RainMachine name or by going to Settings > About
The port, I'm not sure but try 8081 for standard http, so the url would look like IP:8081
Beta aren't necessary since we already released the update few months ago as stable.
-
Do you have a field to enter the access token ?
If you do, you can get an access token using the RainMachine API page, go to http://<RainMachine IP>:8081/api/4/ and fill your password below AUTH/LOGIN and then press AUTH/LOGIN link. You should get a popup with something like: accessToken=3a5b211....
Just copy the entire code from the equal sign till the next space.
-
After entering access token from Web UI We were getting this response: HTTP Response (Status Code: 0, Status String: 0)
The RainMachines did not respond., It looks like maybe your API was re-written and not working properly with 3rd Party Integrations systems like Savant., Please provide any documentation you have to make this possible.
Thanks You
-
No the API hasn't been rewritten, and it's difficult to know what's going on on SAVANT side with so little information.
We have a great deal of documentation on RainMachine API and integrations here: https://support.rainmachine.com/hc/en-us/sections/206289127
-
Hi Nicholas,
Yes, I have done that less than 2 years ago, but the auth key was expired. Or at least not recognized.
After renewing all is well. As long as people know how, there isn't a real problem.
BTW- Expiration seems to be five years:
"expires_in": 157679999, "expiration": "Wed, 26 Mar 2025 15:09:48 GMT"
Please sign in to leave a comment.
Comments
17 comments