This commit is contained in:
Stefan Ostermann 2025-07-07 21:28:20 +02:00
parent 129fa8e624
commit 67ded19c93
3 changed files with 5 additions and 4 deletions

View File

@ -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):

View File

@ -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/"

View File

@ -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");