jenkins007 wrote:I wanted to follow up and close this issue. After unsuccessfully attempting to complete the simple commands many times, FlyingDiver and I decided to close the issue. While the first command worked each time providing the ID, the second one never completed. As I was copying and pasting and trying different permutations of spaces and no spaces, quotes and no quotes, it possibly could be the login process for the Gen 3 is different. Either way, the interface via the Rachio web interface is full featured. So instead of spending more time trouble shooting for both of us, an external URL on the indigo web page to access the Gen 3 controllers works. Thank you FlyingDiver for trying and for the quick responses!
After looking at this thread again this morning, I realized that I left a step out of the instructions. Mea Culpa.
The first step gets the person id, which is like the account id.
- Code: Select all
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer API-KEY" "https://api.rach.io/1/public/person/info"
Result will look something like:
- Code: Select all
{"id":"04xxxef1-8xx4-4xx2-add0-03975xxxxxx6"}
The second command needs to say "person" not "device. This command gets the information about the person (account), including the list of devices on the account.
- Code: Select all
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer API-KEY" "https://api.rach.io/1/public/person/04xxxef1-8xx4-4xx2-add0-03975xxxxxx6"
The result will have a section that looks like this. This will appear multiple times if you have more than one Rachio controller.
- Code: Select all
"devices":[{"createDate":1549380657000,"id":"6b7ef9ad-xxxx-xxxx-xxxx-f71a1e891221","status":"ONLINE",
Then do the actual command to get the device info:
- Code: Select all
$ curl -H "Content-Type: application/json" -H "Authorization: Bearer API-KEY" "https://api.rach.io/1/public/person/6b7ef9ad-xxxx-xxxx-xxxx-f71a1e891221"