From 67ded19c93e67602d86df17d8125d8958c4df7d9 Mon Sep 17 00:00:00 2001 From: Stefan Ostermann Date: Mon, 7 Jul 2025 21:28:20 +0200 Subject: [PATCH] docs --- SD_CARD_SETUP.md | 2 ++ copy_to_sd.sh | 3 +++ src/main.cpp | 4 ---- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/SD_CARD_SETUP.md b/SD_CARD_SETUP.md index 2638203..4a21180 100644 --- a/SD_CARD_SETUP.md +++ b/SD_CARD_SETUP.md @@ -9,6 +9,7 @@ SD Card Root/ ├── system/ │ ├── style.css (Web interface CSS - copy from web/style.css) │ ├── script.js (Web interface JavaScript - copy from web/script.js) +| ├── index.html (homepage - copy from web/index.html) │ ├── start.mp3 (Startup sound) │ └── sleep.mp3 (Sleep sound) ├── [your music folders]/ @@ -25,6 +26,7 @@ SD Card Root/ 3. **Copy the web interface files**: - Copy the file `web/style.css` from this project to `system/style.css` on your SD card - Copy the file `web/script.js` from this project to `system/script.js` on your SD card + - Copy the file `web/index.html` from this project to `system/index.html` on your SD card - These files contain all the styling and functionality for the web interface 4. **Add sound files** (optional): diff --git a/copy_to_sd.sh b/copy_to_sd.sh index 34da35b..78efc1f 100755 --- a/copy_to_sd.sh +++ b/copy_to_sd.sh @@ -32,6 +32,9 @@ cp web/style.css "$SD_MOUNT_POINT/system/" echo "Copying script.js..." cp web/script.js "$SD_MOUNT_POINT/system/" +echo "Copying index.html..." +cp web/index.html "$SD_MOUNT_POINT/system/" + echo "Files copied successfully!" echo "Your SD card system directory now contains:" ls -la "$SD_MOUNT_POINT/system/" diff --git a/src/main.cpp b/src/main.cpp index b376952..e8bda27 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -766,8 +766,6 @@ void setup() server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { webrequestActive = true; - deactivateRFID(); - activateSD(); String htmlPath = "/system/index.html"; if (SD.exists(htmlPath)) { AsyncWebServerResponse *response = request->beginResponse(SD, htmlPath, "text/html", false, processor); @@ -784,8 +782,6 @@ void setup() server.on("/style.css", HTTP_GET, [](AsyncWebServerRequest *request) { webrequestActive = true; - deactivateRFID(); - activateSD(); String cssPath = "/system/style.css"; if (SD.exists(cssPath)) { request->send(SD, cssPath, "text/css");