mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-09 18:52:40 +02:00
Add notification at the end of a mashstep.
This commit is contained in:
@@ -21,7 +21,7 @@ class MashStep(StepBase):
|
|||||||
def init(self):
|
def init(self):
|
||||||
'''
|
'''
|
||||||
Initialize Step. This method is called once at the beginning of the step
|
Initialize Step. This method is called once at the beginning of the step
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
# set target tep
|
# set target tep
|
||||||
self.set_target_temp(self.temp, self.kettle)
|
self.set_target_temp(self.temp, self.kettle)
|
||||||
@@ -31,7 +31,7 @@ class MashStep(StepBase):
|
|||||||
'''
|
'''
|
||||||
Custom Action which can be execute form the brewing dashboard.
|
Custom Action which can be execute form the brewing dashboard.
|
||||||
All method with decorator @cbpi.action("YOUR CUSTOM NAME") will be available in the user interface
|
All method with decorator @cbpi.action("YOUR CUSTOM NAME") will be available in the user interface
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
if self.is_timer_finished() is None:
|
if self.is_timer_finished() is None:
|
||||||
self.start_timer(int(self.timer) * 60)
|
self.start_timer(int(self.timer) * 60)
|
||||||
@@ -46,7 +46,7 @@ class MashStep(StepBase):
|
|||||||
def execute(self):
|
def execute(self):
|
||||||
'''
|
'''
|
||||||
This method is execute in an interval
|
This method is execute in an interval
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# Check if Target Temp is reached
|
# Check if Target Temp is reached
|
||||||
@@ -57,6 +57,7 @@ class MashStep(StepBase):
|
|||||||
|
|
||||||
# Check if timer finished and go to next step
|
# Check if timer finished and go to next step
|
||||||
if self.is_timer_finished() == True:
|
if self.is_timer_finished() == True:
|
||||||
|
self.notify("Step Completed!", "Starting the next step", timeout=None)
|
||||||
self.next()
|
self.next()
|
||||||
|
|
||||||
|
|
||||||
@@ -77,7 +78,7 @@ class MashInStep(StepBase):
|
|||||||
def init(self):
|
def init(self):
|
||||||
'''
|
'''
|
||||||
Initialize Step. This method is called once at the beginning of the step
|
Initialize Step. This method is called once at the beginning of the step
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
# set target tep
|
# set target tep
|
||||||
self.s = False
|
self.s = False
|
||||||
@@ -88,7 +89,7 @@ class MashInStep(StepBase):
|
|||||||
def execute(self):
|
def execute(self):
|
||||||
'''
|
'''
|
||||||
This method is execute in an interval
|
This method is execute in an interval
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# Check if Target Temp is reached
|
# Check if Target Temp is reached
|
||||||
@@ -169,7 +170,7 @@ class BoilStep(StepBase):
|
|||||||
def init(self):
|
def init(self):
|
||||||
'''
|
'''
|
||||||
Initialize Step. This method is called once at the beginning of the step
|
Initialize Step. This method is called once at the beginning of the step
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
# set target tep
|
# set target tep
|
||||||
self.set_target_temp(self.temp, self.kettle)
|
self.set_target_temp(self.temp, self.kettle)
|
||||||
@@ -182,7 +183,7 @@ class BoilStep(StepBase):
|
|||||||
'''
|
'''
|
||||||
Custom Action which can be execute form the brewing dashboard.
|
Custom Action which can be execute form the brewing dashboard.
|
||||||
All method with decorator @cbpi.action("YOUR CUSTOM NAME") will be available in the user interface
|
All method with decorator @cbpi.action("YOUR CUSTOM NAME") will be available in the user interface
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
if self.is_timer_finished() is None:
|
if self.is_timer_finished() is None:
|
||||||
self.start_timer(int(self.timer) * 60)
|
self.start_timer(int(self.timer) * 60)
|
||||||
@@ -205,7 +206,7 @@ class BoilStep(StepBase):
|
|||||||
def execute(self):
|
def execute(self):
|
||||||
'''
|
'''
|
||||||
This method is execute in an interval
|
This method is execute in an interval
|
||||||
:return:
|
:return:
|
||||||
'''
|
'''
|
||||||
# Check if Target Temp is reached
|
# Check if Target Temp is reached
|
||||||
if self.get_kettle_temp(self.kettle) >= float(self.temp):
|
if self.get_kettle_temp(self.kettle) >= float(self.temp):
|
||||||
|
|||||||
Reference in New Issue
Block a user