How can we help?


Rain Machine not autheticating

Comments

16 comments

  • Avatar
    RainMachine Nicholas

    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 ?

    0
    Comment actions Permalink
  • Avatar
    Mmartinez

    Hi, im on the same problem with SAVANT. If i can get you a copy of the Profile/Driver XML can you determine what's wrong?

    Regards.

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    Some logs would be helpful, along with the XML and/or list of API calls being made.

    0
    Comment actions Permalink
  • Avatar
    Rafael Vinals

    Hi Nicholas., I have a 12 Zone Rain Machine and have the same issue., I spent three hours with Level 3 Programmer trying to integrate it with no luck., Can you please give us some guidance, I have the XML FILE.

     

     

    THANKS

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    I could if you explain to me what steps are you doing and the error. Would be great if we could debug on this forum so others can benefit .

    0
    Comment actions Permalink
  • Avatar
    Rafael Vinals

    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)

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    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.

    0
    Comment actions Permalink
  • Avatar
    Rafael Vinals

    What is the  IP port address that the Savant System should communicate with?., are the "beta" parameters necessary?, is there is any updates available or access token values we can discover outside of the host requests?

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    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.

    0
    Comment actions Permalink
  • Avatar
    Rafael Vinals

    How can we get Access Token from Rain Machine? It looks like one is needed to fully control unit using the API?

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    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.

     

    0
    Comment actions Permalink
  • Avatar
    Rafael Vinals

    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

     

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    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

     

    0
    Comment actions Permalink
  • Avatar
    GHammer

    This authkey error affects any parser or API call.

    I just went through the same exercise with the WeeWX local data push and needed to pull a new authkey to use.

     

    0
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    Maybe it has expired ? Make sure when you request a new key you select "Remember me", without this keys expire in 24h with remember it's 3 years or until reset/password change.

    0
    Comment actions Permalink
  • Avatar
    GHammer

    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"

    0
    Comment actions Permalink

Please sign in to leave a comment.