#!/usr/bin/python3 from lib.DataReader import PeriodicReaderWrapper from lib.ISM7 import ISM7DataReader data_reader = ISM7DataReader('0_data/ism7_values.dat') try: while data_reader.peek(): aggregator = PeriodicReaderWrapper(data_reader, 60, 3600) for element in aggregator: print( element['time'], element['temp_in'], element['temp_out'], element['temp_target'], element['temp_flow'], element['temp_return'], int(bool(element['mode'])) ) print('---') except StopIteration: pass