HTTP/REST

251 views
Skip to first unread message

Ian Pollard

unread,
Oct 13, 2016, 9:16:34 AM10/13/16
to OpenRemote
In the documentation for Openremote designer, it refers to a HTTP/REST protocol, under (Create Command section) but I cannot find anyway to implement a command using this protocol. I have Controller 2.5 installed on a Windows 7 box, if this is available on other hardware I could make the switch but Windows PC is needed for other stuff anyway and is on 24/7.

Hope someone can point me in the right direction.


Stuart Hanlon

unread,
Oct 13, 2016, 11:50:37 AM10/13/16
to OpenRemote
Hello


What are you trying to do with it?

Ian Pollard

unread,
Oct 13, 2016, 2:58:17 PM10/13/16
to OpenRemote


On Thursday, October 13, 2016 at 4:50:37 PM UTC+1, Stuart Hanlon wrote:
Hello


What are you trying to do with it?


Hi

I am trying to post REST commands to SONY Bravia TV, I can do this with "Simple REST Client"  and now want to integrate this into controller commands


Pierre Kil

unread,
Oct 13, 2016, 3:14:25 PM10/13/16
to OpenRemote
Use http://www.openremote.com/community/ and Documentation 2.5. It has a more complete overview, including reference HTTP/REST under 'Documentation Designer 2.5' We are migrating and updating all documentation, which takes some time and effort.

Ian Pollard

unread,
Oct 17, 2016, 11:31:27 AM10/17/16
to OpenRemote
This is the documentation I was referring to, in the list of protocols it includes HTTP/REST under the create command section, but when I us Create command in the designer this option does not appear

Eric Bariaux

unread,
Oct 17, 2016, 11:38:58 AM10/17/16
to OpenRemote
What designer are you using ? designer.openremote.com ?
HTTP is definitely available as a protocol. REST is just a way to use HTTP, it's not a protocol per se.

Ian Pollard

unread,
Oct 17, 2016, 1:50:00 PM10/17/16
to OpenRemote
Ok thanks Eric, i was misunderstanding the documentation, when i saw the separate entry in the list of protocols for HTTP/REST i was expecting a separate UI control in the designer, i will experiment
with the HTTP command. I have seen a detailed description in the user forum for the appropriate HTTP, but this description ended up using the System execute command to execute curl, i cannot get this to work on a windows controller however, Does anyone have experience of using the HTTP command for this SONY TV protocol, or maybe i should try migrating my controller to linux or mac and try using curl then.

a typical command might be (Power off)

<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"><IRCCCode>AAAAAQAAAAEAAAAvAw==</IRCCCode></u:X_SendIRCC></s:Body></s:Envelope>

this would be the data content but would only work when preceded by various headers, including a cookie for authentication, i am not sure how i would speciify this in a HTTP command .

Ian Pollard

unread,
Oct 17, 2016, 1:52:01 PM10/17/16
to OpenRemote
P.S. by the way i am using the Openremote.org online designer, i didnt know there were any others.
Reply all
Reply to author
Forward
0 new messages