Correct just reading from the database won't hurt anything.  The code will 
trigger a Data base read and in this case a sum of the data for yesterday.  
>From a CPU perspective it seems to have little effect on the Rpi 3 I use, I 
actually pull rain for the last 24 hours, last week, and last month.

As for the SD Card life I can't say much since I use an old spinning USB 
Hard drive to store my data, but data reads are not very hard on an SD it 
is the writes I believe are the issue.  If you search through the posts I 
think you'll find info on SD card life, plus ways to minimize the writes.

It may be possible to run a query on the DB at say 5 past midnight and save 
the data to a text file or a DB record and then not have to run the query 
every report cycle, but it beyond what I have done....


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/447278e2-0a1f-4f29-951f-bca43fd04107o%40googlegroups.com.

Reply via email to