Monthly Statistics

Forums:

I have recently created a new script.
This script will process all of the log files for the current month.
Run daily via chron, it will continually compile the statistics for the month and output the data to an html file.
HTML file is then uploaded via ftp to the place where you have your quickCPM html files.
I then added an iframe reference in my quickCPM.py to display the stats on the page with the gauges.
I set it for 50vh but you can make the height whatever you want by changing the style of the iframe.
Below is an example pic of the page.
Source code has not been updated but will try to get it up soon.
Stas data includes the max cpm for the month, the average cpm for the month trailed by some counter stats used for the average math.

You can edit crontab by typing:
crontab -e
The crontab is:

0 * * * * /home/pi/bin/qcpmM.sh
0 * * * * /home/pi/bin/qcpmY.sh

This will upload each every hour.
I created a shell cmd to run each and set it to chmod -x
The qcpmM.sh is simply
python3 qcpmmonthstats.py
and qcpmY.sh is
python3 qcpmyearstats.py

Pics: 
abitowhit's picture

I will probably include a loop to do yearly stats of all months.