[Dashboard] Implement root page #2
Labels
No labels
bug
documentation
duplicate
enhancement
help wanted
invalid
question
v0.1.x
v0.2.x
v0.3.x
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DeltaLima/CanGrow#2
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?
The overview of the values should look a bit more nice
Dashboard aka root page is still not present in v0.2
Enhancement: Liftup Root Page Designto [Dashboard] Implement root pageguages are working fine now, actually working on charts. data logging is also done.
i first try chartscss.org which looks pretty nice and fits into the small space available on the ESP.
7kb gzipped file size!
the project says.chartscss works with an ordinary table, applying css classes to its elements. Pretty easy, but this leads that the generated HTML is pretty large (>14KB) which causes the ESP to crash.
So I think it would be better to draw the table itself with all its classes and so on with javascript.
Generating all the charts data as JSON and putting it directly into the HTML body like shown here (https://stackoverflow.com/questions/9320427/best-practice-for-embedding-arbitrary-json-in-the-dom)
Alternatively getting the data as JSON string by calling
GET /api/chartdata
or so would also do the trick. but this adds an additional request when loading the page, which can also lead into problems. ESPAsyncWebserver can only handle 3-4 requests at once. (or very short after another)Chart is now fully drawn by javascript function, json data is also embedded into html, to save a request. four requests at once, especially with so large documents like json time data and dashboard stuff, kills the ESP.
Todo:
data table stalled until #39 has some real progress