mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #503] Serving pages from the filesystem #422
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#422
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @renegadeandy on GitHub (Feb 5, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/503
Can somebody offer an example sketch which serves the in memory pages, from the filesystem instead of the ones in memory?
I have read and tried changing the server to a SPIFFS server(https://github.com/r-downing/SPIFFSReadServer) rather than a ESP8266WebServer, but the result is never stable. Please offer an example of how this can be done.
Using v2 prebuilt, 80mhz, esp-12-e, all through Arduino IDE
@renegadeandy commented on GitHub (Feb 8, 2018):
Help? Is there a community around this library?
@tablatronix commented on GitHub (Feb 9, 2018):
Nobody is gonna dl a zip to see your code
@renegadeandy commented on GitHub (Feb 9, 2018):
The code can be found here: https://bitbucket.org/renegadeandy/wifimanagerbug/
Assuming you had a data/otherpage.html, data/css/style.css, data/js/other.js, it should be served up.
But it rarely works and makes a real meal of serving the pages.
@tablatronix commented on GitHub (Feb 9, 2018):
maybe remove the wifimanager handlenotfound event ?
@tablatronix commented on GitHub (Feb 9, 2018):
oh nm you did
@renegadeandy commented on GitHub (Feb 9, 2018):
yep . :)
It's not that.
@renegadeandy commented on GitHub (Feb 11, 2018):
Bump.
@morrisho commented on GitHub (May 29, 2020):
Hi there, I figured something out finally. I am able to use SPIFFS to load .html and .css files. I successfully did the root page and I am working on other pages too. However, I actually uses khoih's version for my mod. But the method is the same. This is the first time I contribute something on github so I am not sure how this works. Should I put my mod on a forked version or how does people normally do?
@tablatronix commented on GitHub (May 29, 2020):
fork, new branch with name of change
@morrisho commented on GitHub (May 30, 2020):
Hello, I put my mod here. I don't know much about html or css so I did my best I can moving the HTTP array stuff to html files. I am not sure how to do dynamic html content update so I basically dump the file text into string and replace {variables} with updated information. This is the reason the html file cannot have \n character otherwise the replace function won't work. I googled around found that it seems AJAX can be used for this?