mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-23 05:54:58 +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
|
@ -471,6 +471,10 @@ class UploadController:
|
||||||
StrikeTemp=bf_recipe['data']['strikeTemp']
|
StrikeTemp=bf_recipe['data']['strikeTemp']
|
||||||
except:
|
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']
|
RecipeName = bf_recipe['name']
|
||||||
BoilTime = bf_recipe['boilTime']
|
BoilTime = bf_recipe['boilTime']
|
||||||
mash_steps=bf_recipe['mash']['steps']
|
mash_steps=bf_recipe['mash']['steps']
|
||||||
|
|
Loading…
Reference in a new issue