ShineServer_English version


Read and set VPP time period parameters (VPP)

<p><strong>A brief description:</strong> </p> <p>-Read and set VPP time period parameter interface (only support MIN SPA SPH model)</p> <p><strong>Request URL:</strong> -<code>http(s)://test.growatt.com/v1/vppSetNew</code></p> <p><strong>How ​​to request:</strong> -post</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;">vppSn</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;">timePeriods</td> <td style="text-align: left;">Yes</td> <td style="text-align: left;">String</td> <td>Set time period (json format: [{percentage: power, startTime: start time, endTime: end time}], time range: 0-1440, eg: [{&quot;percentage&quot;:95,&quot;startTime&quot;:0,&quot;endTime &quot;:300},{&quot;percentage&quot;:-60,&quot;startTime&quot;:301,&quot;endTime&quot;:720}]</td> </tr> </tbody> </table> <p><strong>Return example</strong></p> <pre><code>{ &amp;quot;data&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;error_code&amp;quot;: 0, &amp;quot;error_msg&amp;quot;: &amp;quot;&amp;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;">data</td> <td style="text-align: left;">String</td> <td>The returned result is shown in the following remarks</td> </tr> <tr> <td style="text-align: left;">error_code</td> <td style="text-align: left;">string</td> <td>0: Normal return, 10001: Reading failed, 10012: Device does not exist, 10004: Device serial number is empty or time period is empty, 10005: Collector is offline, 10007: Set parameter to null, 10008: The setting value is out of the range or abnormal, 10009: the type of the setting parameter read does not exist, 10011: no permission</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> -The frequency of acquisition is once every 10 seconds</p>

页面列表

ITEM_HTML