docs
This commit is contained in:
parent
129fa8e624
commit
67ded19c93
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue