*****See new version in second post, first version/post for reference only*****
I wasnt sure where to post it, but since others might see some benifit in it, I though I would post up. Hopefully my ramblings prove usefull to someone!
First a little history. My ISP monitors how much data I transfer each billing period, so I have to watch myself. Before pfsense I was internet sharing through a windows PC, and use Bitmeter2 to montior my usage. I have been using pfsense for a little over a year, as marvelous as it is, I couldnt find a function to duplicate what Bitmeter2 was doing on my pc. When I set it up, I tried a variety of plugins, none doing exactly what I wanted. So I modified an old yahoo widget I wrote years ago to use SNMP to track my usage. That had a downfalls though, as the pc hosting the widget had to be always on and I had to run yahoo widgets for only the one widget. Alot of overhead for something so simple. Regardless, I used that function for most of the time until now. As a result my wife and I having a child, the rooms in the house being rearranged, and the computer with the widget will no longer have the uptime it use to and will be missing data that the other computers use, so I was again on the hunt for a solution that was on the router.
I went though the plugins again, but nothing exactly fit my bill, then I wrote some scripts to use the RRD backend to generate what I needed, but the implementation was awkward. So I ended up just writing my own php script to do what I needed. It is extremely simplistic, and defenatly not the most elequant code, but I haven't done php in years, and I'm a windows boy, and clueless when it comes to FreeBSD.
Currently I am running 1.2.3RELEASE installed on a hard drive.
see posts below for the install files.