It's great that certain features are available via HTTP, but it would be fantastic to be able to issue commands without having to use TCP.
If the IR and Signal commands were exposed through JSON, you could have a completely web based UI that you could access anywhere.
3 comments
-
Brendan Stephens The flex has onboard storage, and if you can load / save configuration files, you could issue commands loaded from those files:
e.g.
<base url>/send
{
"load":"filename.cfg"
"cmd":"power_on"
}or
<base url>/send
{
"sendir":"1:1,1,40404,1,1,95,24,24,24,23,24,24,23,24,23,47,24,47,24,24,23,24,23,47,344,12,23,47,24,24,23,24,23,47,24,24,593,96,23,24,23,24,23,24,24,23,24,47,24,47,24,24,24,23,24,47,24,23,24,47,24,47,24,47,24,24,23,24,24,47,24,24,24,23,24,47,24,23,593,95,24,24,24,23,24,24,23,24,23,47,24,47,24,24,23,24,23,47,24,24,23,47,24,47,24,47,24,23,24,24,23,47,24,24,23,24,23,47,24,24,734,96,23,24,23,24,23,24,24,23,24,47,24,47,24,24,24,23,24,47,24,23,24,47,24,47,24,47,24,24,23,24,24,47,24,24,24,23,24,47,24,23,4040"
} -
Garrett Gustafson Hi Brendan,
I realize that this is an old post, however I did want to update you with a link to the iTach Flex HTTP API which allows details how to send HTTP commands to the iTach Flex.
-
Michael Bo Hi Garrett:
I need to confirm what the API is supporting. Are you saying the below code would send an IR Code? Is the syntax correct? Do I call this function from a HTML webpage?
HTTP/1.1 POST
192.168.1.1/irports/1/sendir
{
"frequency":"344",
"preamble":"1",
"irCode":"1:1,1,40404,1,1,95,24,24,24,23,24,24,23,24,23,47,24,47,24,24,23,24,23,47,344,12,23,47,24,24,23,24,23,47,24,24,593,96,23,24,23,24,23,24,24,23,24,47,24,47,24,24,24,23,24,47,24,23,24,47,24,47,24,47,24,24,23,24,24,47,24,24,24,23,24,47,24,23,593,95,24,24,24,23,24,24,23,24,23,47,24,47,24,24,23,24,23,47,24,24,23,47,24,47,24,47,24,23,24,24,23,47,24,24,23,24,23,47,24,24,734,96,23,24,23,24,23,24,24,23,24,47,24,47,24,24,24,23,24,47,24,23,24,47,24,47,24,47,24,24,23,24,24,47,24,24,24,23,24,47,24,23,4040",
"repeat":"2"
}