I don't use weewx AS3935 database but keep daily log files in my RPi. Every 
minute, a python script analyses the file and counts the number of strokes 
in the last minute. It writes a txt file with a single digit that weewx 
reads every minute and stores the value in the database under a new column 
(e.g. strikes). I don't read distance but I could if I wanted. It would 
mean you'd have to either average the distance over the last minute's 
strikes or decide another algorithm.
Weewx does the ploting for me but for another project, I simply aggregate 
the strikes over a period of time (an hour or 10 minutes) and use plotly to 
show the plot. Herebelow is a most recent example (running out of time) of 
the small storm we had (aggregate period: 10 minutes).
I prefer to keep a daily log separately since there could be hundreds to 
thousands of strikes detected every storm and I don't want a single strike 
to be in the database.




 

> Would be nice to have a list or like a "spreadsheet" on the webpage that 
> shows today's strikes and avg distance to each strike. This should also be 
> emptied at midnight.
> Can someone accomplish the code to implement in the index.html.tmpl file? 
> Would be great! 
>
> Mikael
>

-- 
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/3eb338c8-c5c4-4949-826a-6905e82c63bf%40googlegroups.com.

Reply via email to