Heating controller with neural thermal model written in Python
Jacek Kowalski
2018-06-24 425bf71fc0b24b547006686d83404c54b983de0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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