Dynamic Webpages
Posted: 22 Oct 2017, 20:17
Hi all,
I read it somewhere... custom Webpages. Cool to have the ESP serve a little value by itself.
To put it short:
1. upload any html website as if it was a config file. It goes to spiffs.
2. Access it from your browser.
Here comes the dynamic part:
use %...% to include system variable placeholders or [device#variable] to include measurement values from your sensor.
That is how it is written in the release note.
Here comes the BUT part:
works only if your file extension is .esp.
myfile.htm will not get replaced anything, myfile.esp works.
Took me some reverse-engineering to figure out. Could someone please drop a note someplace useful ?
Thanks.
I read it somewhere... custom Webpages. Cool to have the ESP serve a little value by itself.
To put it short:
1. upload any html website as if it was a config file. It goes to spiffs.
2. Access it from your browser.
Here comes the dynamic part:
use %...% to include system variable placeholders or [device#variable] to include measurement values from your sensor.
That is how it is written in the release note.
Here comes the BUT part:
works only if your file extension is .esp.
myfile.htm will not get replaced anything, myfile.esp works.
Took me some reverse-engineering to figure out. Could someone please drop a note someplace useful ?
Thanks.