It's the dashboard for the Bedroom Clock.
- ESP32 have not enough space. If we build the project the static files (js, css, ...) are to big for the internal storage of the ESP. So ESP32s webserver tunneling all specific request to the Github Pages URL and only execute API requsts internal.
- If you use the internal storage of the ESP32, you have to flash it for each dashboard update and it's complicated to keep settings because they stored on the device also.
Yes, it is possible to run the dashboard from your own server.
You have to build the project with the command
npm run buildand copy the content of the dist folder to a public endpoint (maybe a nginx on your server). It's also possible to make a Docker container with the dashboard.
Now you have to change some URLs in the bedroom-clock firmware:
Clone the repo and open src/main.cpp.
Change the value of the two variables "externalBaseUrl" and "indexPath" so it matches your own server URL (domain or IP address)
const char *externalBaseUrl = "http://192.168.178.5";
const char *indexPath = "/folder/index.html";npm installnpm run devnpm run build