forked from btclock/webui
Add light sensor settings
This commit is contained in:
parent
52e90dbdee
commit
59e2750cf3
6 changed files with 38 additions and 8 deletions
|
@ -255,6 +255,24 @@
|
|||
</Col>
|
||||
</Row>
|
||||
{/if}
|
||||
{#if $settings.hasLightLevel}
|
||||
<Row>
|
||||
<Label md={6} for="luxLightToggle" size={$uiSettings.inputSize}
|
||||
>{$_('section.settings.luxLightToggle')} ({$settings.luxLightToggle})</Label
|
||||
>
|
||||
<Col md="6">
|
||||
<Input
|
||||
type="range"
|
||||
name="luxLightToggle"
|
||||
id="luxLightToggle"
|
||||
bind:value={$settings.luxLightToggle}
|
||||
min={0}
|
||||
max={1000}
|
||||
step={1}
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
{/if}
|
||||
<Row>
|
||||
<Label md={6} for="mempoolInstance" size="sm"
|
||||
>{$_('section.settings.mempoolnstance')}</Label
|
||||
|
|
|
@ -146,6 +146,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
{#if $settings.hasLightLevel}
|
||||
{$_('section.status.lightSensor')}: {Number(Math.round($status.lightLevel))} lux
|
||||
<hr />
|
||||
{/if}
|
||||
<Progress striped id="rssiBar" color={wifiStrengthColor} value={rssiPercent}
|
||||
>{rssiPercent}%</Progress
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue