Ipower Switch Classic 16 http request not working
Posted: Mon May 06, 2019 11:39 am
Hi there!
We recently have bought two of these units, and we are trying to simply switch on/off via http get request using wget tool as found here: https://www.lindy.co.uk/blog/2014/06/ipower-switch-control-with-a-script/#
I have changed the names of the power outputs so I asume that in p=A need to change to p='output name'
So my command looks like:
switch off power output "A"
wget --delete-after --auth-no-challenge 'http://admin:*******@192.168.0.103:80/?cmd=1&p=A&s=0'
Here is my output:
--2019-05-06 12:11:08-- http://admin:*password*@192.168.0.103/?cmd=1&p=A&s=0
Connecting to 192.168.0.103:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html?cmd=1&p=A&s=0.tmp'
index.html?cmd=1&p= [ <=> ] 6.41K --.-KB/s in 0.09s
2019-05-06 12:11:08 (70.7 KB/s) - 'index.html?cmd=1&p=A&s=0.tmp' saved [6564]
Removing index.html?cmd=1&p=A&s=0.tmp.
Everything looks fine but the power output is not switching......
Any idea were we can be wrong?
We recently have bought two of these units, and we are trying to simply switch on/off via http get request using wget tool as found here: https://www.lindy.co.uk/blog/2014/06/ipower-switch-control-with-a-script/#
I have changed the names of the power outputs so I asume that in p=A need to change to p='output name'
So my command looks like:
switch off power output "A"
wget --delete-after --auth-no-challenge 'http://admin:*******@192.168.0.103:80/?cmd=1&p=A&s=0'
Here is my output:
--2019-05-06 12:11:08-- http://admin:*password*@192.168.0.103/?cmd=1&p=A&s=0
Connecting to 192.168.0.103:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html?cmd=1&p=A&s=0.tmp'
index.html?cmd=1&p= [ <=> ] 6.41K --.-KB/s in 0.09s
2019-05-06 12:11:08 (70.7 KB/s) - 'index.html?cmd=1&p=A&s=0.tmp' saved [6564]
Removing index.html?cmd=1&p=A&s=0.tmp.
Everything looks fine but the power output is not switching......

Any idea were we can be wrong?