Jump to content

Web Power Switch 7


khargy

Recommended Posts

Can't really get it to do anything... I just want basic controls... not sure if the Rest API is the right approach or not...

 

Can't figure out how to authenticate myself? I try:

http://admin:XX@192.168.1.xxx

in a browser and it just redirects me to the login page.

 

I tried the curl example from the documentation:

curl -H "Range: dli-depth=1" -H "Accept: application/json" --digest 'http://admin:xxx@192.168.1.xxx/restapi/'

and I just get back:

<HTML><HEAD>


<META HTTP-EQUIV="refresh" content="0; URL=/">


</HEAD><BODY></BODY>
Link to comment

You do a GET request for

 

/outlet?7=ON

/outlet?7=OFF

/outlet?7=CCL

 

You have to put 

 

Authorization: Basic [token]

 

in the header where [token] is the Base64 of the USERNAME:PASSWORD

 

You can't do username:password in modern browsers as that feature was removed a log time ago.

 

Also, the Power Switch 7 does not support the restapi.

Link to comment

Thanks, I've used the "auto ping" feature when I used to have some web cam that's would get stuck and then I would power cycle them as needed.

 

I wanted to set this up in the ISY to I can use the Echo for control over the switches.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...