- renamed main.py to brewpi.py

git-svn-id: http://moon:8086/svn/projects/HendiControl@124 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-03-21 21:14:25 +00:00
parent 540b6036e8
commit ebd6854e68
2 changed files with 23 additions and 29 deletions
+23 -2
View File
@@ -1,6 +1,27 @@
#!/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.")
-27
View File
@@ -1,27 +0,0 @@
#!/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.")