mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 13:34:55 +01:00
Fix for StrikeTemp in case you operate system in F
BF i sending all temps in C and striketemp needs to be converterd to F if cbpi4 is running in F
This commit is contained in:
parent
7c8351e068
commit
c43a0a25bf
1 changed files with 5 additions and 1 deletions
|
@ -470,7 +470,11 @@ class UploadController:
|
|||
try:
|
||||
StrikeTemp=bf_recipe['data']['strikeTemp']
|
||||
except:
|
||||
StrikeTemp = None
|
||||
StrikeTemp = None
|
||||
# BF is sending all Temeprature values in °C. If system is running in F, values need to be converted
|
||||
if StrikeTemp is not None and self.TEMP_UNIT != "C":
|
||||
StrikeTemp = round((9.0 / 5.0 * float(StrikeTemp)+ 32))
|
||||
|
||||
RecipeName = bf_recipe['name']
|
||||
BoilTime = bf_recipe['boilTime']
|
||||
mash_steps=bf_recipe['mash']['steps']
|
||||
|
|
Loading…
Reference in a new issue