[Core:Str_ChartData] Limit Datapoints to n last Lines #42
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#42
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?
~85 datapoints per chart is too much for the esp8266, so I would like to limit the maximal datapoints on at least the esp8266 (esp32 and variants have to be tested). Maybe 64 for ESP8266 and ESP32 idk yet.
Seperate function
unsigned short Chart_CountDatapoints(const byte chartId)to return number of Datapoints.const byte Max_Dashboard_Chart_Datapointscontains number of max datapoints.Then check if datapoints have to be skipped (e.g. 81dp found, max allowed 64).
Hopefully iterating through all files twice (once for getting total number, then for reading the content) is not too "heavy" and takes too much time.
solved :)