Jump to content

Help with rest


deg01004

Recommended Posts

Posted

I am having some trouble using rest. I just received my ISY-99i yesterday and i updated the firmware to v.2.7.6. I'm Trying to use rest via a http command request.

 

Get /rest/nodes/12.4B.5A/cmd/DFON HTTP/1.1\r\nHost: 192.168.50.100

Authorization:Basic ZGVnMDEwMDQ6U2hhZGRlZzA=\r\n\r\n

 

With the program i am using the request has to all be on one line.

 

I believe i have narrowed the problem down to of course myself and the command not being being accepted by the ISY.

 

Do i need to do something besides update the firmware to use the rest interface?

 

Is my request even functional?

 

I have attempted to use the rest interface from my IE web browser directly

using http://192.168.50.100/rest/nodes/12.4B.5A/cmd/DFON with no response so i know that i am doing something essential wrong. Any help would be appreciated.

 

Thanks

Posted
I am having some trouble using rest. I just received my ISY-99i yesterday and i updated the firmware to v.2.7.6. I'm Trying to use rest via a http command request.

 

Get /rest/nodes/12.4B.5A/cmd/DFON HTTP/1.1\r\nHost: 192.168.50.100

Authorization:Basic ZGVnMDEwMDQ6U2hhZGRlZzA=\r\n\r\n

 

With the program i am using the request has to all be on one line.

 

I believe i have narrowed the problem down to of course myself and the command not being being accepted by the ISY.

 

Do i need to do something besides update the firmware to use the rest interface?

 

Is my request even functional?

 

I have attempted to use the rest interface from my IE web browser directly

using http://192.168.50.100/rest/nodes/12.4B.5A/cmd/DFON with no response so i know that i am doing something essential wrong. Any help would be appreciated.

 

Thanks

 

It looks like you have the basic format of the request correct, but the device address format is wrong. You need to use the ISY's address format. Best way to get that is to use the REST /rest/nodes first and look at how the device addresses are returned. I think you probably want it to look like:

http://192.168.50.100/rest/nodes/12 4B 5A 1/cmd/DFON

 

For the browser URL, you might have to change the spaces to '%20'.

Posted

Thanks. I got it working with that last bit of help. I found out i also needed that carriage return that Command fusion uses. My final HTTP request was:

 

Get /rest/nodes/12%204B%205A%201/cmd/DOF HTTP/1.1\x0D\x0AHost: 192.168.50.100\x0AAuthorization:Basic YWRtaW46YWRtaW4=\x0D\x0A\x0D\x0A

 

Thanks for the help

 

Shad

  • 1 year later...
Posted

Hi there,

 

I too am working with Command Fusion right now and came up with the same REST commands as in this thread. Only issue I am having is the consistent response of the ISY, when the ISY is "busy" which seems at my home to be a bit (I am sure it's something to do with motion sensors - had a lot of issues with them at a recent job) it doesn't seem to respond to REST commands. Is there a way to improve this or somehow give REST a higher priority in ISY ? Getting CF to perform response checks and resend commands is a SOB. Thanks.

 

Bjorn

Posted

Hi Bjorn,

 

REST uses HTTP priority which is one of the highest priorities. By not responding, what do you mean? Is it possible that you have a low timeout set for your connect/read timeout in the client?

 

With kind regards,

Michel

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...