mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-12 00:16:42 +02:00
Patch no_eeprom_pl
This commit is contained in:
parent
f53933b473
commit
7c7a7d25b8
8 changed files with 25 additions and 92 deletions
|
@ -33,6 +33,18 @@
|
|||
<input type="button" value="Turn Off" class="btn" id="turnoff"/>
|
||||
<input type="button" value="Turn On" class="btn" id="turnon"/>
|
||||
<br/>
|
||||
<label>Send Power Limit:</label>
|
||||
<input type="text" class="text" name="pwrlimval" maxlength="4" size="20%"/>
|
||||
<label></label>
|
||||
<select name="pwrlimcntrl" id="pwrlimcntrl">
|
||||
<option value="65535">select the unit and persistence</option>
|
||||
<option value="0">absolute in Watt non persistent</option>
|
||||
<option value="1">relativ in percent non persistent</option>
|
||||
<option value="256">absolute in Watt persistent</option>
|
||||
<option value="257">relativ in percent persistent</option>
|
||||
</select>
|
||||
<input type="button" value="Send PL" class="btn" id="sendpwrlim"/>
|
||||
<br/>
|
||||
Ctrl result: <span id="result">n/a</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -161,7 +173,7 @@
|
|||
obj.inverter = get_selected_iv();
|
||||
obj.cmd = 11;
|
||||
obj.tx_request = 81;
|
||||
obj.payload = [2000, 1];
|
||||
obj.payload = [100, 1];
|
||||
getAjax("/api/ctrl", ctrlCb, "POST", JSON.stringify(obj));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue