From 2bea761d3c69954053882249380ca5a48c31b467 Mon Sep 17 00:00:00 2001 From: kdmukai Date: Mon, 16 Dec 2024 17:32:03 -0600 Subject: [PATCH] work-in-progress, untested --- README.md | 6 +++++- src/lib/locales/en.json | 2 ++ src/routes/Settings.svelte | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 805bfa1..1e9dd3c 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,11 @@ Make sure the postinstall script is ran, because otherwise the filenames are to ## 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: diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index 3ab90ed..f08f40b 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -44,6 +44,8 @@ "useNostr": "Use Nostr data source", "bitaxeHostname": "BitAxe hostname or IP", "bitaxeEnabled": "Enable BitAxe", + "miningPoolName": "Mining Pool", + "miningPoolUser": "Mining Pool username or api key", "nostrZapPubkey": "Nostr Zap pubkey", "invalidNostrPubkey": "Invalid Nostr pubkey, note that your pubkey does NOT start with npub.", "convertingValidNpub": "Converting valid npub to pubkey", diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 8130940..43964f3 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -698,6 +698,40 @@ {/if} + {#if $settings.miningPoolStatsEnabled} + + + + + + + + + + + + + {/if} {#if 'nostrZapNotify' in $settings && $settings['nostrZapNotify']}