allow reloading recipes
This commit is contained in:
parent
7c6c2fdc85
commit
645292d5a5
5
app.py
5
app.py
|
@ -117,6 +117,11 @@ def next_phase():
|
||||||
if done:
|
if done:
|
||||||
statemachine.done()
|
statemachine.done()
|
||||||
|
|
||||||
|
@socketio.on('reload recipes')
|
||||||
|
def reload_recipes():
|
||||||
|
statemachine.reloadRecipes()
|
||||||
|
updateState()
|
||||||
|
|
||||||
def run_recipes():
|
def run_recipes():
|
||||||
while True:
|
while True:
|
||||||
while statemachine.recipe is not None:
|
while statemachine.recipe is not None:
|
||||||
|
|
|
@ -292,6 +292,8 @@ function render_load_recipe(data) {
|
||||||
<p class="card-header-title">
|
<p class="card-header-title">
|
||||||
Load Recipe
|
Load Recipe
|
||||||
</p>
|
</p>
|
||||||
|
<button class="button is-link"
|
||||||
|
onclick="reload_recipes();">Reload config</button>
|
||||||
</header>
|
</header>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="tabs is-centered">
|
<div class="tabs is-centered">
|
||||||
|
|
Loading…
Reference in New Issue