Just testing with postman at the moment.
The plan is, I've got some home automation being controlled by openhab as it allows a bit more control and charting. I can get it to run a get request. Was hoping it could just return a number which could then be stored and charted easily.
Josh
How Can I retrieve a single devices level?
- 224 Views
- Last Post 18 August 2014
monkey-magic
posted this
17 August 2014
Ryan-Scott
posted this
18 August 2014
Following the developer reference I know I can do the below to achieve the device info.
GET /device/{deviceId}?password={password}
Is there a way to GET just the level for a temp sensor?
Thanks Josh
There's not really a way to have the web service only return a level... is there an issue using the above mentioned GET to retrieve the level from the sensor?
monkey-magic
posted this
18 August 2014
It just provides all the other data as well, I may have to look into xslt transformations to get just the temp level out.
Josh
Ryan-Scott
posted this
18 August 2014
It just provides all the other data as well, I may have to look into xslt transformations to get just the temp level out.
Josh
What language are you using to make the call? If it's C#, I can help you with some sample code to retrieve the level from the JSON using a nifty library.
monkey-magic
posted this
18 August 2014
Just testing with postman at the moment.
The plan is, I've got some home automation being controlled by openhab as it allows a bit more control and charting. I can get it to run a get request. Was hoping it could just return a number which could then be stored and charted easily.
Josh