Rewording of own data source

This commit is contained in:
Djuri Baars 2024-05-09 00:54:55 +02:00
parent e47fc066b0
commit 7a6b8bf2c2
6 changed files with 43 additions and 28 deletions

View file

@ -30,7 +30,7 @@
"wifiTxPower": "WiFi-TX-Leistung", "wifiTxPower": "WiFi-TX-Leistung",
"settingsSaved": "Einstellungen gespeichert", "settingsSaved": "Einstellungen gespeichert",
"errorSavingSettings": "Fehler beim Speichern der Einstellungen", "errorSavingSettings": "Fehler beim Speichern der Einstellungen",
"ownPriceSource": "BTClock-Preisquelle verwenden", "ownDataSource": "BTClock-Datenquelle verwenden",
"flAlwaysOn": "Displaybeleuchtung immer an" "flAlwaysOn": "Displaybeleuchtung immer an"
}, },
"control": { "control": {
@ -55,7 +55,8 @@
"wsMempoolConnection": "WS Mempool.space-Verbindung", "wsMempoolConnection": "WS Mempool.space-Verbindung",
"fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.", "fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.",
"uptime": "Betriebszeit", "uptime": "Betriebszeit",
"wifiSignalStrength": "WiFi-Signalstärke" "wifiSignalStrength": "WiFi-Signalstärke",
"wsDataConnection": "BTClock-Datenquelle verbindung"
} }
}, },
"colors": { "colors": {

View file

@ -29,7 +29,7 @@
"wifiTxPower": "WiFi TX power", "wifiTxPower": "WiFi TX power",
"settingsSaved": "Settings saved", "settingsSaved": "Settings saved",
"errorSavingSettings": "Error saving settings", "errorSavingSettings": "Error saving settings",
"ownPriceSource": "Use BTClock price source", "ownDataSource": "Use BTClock data source",
"flMaxBrightness": "Frontlight brightness", "flMaxBrightness": "Frontlight brightness",
"flAlwaysOn": "Frontlight always on" "flAlwaysOn": "Frontlight always on"
}, },
@ -55,7 +55,8 @@
"wsMempoolConnection": "WS Mempool.space connection", "wsMempoolConnection": "WS Mempool.space connection",
"fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.", "fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.",
"uptime": "Uptime", "uptime": "Uptime",
"wifiSignalStrength": "WiFi Signal strength" "wifiSignalStrength": "WiFi Signal strength",
"wsDataConnection": "BTClock data-source connection"
} }
}, },
"colors": { "colors": {

View file

@ -28,7 +28,7 @@
"wifiTxPowerText": "En la mayoría de los casos no es necesario configurar esto.", "wifiTxPowerText": "En la mayoría de los casos no es necesario configurar esto.",
"settingsSaved": "Configuración guardada", "settingsSaved": "Configuración guardada",
"errorSavingSettings": "Error al guardar la configuración", "errorSavingSettings": "Error al guardar la configuración",
"ownPriceSource": "Usar fuente de precios BTClock", "ownDataSource": "Utilice la fuente de datos BTClock",
"flMaxBrightness": "Brillo de luz de la pantalla", "flMaxBrightness": "Brillo de luz de la pantalla",
"flAlwaysOn": "Luz de la pantalla siempre encendida" "flAlwaysOn": "Luz de la pantalla siempre encendida"
}, },
@ -54,7 +54,8 @@
"uptime": "Tiempo de funcionamiento", "uptime": "Tiempo de funcionamiento",
"fetchEuroNote": "Si utiliza \"Obtener precio en €\", la conexión de Precio WS mostrará ❌ ya que utiliza otra fuente de datos.", "fetchEuroNote": "Si utiliza \"Obtener precio en €\", la conexión de Precio WS mostrará ❌ ya que utiliza otra fuente de datos.",
"title": "Estado", "title": "Estado",
"wifiSignalStrength": "Fuerza de la señal WiFi" "wifiSignalStrength": "Fuerza de la señal WiFi",
"wsDataConnection": "Conexión de fuente de datos BTClock"
} }
}, },
"button": { "button": {

View file

@ -29,7 +29,7 @@
"wifiTxPowerText": "Meestal hoeft dit niet aangepast te worden.", "wifiTxPowerText": "Meestal hoeft dit niet aangepast te worden.",
"settingsSaved": "Instellingen opgeslagen", "settingsSaved": "Instellingen opgeslagen",
"errorSavingSettings": "Fout bij opslaan instellingen", "errorSavingSettings": "Fout bij opslaan instellingen",
"ownPriceSource": "Gebruik BTClock prijs bron", "ownDataSource": "BTClock-gegevensbron gebruiken",
"flMaxBrightness": "Displaylicht helderheid", "flMaxBrightness": "Displaylicht helderheid",
"flAlwaysOn": "Displaylicht altijd aan" "flAlwaysOn": "Displaylicht altijd aan"
}, },
@ -54,7 +54,8 @@
"wsMempoolConnection": "WS Mempool.space verbinding", "wsMempoolConnection": "WS Mempool.space verbinding",
"fetchEuroNote": "Wanneer je \"Toon € prijs\" aanzet, zal de prijsverbinding als ❌ verbroken getoond worden vanwege het gebruik van een andere bron.", "fetchEuroNote": "Wanneer je \"Toon € prijs\" aanzet, zal de prijsverbinding als ❌ verbroken getoond worden vanwege het gebruik van een andere bron.",
"uptime": "Uptime", "uptime": "Uptime",
"wifiSignalStrength": "WiFi signaalsterkte" "wifiSignalStrength": "WiFi signaalsterkte",
"wsDataConnection": "BTClock-gegevensbron verbinding"
} }
}, },
"colors": { "colors": {

View file

@ -361,11 +361,11 @@
</Col> </Col>
<Col md="6"> <Col md="6">
<Input <Input
id="ownPriceSource" id="ownDataSource"
bind:checked={$settings.ownPriceSource} bind:checked={$settings.ownDataSource}
type="switch" type="switch"
bsSize="sm" bsSize="sm"
label="{$_('section.settings.ownPriceSource')} ({$_('restartRequired')})" label="{$_('section.settings.ownDataSource')} ({$_('restartRequired')})"
/> />
</Col> </Col>
{#if $settings.hasFrontlight} {#if $settings.hasFrontlight}

View file

@ -161,23 +161,34 @@
{$_('section.status.uptime')}: {toUptimestring($status.espUptime)} {$_('section.status.uptime')}: {toUptimestring($status.espUptime)}
<br /> <br />
<p> <p>
{$_('section.status.wsPriceConnection')}: {#if !$settings.ownDataSource}
<span> {$_('section.status.wsPriceConnection')}:
{#if $status.connectionStatus && $status.connectionStatus.price} <span>
&#9989; {#if $status.connectionStatus && $status.connectionStatus.price}
{:else} &#9989;
&#10060; {:else}
{/if} &#10060;
</span> {/if}
- </span>
{$_('section.status.wsMempoolConnection')}: -
<span> {$_('section.status.wsMempoolConnection')}:
{#if $status.connectionStatus && $status.connectionStatus.blocks} <span>
&#9989; {#if $status.connectionStatus && $status.connectionStatus.blocks}
{:else} &#9989;
&#10060; {:else}
{/if} &#10060;
</span><br /> {/if}
</span><br />
{:else}
{$_('section.status.wsDataConnection')}:
<span>
{#if $status.connectionStatus && $status.connectionStatus.price}
&#9989;
{:else}
&#10060;
{/if}
</span>
{/if}
{#if $settings.fetchEurPrice} {#if $settings.fetchEurPrice}
<small>{$_('section.status.fetchEuroNote')}</small> <small>{$_('section.status.fetchEuroNote')}</small>
{/if} {/if}