[ANSWERED]Control Device Directly via URL Link

Posted on
Thu Nov 20, 2014 4:06 pm
ukie offline
Posts: 69
Joined: Oct 15, 2010

[ANSWERED]Control Device Directly via URL Link

Could someone please provide the proper way to format a url to control a device via the web server?

I can get to a device (Kitchen) via
http://myHostName.me:8176/devices/Kitchen

but how should the URL link expand to change the status of the device (ON/OFF/TOGGLE)?

Posted on
Thu Nov 20, 2014 4:17 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Control Device Directly via URL Link

The Device Access section of the RESTful API docs has a bunch of examples.

[MODERATOR NOTE] moved to the Client API forum.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Nov 21, 2014 2:33 pm
KostasV offline
Posts: 39
Joined: Nov 16, 2014
Location: London, UK

Re: [ANSWERED]Control Device Directly via URL Link

The manual has a lot of examples, in your case this would be:

TOGGLE:

http://myHostName.mr:8176/devices/Kitchen?toggle=1&_method=put

ON:

http://myHostName.mr:8176/devices/Kitchen?isOn=1&_method=put

OFF:

http://myHostName.mr:8176/devices/Kitchen?isOn=0&_method=put

You will need to authenticate first with the username/password setup for the Server.

Posted on
Fri Nov 21, 2014 7:24 pm
ukie offline
Posts: 69
Joined: Oct 15, 2010

Re: [ANSWERED]Control Device Directly via URL Link

Thank you. Unfortunately, GoogolPlex does not work on iOS 8, which is what I wanted to use this with.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest