The code is written in Python and can be found on Github:

https://github.com/elha/emon/blob/master/emon.py