Get the historical power generation of the device
<p><strong>A brief description:</strong> </p>
<p>-An interface to get the historical power generation of the device on a certain day</p>
<p><strong>Request URL:</strong>
-<code>http(s)://test.growatt.com/v1/device/inverter/day_energy</code></p>
<p><strong>How to request:</strong>
-get</p>
<p><strong>Parameter:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Is it required</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">device_sn</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">string</td>
<td>device SN</td>
</tr>
<tr>
<td style="text-align: left;">date</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">String</td>
<td>date</td>
</tr>
</tbody>
</table>
<p><strong>Return example</strong></p>
<pre><code>{
&quot;device_sn&quot;: &quot;NOD1851006&quot;,
&quot;dataloggerSn&quot;: &quot;KHD1850045&quot;,
&quot;data&quot;: 168.89999389648438,
&quot;error_code&quot;: 0,
&quot;error_msg&quot;: &quot;&quot;
}</code></pre>
<p><strong>Return parameter description</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">string</td>
<td>0: normal return, 10001: system error, 10002: device serial number error, 10003: date format error</td>
</tr>
<tr>
<td style="text-align: left;">error_msg</td>
<td style="text-align: left;">string</td>
<td>Error message prompt</td>
</tr>
</tbody>
</table>
<p><strong>Remarks</strong></p>
<p>-The frequency of acquisition is once every 5 minutes</p>