update cli and remove target temp to 0 at fermenterstep end

This commit is contained in:
avollkopf 2022-02-28 11:15:02 +01:00
parent 580bdd899a
commit a503995d98
4 changed files with 6 additions and 6 deletions

View file

@ -1 +1 @@
__version__ = "4.0.2.0.a5" __version__ = "4.0.2.0.a6"

View file

@ -339,7 +339,7 @@ def create():
@click.command() @click.command()
@click.argument('name') @click.argument('name')
def autostart(name): def autostart(name):
'''Enable or disable autostart''' '''(on|off|status) Enable or disable autostart'''
if(name == "status"): if(name == "status"):
if os.path.exists(os.path.join("/etc/systemd/system","craftbeerpi.service")) is True: if os.path.exists(os.path.join("/etc/systemd/system","craftbeerpi.service")) is True:
print("CraftBeerPi Autostart is {}ON{}".format(Fore.LIGHTGREEN_EX,Style.RESET_ALL)) print("CraftBeerPi Autostart is {}ON{}".format(Fore.LIGHTGREEN_EX,Style.RESET_ALL))
@ -391,7 +391,7 @@ def autostart(name):
@click.command() @click.command()
@click.argument('name') @click.argument('name')
def chromium(name): def chromium(name):
'''Enable or disable autostart''' '''(on|off|status) Enable or disable Kiosk mode'''
if(name == "status"): if(name == "status"):
if os.path.exists(os.path.join("/etc/xdg/autostart/","chromium.desktop")) is True: if os.path.exists(os.path.join("/etc/xdg/autostart/","chromium.desktop")) is True:
print("CraftBeerPi Chromium Desktop is {}ON{}".format(Fore.LIGHTGREEN_EX,Style.RESET_ALL)) print("CraftBeerPi Chromium Desktop is {}ON{}".format(Fore.LIGHTGREEN_EX,Style.RESET_ALL))

View file

@ -208,7 +208,7 @@ class PluginController():
result.append({row: meta[row] result.append({row: meta[row]
for row in list(metadata(key))}) for row in list(metadata(key))})
except Exception as e: except Exception as e:
logger.error("FAILED to load plugin {} ".fromat(key)) logger.error("FAILED to load plugin {} ".format(key))
logger.error(e) logger.error(e)
except Exception as e: except Exception as e:

View file

@ -75,7 +75,7 @@ class FermenterTargetTempStep(CBPiFermentationStep):
async def on_timer_done(self,timer): async def on_timer_done(self,timer):
self.summary = "" self.summary = ""
self.fermenter.target_temp = 0 #self.fermenter.target_temp = 0
await self.push_update() await self.push_update()
if self.AutoMode == True: if self.AutoMode == True:
await self.setAutoMode(False) await self.setAutoMode(False)
@ -173,7 +173,7 @@ class FermenterStep(CBPiFermentationStep):
async def on_timer_done(self,timer): async def on_timer_done(self,timer):
self.summary = "" self.summary = ""
self.fermenter.target_temp = 0 #self.fermenter.target_temp = 0
if self.AutoMode == True: if self.AutoMode == True:
await self.setAutoMode(False) await self.setAutoMode(False)
#self.endtime = 0 #self.endtime = 0