Files
espurna/code/html/src/template-sns.html
Maxim Prokhorov 29787143bf webui: expected emon app keys leaking into settings
disable on-change listener for webui-only inputs
also assuming input[readonly]s never needs to be commited
2024-08-09 14:25:19 +03:00

44 lines
2.1 KiB
HTML

<template id="template-magnitude-status">
<div class="pure-control-group">
<label></label>
<input name="magnitude:" type="text" class="pure-input-1-3" readonly >
<span class="pure-form-message-inline magnitude-info"></span>
<span class="pure-form-message-inline magnitude-description"></span>
</div>
</template>
<template id="template-magnitude-units">
<div class="pure-control-group">
<label></label>
<select class="pure-input-2-3"></select>
</div>
</template>
<template id="template-emon-expected">
<div class="pure-form pure-form-aligned emon-expected">
<div class="pure-control-group">
<label></label>
<input name="magnitude:" type="text" class="emon-magnitude-value" readonly >
<span class="pure-form-message-inline"></span>
</div>
<div class="pure-control-group">
<label>Ratio</label>
<input name="result:" type="text" class="emon-expected-result" readonly >
<span class="pure-form-message-inline"></span>
</div>
<div class="pure-control-group">
<label>Expected value</label>
<input name="expected:" type="text" class="emon-expected-input" data-action="none">
<span class="pure-form-message-inline hidden emon-expected-pwrP">
In Watts (W). Calibrate your sensor connecting a pure resistive load (like a bulb) and enter here its nominal power or use a multimeter.
</span>
<span class="pure-form-message-inline hidden emon-expected-volt">
In Volts (V). Enter your the nominal AC voltage for your household or facility, or use multimeter to get this value.
</span>
<span class="pure-form-message-inline hidden emon-expected-curr">
In Amperes (A). If you are using a pure resistive load like a bulb, this will be the ratio between the two previous values, i.e. power / voltage. You can also use a current clamp around one of the power wires to get this value.
</span>
</div>
</div>
</template>