Simple state API

Posted on
Sat Jul 08, 2017 6:55 am
jrcitizen offline
Posts: 21
Joined: Jan 04, 2017

Simple state API

I am looking for a simple restful API to read the state of a device/variable without having to grep through the results.

For example, say I have a device called "AmIhome". I would want to issue a CURL against the following:

Code: Select all
curl -u username:password --digest --anyauth -X GET http://localhost:8176/devices/AmIhome/state


And get a simple "true" or "false" (or on/off... whatever the state would be)... with no other responses to filter through.

Is there any way I can currently do this?

Posted on
Sat Jul 08, 2017 8:19 am
jay (support) offline
Site Admin
User avatar
Posts: 16821
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Simple state API

Not built-in. You don't have the ability to process JSON at the receiving end?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest