WATTrouter Mx - user manual
How to fit and setup the device
Page 69 from 82
10.
GET /stat_alltime.xml
By sending this HTTP request you will obtain the all time statistics from the controller. Structure of
returned data:
<!--Response headers-->
<!--one empty line-->
<stat_alltime>
<SAD>2017-07-20</SAD><!-- counted from date-->
<SAS1>0.00</SAS1><!-- surplus energy phase L1 in kWh-->
<SAH1>0.00</SAH1><!-- consumption normal tariff phase L1 in kWh-->
<SAL1>0.00</SAL1><!-- consumption low tariff phase L1 in kWh-->
<SAP1>0.00</SAP1><!-- production phase L1 in kWh-->
<!-- similarly for remaining phases L2 and L3-->
<SAS4>0.00</SAS4><!-- surplus energy all phases in kWh-->
<SAH4>0.00</SAH4><!-- consumption normal tariff all phases in kWh-->
<SAL4>0.00</SAL4><!-- consumption low tariff all phases in kWh-->
<SAP4>0.00</SAP4><!-- production all phases in kWh-->
</stat_alltime>
DATA RECORD FOR WEB CLIENT BASED XML EXCHANGE
The structure of the periodically transmitted XML data record to the server (in the example shown this record
is being processed by /index.php on the server):
POST /index.php HTTP/1.1
<!--Request headers-->
<!--one empty line-->
<wrmx>
<meas>
<DaR>2018-08-20</DaR><!-- date (controller)-->
<TiR>0:00:00</TiR><!-- time (controller)-->
<SN>46000001</SN><!-- serial number-->
<I1>
<P>-2.20</P><!-- measured power by IL1 in kW-->
</I1>
<I2>
<P>1.50</P><!-- measured power by IL2 in kW-->
</I2>
<I3>
<P>-1.10</P><!-- measured power by IL3 in kW-->
</I3>
<I4><!-- ANDI1 input status-->
<P>0.50</P><!--
measured power in kW or temperature in °C
-->
<E>1.60</E><!-- energy counted in kWh-->
</I4>
<!-- similarly for remaining inputs ANDI2(I5) to ANDI4(I7)-->
<O1><!-- SSR1 output status-->
<P>1.00</P><!-- load power in kW-->
<E>3.00</E><!-- supplied energy to connected load in kWh-->
</O1>
<!-- similarly for remaining outputs SSR2(O2) to WLS6(O14)-->
<DQ1>20.0</DQ1><!-- temperature measured by dig.
sensor D/Q1 in °C
-->
<!-- similarly for remaining sensors DQ2 to DQ4-->
<PPS>-1.80</PPS><!-- sum of measured powers L1+L2+L3 in kW-->
<EL1>0</EL1><!-- 0=no fault, 1=L1 voltage missing error-->
<ELV>0</ELV><!-- 0=no fault, 1=Wrong voltage value L1-->
<ETS>0</ETS><!-- 0=no fault, 1=temperature sensor(s) error-->