Files
HendiControlFirmware/Control/brewpi/main.py
T
jens 08d8c32106 - added stirrer
- many other improvements

git-svn-id: http://moon:8086/svn/projects/HendiControl@116 fda53097-d464-4ada-af97-ba876c37ca34
2019-03-21 17:55:37 +00:00

28 lines
529 B
Python

#!/usr/bin/python3
import time
import json
import configparser
from pid import Pid
from controller import Controller
from mass import Mass
from stirrer import Stirrer
if __name__ == '__main__':
fp = open("brewpi.cfg.json")
configJson = json.load(fp)
plant = Mass(configJson["WaterSim"])
ruehrer = Stirrer(configJson["Stirrer"])
ablauf = Controller(configJson["Controller"], plant, ruehrer)
fp = open("Rezept-001.json")
recipeJson = json.load(fp)
ablauf.start(recipeJson)
ablauf.stop()
print ("End of program.")