mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-23 15:38:14 +01:00
get first ferment target temp from BF for cooldown step
This commit is contained in:
parent
4de128f902
commit
e0b220d980
2 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
__version__ = "4.4.3.a5"
|
||||
__version__ = "4.4.3.a6"
|
||||
__codename__ = "Yeast Starter"
|
||||
|
||||
|
|
|
@ -815,6 +815,21 @@ class UploadController:
|
|||
except:
|
||||
miscs = None
|
||||
|
||||
try:
|
||||
fermentation_steps=bf_recipe['fermentation']['steps']
|
||||
except:
|
||||
fermentation_steps=None
|
||||
|
||||
if fermentation_steps is not None:
|
||||
try:
|
||||
step=fermentation_steps[0]
|
||||
self.fermentation_step_temp=int(step['stepTemp'])
|
||||
except:
|
||||
self.fermentation_step_temp=None
|
||||
|
||||
if self.fermentation_step_temp is not None and self.TEMP_UNIT != "C":
|
||||
self.fermentation_step_temp = round((9.0 / 5.0 * float(self.fermentation_step_temp)+ 32))
|
||||
|
||||
FirstWort = self.getFirstWort(hops, "bf")
|
||||
|
||||
await self.create_recipe(RecipeName)
|
||||
|
@ -1053,7 +1068,8 @@ class UploadController:
|
|||
if cooldown_sensor is None or cooldown_sensor == '':
|
||||
cooldown_sensor = self.boilkettle.sensor # fall back to boilkettle sensor if no other sensor is specified
|
||||
step_timer = ""
|
||||
step_temp = int(self.CoolDownTemp)
|
||||
|
||||
step_temp = int(self.CoolDownTemp) if (self.fermentation_step_temp is None or self.fermentation_step_temp <= int(self.CoolDownTemp)) else self.fermentation_step_temp
|
||||
step_string = { "name": "Cooldown",
|
||||
"props": {
|
||||
"Kettle": self.boilid,
|
||||
|
|
Loading…
Reference in a new issue