[Grow:Dashboard] Sensor Data logging to LittleFS #35
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#35
Loading…
Add table
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?
Some sensor values would be interesting to track and visualize as timegraph on the dashboard.
Writing the sensor readings to LittleFS should be configurable in the sensor calibration (because there is every reading present) or as Option within the dashboard settings.
Data on LittleFS could be stored like
the csv would contain two columns, timestamp and value (float)
Appending the file every hour would be enought imho. This could be a timer beginning from startup time , or something which executes exactly at full hour. I guess the first option is the easiest to implement and should be taken for the beginning.
Keeping 7 days of data would be enough i guess. This could be configurable.
Filename schema is
YYYYMMDD
.To cleanup old files, we can just check
if(20250329 < 20250401)
. To calculate this date string of the oldest file, we can do something likedatestring_oldest = year(now() - (60*60*24*7)) + month(now() - (60*60*24*7)) + day(now() - (60*60*24*7))