Smart energy monitor device software for EmonCMS