38
AK-SecurePowerSwitch Manual,
Data exchange by XML
Read data
Execute an HTTP-GET “
AK_PS.XML?req=64830
” and you will get the following answer:
<?xml version="1.0" encoding="UTF-8"?>
<AK_PS>
<IP>192.168.23.188</IP>
<SN>255.255.0.0</SN>
<NAME>AKIF666666</NAME>
<DHCP>Y</DHCP>
<MODE>0</MODE>
<WATT>0</WATT>
<TEMP>
36</TEMP>
<CLOCK>00:00</CLOCK>
<STATUS>OFF</STATUS>
</AK_PS>
<IP>
= IP address in ASCII
<SN>
= Subnet mask in ASCII
<NAME>
= DNS/Host Name in ASCII
<DHCP>
= DHCP switched on (Y) or off (N)
<MODE>
= Relay mode (not used)
<WATT>
= Effective current consumption of the connected device
<TEMP>
= Internal temperature
<CLOCK>
=
Effective time (NTP)
<STATUS>
= Relay switched on (ON) or off (OFF)
From
Version 1.5.0
you may additionally read the consumption data. Execute an HTTP-
GET “
AK_PS.XML?req=64830&consumption=1
” and you will additionally obtain
<CONSUMPTION>:
<?xml version="1.0" encoding="UTF-8"?>
<AK_PS>
<IP>192.168.23.188</IP>
<SN>255.255.0.0</SN>
<NAME>AKIF666666</NAME>
<DHCP>Y</DHCP>
<MODE>0</MODE>
<WATT>0</WATT>
<TEMP>
36</TEMP>
<CLOCK>00:00</CLOCK>
<STATUS>OFF</STATUS>
<CONSUMPTION>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1368,1872,
1854,1818,1818,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0</CONSUMPTION>
</AK_PS>
consumption=1
Consumption data of the last 60 seconds in watts
consumption=2
Consumption data of the last 60 minutes in watts
consumption=3
Consumption data of the last 24 hours in watts
consumption=4
Consumption data of the last 30 days in watts
Note
: „
req=64830“
is not necessary to be sent It only serves to distinguish the single
requests.