Nice. Guess I need to go read up on this cgi you speak of...
I'll speed you up, but I am more of a hack than a polished programmer so rather just give tips to what I did
the fields that are already constantly being updated and outputted for use are:
STATUS=S,When=1382207241,Code=11,Msg=Summary,Description=cgminer 3.4.0|SUMMARY,
Elapsed=310,MHS av=450396.80,Found Blocks=0,Getworks=17,Accepted=102,Rejected=2,
Hardware Errors=7707,Utility=19.77,Discarded=26,Stale=0,Get Failures=0,Local Work=45860,
Remote Failures=0,Network Blocks=3,Total MH=139401753.5263,Work Utility=6997.99,
Difficulty Accepted=26112.00000000,Difficulty Rejected=512.00000000,Difficulty Stale=0.00000000,
Best Share=468225,Device Hardware%=17.5935,Device Rejected%=1.4183,Pool Rejected%=1.9231,Pool Stale%=0.0000|
You can use any of these but will have to change two files:
/www/tmpl/mining_stat.html_tmpl
that one will do the formatting and I make a new one and call it mining_stat.html_tmpl2
the one that does the real work is
/www/pages/cgi-bin/fetch_mining_stat.cgi
when you look inside these two files you will see how to add more fields and just stick with it's naming conventions to pass the values
since I changed the name of the other file, make sure to point to the new named one in this file like:
s!#%#ASIC_STATUS#%#!'"$asic_status"'!g' < /www/tmpl/mining_stat.html_tmpl2
so when you are all set with files in the two directories, you just do a simple
cp fetch_mining_stat.cgi.[newversion] fetch_mining_stat.cgi
then it doesn't disrupt anything since now it just goes to the other formatting file smoothly
ps-save copies in /config since about everything else gets wiped on reboots