https://github.com/openenergymonitor/EmonLib