The web user-interface for the BTClock
Go to file
2024-08-31 15:37:20 +02:00
.github/workflows Fix workflow 2024-06-29 16:39:43 +02:00
.vscode Added WiFi signal status and settings 2023-11-21 16:05:00 +01:00
doc Add license 2023-11-19 16:27:43 +01:00
patches Add patch for inflexible sveltejs-kit 2023-11-17 19:10:46 +01:00
src Improve Nostr Zap support 2024-08-31 15:37:20 +02:00
static Improve Nostr Zap support 2024-08-31 15:37:20 +02:00
tests Added more tests 2023-11-26 02:01:50 +01:00
.eslintignore Fix lint 2023-11-21 21:33:34 +01:00
.eslintrc.cjs Lint and format all files 2023-11-19 20:27:22 +01:00
.gitignore Write more tests 2023-11-25 00:42:37 +01:00
.npmrc Initial commit 2023-11-17 01:05:35 +01:00
.prettierignore Lint and format all files 2023-11-19 20:27:22 +01:00
.prettierrc Initial commit 2023-11-17 01:05:35 +01:00
Dockerfile Create GitHub workflow and Dockerfile 2023-11-19 15:08:26 +01:00
gzip_build.py Making it work for ESP32 2023-11-17 11:09:06 +01:00
package.json Add BitAxe support 2024-07-29 20:10:26 +02:00
playwright.config.ts Add mock api and test reporting 2023-11-23 02:35:09 +01:00
README.md Lint and format all files 2023-11-19 20:27:22 +01:00
svelte.config.js Use svelte preprocess, generate random colors, check GZipped filesize 2023-11-21 20:43:17 +01:00
tsconfig.json Initial commit 2023-11-17 01:05:35 +01:00
vite.config.ts Test reporting fix 2023-11-23 02:41:58 +01:00
yarn.lock Improve Nostr Zap support 2024-08-31 15:37:20 +02:00

BTClock WebUI

BTClock CI

The web user-interface for the BTClock, based on Svelte-kit. It uses Bootstrap for the lay-out.

Screenshot Screenshot Dark

Developing

After installed dependencies with yarn, start a development server:

yarn dev

# or start the server and open the app in a new browser tab
yarn dev -- --open

Building

To create a production version of the WebUI:

yarn build

Make sure the postinstall script is ran, because otherwise the filenames are to long for the LittleFS filesystem.

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.

Then you can make a LittleFS.bin with mklittlefs:

mklittlefs -c build_gz -s 409600 littlefs.bin

You can preview the production build with yarn preview.