add mqtt config options #1
3 changed files with 51 additions and 0 deletions
|
@ -66,6 +66,9 @@
|
||||||
},
|
},
|
||||||
"ledFlashOnZap": "LED flash on Nostr Zap",
|
"ledFlashOnZap": "LED flash on Nostr Zap",
|
||||||
"flFlashOnZap": "Frontlight flash on Nostr Zap",
|
"flFlashOnZap": "Frontlight flash on Nostr Zap",
|
||||||
|
"mqttEnabled": "Enable MQTT",
|
||||||
|
"mqttHost": "MQTT hostname or IP",
|
||||||
|
"mqttRootTopic": "MQTT root topic",
|
||||||
"showAll": "Show all",
|
"showAll": "Show all",
|
||||||
"hideAll": "Hide all"
|
"hideAll": "Hide all"
|
||||||
},
|
},
|
||||||
|
|
|
@ -790,6 +790,53 @@
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</Row>
|
</Row>
|
||||||
|
<Row>
|
||||||
|
<Col md="6" xl="12" xxl="6">
|
||||||
|
<Input
|
||||||
|
id="mqttEnabled"
|
||||||
|
bind:checked={$settings.mqttEnabled}
|
||||||
|
type="switch"
|
||||||
|
bsSize={$uiSettings.inputSize}
|
||||||
|
label="{$_('section.settings.mqttEnabled')} ({$_('restartRequired')})"
|
||||||
|
/>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
{#if $settings.mqttEnabled}
|
||||||
|
<Row>
|
||||||
|
<Label md={6} for="mqttHost" size={$uiSettings.inputSize}
|
||||||
|
>{$_('section.settings.mqttHost')}</Label
|
||||||
|
>
|
||||||
|
<Col md="6">
|
||||||
|
<InputGroup size={$uiSettings.inputSize}>
|
||||||
|
<Input
|
||||||
|
type="text"
|
||||||
|
bind:value={$settings.mqttHost}
|
||||||
|
name="mqttHost"
|
||||||
|
id="mqttHost"
|
||||||
|
bsSize={$uiSettings.inputSize}
|
||||||
|
required
|
||||||
|
></Input>
|
||||||
|
</InputGroup>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
<Row>
|
||||||
|
<Label md={6} for="mqttRootTopic" size={$uiSettings.inputSize}
|
||||||
|
>{$_('section.settings.mqttRootTopic')}</Label
|
||||||
|
>
|
||||||
|
<Col md="6">
|
||||||
|
<InputGroup size={$uiSettings.inputSize}>
|
||||||
|
<Input
|
||||||
|
type="text"
|
||||||
|
bind:value={$settings.mqttRootTopic}
|
||||||
|
name="mqttRootTopic"
|
||||||
|
id="mqttRootTopic"
|
||||||
|
bsSize={$uiSettings.inputSize}
|
||||||
|
required
|
||||||
|
></Input>
|
||||||
|
</InputGroup>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
{/if}
|
||||||
</ToggleHeader>
|
</ToggleHeader>
|
||||||
</Row><Row>
|
</Row><Row>
|
||||||
<ToggleHeader header={$_('section.settings.section.system')} isOpen={systemIsOpen}>
|
<ToggleHeader header={$_('section.settings.section.system')} isOpen={systemIsOpen}>
|
||||||
|
|
|
@ -48,6 +48,7 @@ const settingsJson = {
|
||||||
bitaxeEnabled: false,
|
bitaxeEnabled: false,
|
||||||
bitaxeHostname: 'bitaxe1',
|
bitaxeHostname: 'bitaxe1',
|
||||||
nostrZapNotify: true,
|
nostrZapNotify: true,
|
||||||
|
mqttEnabled: false,
|
||||||
hwRev: 'REV_A_EPD_2_13',
|
hwRev: 'REV_A_EPD_2_13',
|
||||||
fsRev: '4c5d9616212b27e3f05c35370f0befcf2c5a04b2',
|
fsRev: '4c5d9616212b27e3f05c35370f0befcf2c5a04b2',
|
||||||
nostrZapPubkey: 'b5127a08cf33616274800a4387881a9f98e04b9c37116e92de5250498635c422',
|
nostrZapPubkey: 'b5127a08cf33616274800a4387881a9f98e04b9c37116e92de5250498635c422',
|
||||||
|
|
Loading…
Reference in a new issue