deg01004 Posted November 23, 2009 Posted November 23, 2009 I'm trying to get command fusion to be friendly with the ISY-99i. Command fusion doesn't officially support HTTP protocols but i was told that i may be able to create the request byte structure and send it as as a command. Any one have any experience doing this. the command would be http://192.xxx.x.x/rest/nodes/99999/cmd/DON Is this http structure correct and will it work with the ISY-99i? GET /rest/nodes/99999/cmd/DON /1.0\nHOST: http://192.xxx.x.x\xoa\xoa I'm new at this so i may have lots of questions. Thanks deg01004
bpwwer Posted November 24, 2009 Posted November 24, 2009 Hi deg01004, Basically, what you're doing is correct. However, you're going to need to supply the authentication information too. What I've done looks like this: GET /rest/nodes/ HTTP/1.1 Authorization: Basic xxxxxxxxxxxxxxxx The GET line is terminated by a \r\n (carriage return, line feed) and the Authorization line is terminated by \r\n\r\n The xxxxxxxxxxxxxxx is the ISY username and password base64 encoded. admin:admin => YWRtaW46YWRtaW4= There are a number of on-line base64 converters like: http://www.motobit.com/util/base64-decoder-encoder.asp I don't use the HOST header, it's optional.
Recommended Posts