Smartmeter scripts and foo