We like to track and limit our kids’ time on the computer. In order to
help in this effort I wrote a couple of quick login and logout scripts
to track their time on our home computers. These scripts write their
information to a Mongo database running in
http://mongohq.com and to
the Mac OS/X syslog.
I also have a web application that will read this data and display how
long each child has been on the computer for a given time period, and
what the events are for that time period.
So far, it’s working out nicely.
There was no real need to use Mongo for this, I could have used a
traditional RDBMS (e.g. MySQL, PostgreSQL, etc.), but Mongo was pretty
easy to do and I just like using it.
https://gist.github.com/2861733