UNPKG

@hermannp/node-red-getproduction-fusionsolar

Version:

Get Solar electricity production amount of Huawei FusionSolar.

60 lines (58 loc) 3.3 kB
<script type="text/javascript"> RED.nodes.registerType('getProduction_FusionSolar',{ category: 'Huawei', color: '#f5898e', defaults: { username: {value:""}, systemcode: {value:""}, totalpower: {value:""}, daypower: {value:""}, monthpower: {value:""}, dayincome: {value:""} }, inputs:1, outputs:1, icon: "font-awesome/table", label: function() { return this.name||"getProduction_FusionSolar"; } }); </script> <script type="text/html" data-template-name="getProduction_FusionSolar"> <div class="form-row"> <h4>Fill your login credentials of FusionSolar openAPI:</h4> <label for="node-input-username"><i class="fa fa-user"></i> Username</label> <input type="text" id="node-input-username" placeholder="Username"> </div> <div class="form-row"> <label for="node-input-systemcode"><i class="fa fa-code"></i> Systemcode</label> <input type="text" id="node-input-systemcode" placeholder="Systemcode"> </div> <h4>Select one or more output value(s):</h4> <table> <tr valign="top"> <td><input type="checkbox" id="node-input-totalpower" name="node-input-totalpower" value="Total power"></td> <td><label for="node-input-totalpower"> Total power</label></td> </tr><tr valign="top"> <td><input type="checkbox" id="node-input-daypower" name="node-input-daypower" value="Daily power"></td> <td><label for="node-input-daypower"> Daily power</label></td> </tr><tr valign="top"> <td><input type="checkbox" id="node-input-monthpower" name="node-input-monthpower" value="Monthly power"></td> <td><label for="node-input-monthpower"> Monthly power</label></td> </tr><tr valign="top"> <td><input type="checkbox" id="node-input-dayincome" name="node-input-dayincome" value="Daily income"></td> <td><label for="node-input-dayincome"> Daily income</label></td> </tr></table> </script> <script type="text/html" data-help-name="getProduction_FusionSolar"> <p><b>Description:</b></p> <p>Get electricity production of Huawei FusionSolar solar panels.</p> <p><b>Usage:</b></p> <p>You need to give your FusionSolar openAPI credentials (username and systemcode). To get your credentials, Contact your installer (who installed your Huawei Inverter) to get the OpenAPI credentials. Sometimes they won't know what your are talking about. Just ask them to write an email to their Huawei contact (eu_inverter_support@huawei.com for EU, etc.) and ask a credential for you.</p> <p>After credential fields you can select the aggregeted production values you would like to get. More than one output can be selected. In this case all the desired values will be retreived in json format.</p> <form action="https://www.paypal.com/donate" method="post" target="_top"> <input type="hidden" name="hosted_button_id" value="5J4TXWJGDTLF8" /> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" /> <img alt="" border="0" src="https://www.paypal.com/en_HU/i/scr/pixel.gif" width="1" height="1" /> </form> </script>