added periodic value generation and ring-buffers for smart meter faking