work-in-progress, untested

This commit is contained in:
kdmukai 2024-12-16 17:32:03 -06:00
parent 85b9b17506
commit 2bea761d3c
3 changed files with 41 additions and 1 deletions

View file

@ -30,7 +30,11 @@ Make sure the postinstall script is ran, because otherwise the filenames are to
## Deploying ## Deploying
To upload the firmware to the BTClock, you need to GZIP all the files. You can use the python script `gzip_build.py` for that. To upload the firmware to the BTClock, you need to GZIP all the files. You can use the python script `gzip_build.py` for that:
```bash
python3 gzip_build.py
```
Then you can make a `LittleFS.bin` with mklittlefs: Then you can make a `LittleFS.bin` with mklittlefs:

View file

@ -44,6 +44,8 @@
"useNostr": "Use Nostr data source", "useNostr": "Use Nostr data source",
"bitaxeHostname": "BitAxe hostname or IP", "bitaxeHostname": "BitAxe hostname or IP",
"bitaxeEnabled": "Enable BitAxe", "bitaxeEnabled": "Enable BitAxe",
"miningPoolName": "Mining Pool",
"miningPoolUser": "Mining Pool username or api key",
"nostrZapPubkey": "Nostr Zap pubkey", "nostrZapPubkey": "Nostr Zap pubkey",
"invalidNostrPubkey": "Invalid Nostr pubkey, note that your pubkey does NOT start with npub.", "invalidNostrPubkey": "Invalid Nostr pubkey, note that your pubkey does NOT start with npub.",
"convertingValidNpub": "Converting valid npub to pubkey", "convertingValidNpub": "Converting valid npub to pubkey",

View file

@ -698,6 +698,40 @@
</Col> </Col>
</Row> </Row>
{/if} {/if}
{#if $settings.miningPoolStatsEnabled}
<Row>
<Label md={6} for="miningPoolName" size={$uiSettings.inputSize}
>{$_('section.settings.miningPoolName')}</Label
>
<Col md="6">
<Input
type="text"
bind:value={$settings.miningPoolName}
name="miningPoolName"
id="miningPoolName"
bsSize={$uiSettings.inputSize}
required
minlength="64"
></Input>
</Col>
</Row>
<Row>
<Label md={6} for="miningPoolUser" size={$uiSettings.inputSize}
>{$_('section.settings.miningPoolUser')}</Label
>
<Col md="6">
<Input
type="text"
bind:value={$settings.miningPoolUser}
name="miningPoolUser"
id="miningPoolUser"
bsSize={$uiSettings.inputSize}
required
minlength="64"
></Input>
</Col>
</Row>
{/if}
{#if 'nostrZapNotify' in $settings && $settings['nostrZapNotify']} {#if 'nostrZapNotify' in $settings && $settings['nostrZapNotify']}
<Row> <Row>
<Label md={6} for="nostrZapPubkey" size={$uiSettings.inputSize} <Label md={6} for="nostrZapPubkey" size={$uiSettings.inputSize}