update yogurt recipe

master
Nicolò Balzarotti 2022-11-19 19:47:02 +01:00
parent ce789263f0
commit 8631c8c111
2 changed files with 5 additions and 9 deletions

View File

@ -31,7 +31,7 @@ def load_recipe(json):
nextcond=fallback('exit_condition'))
return Recipe(
json['name'], json['variant'], json['description'],
json['controllers'],
json.get('controllers', ()),
tuple(load_phase(p) for p in json['phases']))
def load_recipes(file):

View File

@ -11,19 +11,14 @@
"name": "Preheat",
"description": "Preheat yogurt to 82°",
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 82.0))",
"exit_condition": "(and (>= (get-sensor \"T_food\") 81.5)\n(> (time-in-this-phase) (seconds 1)))"
"exit_condition": "(and (>= (get-sensor \"T_food\") 81.5)\n(> (time-in-this-phase) (minutes 15)))"
},
{
"name": "Cool",
"description": "Cool to 46°",
"on_load": "(set-target \"T_food\" 46.0)",
"exit_condition": "(and (< (get-sensor \"T_food\") 46.0)\n(> (get-sensor \"T_food\") 42.0))"
},
{
"name": "Hold",
"description": "Keep at 42° for 3h",
"exit_condition": "(> (time-in-this-phase) (seconds 5))",
"on_exit": "(notify \"You can remove the yogurt from the heater\")"
},
{
"name": "Inoculate",
"description": "Add 50ml Yogurt",
@ -34,7 +29,8 @@
{
"name": "Hold",
"description": "Keep at 42° for 3h",
"exit_condition": "(> (time-in-this-phase) (seconds 3))",
"on_load": "(set-target \"T_food\" 41.0)",
"exit_condition": "(> (time-in-this-phase) (hours 3))",
"on_exit": "(notify \"You can remove the yogurt from the heater\")"
}
]