[Core:Str_ChartData] Limit Datapoints to n last Lines #42

Closed
opened 2025-04-14 23:08:25 +02:00 by DeltaLima · 1 comment
Owner

~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_Datapoints contains 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.

~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_Datapoints` contains 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.
Author
Owner

solved :)

solved :)
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DeltaLima/CanGrow#42
No description provided.