khargy Posted July 23, 2017 Posted July 23, 2017 Has anyone set up a Digital Loggers Web Power Switch 7 (http://www.digital-loggers.com/lpc.html) as a Network Resource?
G W Posted July 23, 2017 Posted July 23, 2017 Yes, but I have since moved it to a RTI XP. Sent from my Nexus 6P using Tapatalk
khargy Posted July 23, 2017 Author Posted July 23, 2017 Do you remember having any trouble? I'm trying to following the REST guide but not making much progress: http://www.digital-loggers.com/restapi.pdf
Scottmichaelj Posted July 23, 2017 Posted July 23, 2017 DLI WPS7s are great product. Can you post the url and what your trying to do? For example power on switch 4.
khargy Posted July 23, 2017 Author Posted July 23, 2017 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>
G W Posted July 23, 2017 Posted July 23, 2017 (edited) 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. Edited July 23, 2017 by Gary Funk
khargy Posted July 23, 2017 Author Posted July 23, 2017 Ah perfect that worked! Also it didn't help matters that the outlet I was testing and I thought was empty was actually controlling my ISY
Scottmichaelj Posted July 23, 2017 Posted July 23, 2017 Ah perfect that worked! Also it didn't help matters that the outlet I was testing and I thought was empty was actually controlling my ISY Lol oops! Glad Gary got you sorted out. Also look at "auto ping"
khargy Posted July 23, 2017 Author Posted July 23, 2017 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. 1
Scottmichaelj Posted July 23, 2017 Posted July 23, 2017 I wanted to set this up in the ISY to I can use the Echo for control over the switches.
Recommended Posts