From 4b1a3e9a7e38785e70093f8dc96d71a6f613f9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Tue, 21 Feb 2023 13:57:38 +0100 Subject: [PATCH] fix koji recipe --- recipes.json | 92 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 78 insertions(+), 14 deletions(-) diff --git a/recipes.json b/recipes.json index c347a4c..3e1aefb 100644 --- a/recipes.json +++ b/recipes.json @@ -1,4 +1,76 @@ [ + { + "name": "Koji Rice (MISO)", + "description": "Tiene riso alla temperatura e umidità giuste per il koji", + "controllers": [ + "(make-duty-controller \"heater\" 0.40 60)", + "(make-duty-controller \"humidifier\" 0.80 100)" + ], + "phases": [ + { + "name": "Prepare", + "description": "Turn Fan On", + "exit_condition": "#t", + "on_load": "(set-actuator \"fan\" #t)", + "on_exit": "#t" + }, + { + "name": "Cool Down", + "description": "Wait until rice reaches 37", + "exit_condition": "(<= (get-sensor \"T_food\") 37)", + "on_load": "(begin (set-controller \"heater\" \"T_ext\")\n(set-controller \"humidifier\" \"H_ext\")\n(set-target \"T_ext\" 37.0)\n(set-target \"H_ext\" 90.0))", + "on_exit": "#t" + }, + { + "name": "Inoculata!", + "description": "Add kojio spores", + "exit_condition": "(manual-intervention \"Inocula\" '((\"Fatto\" #t)))", + "on_load": "(notify \"Inocula ora!\")", + "on_exit": "(notify (concat \"Inoculated at \" (now)))" + }, + { + "name": "Hold", + "description": "Keep 30°C", + "exit_condition": "(> (time-in-this-phase) (hours 10))", + "on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-controller \"humidifier\" \"H_ext\")\n(set-target \"T_food\" 30.0)\n(set-target \"H_ext\" 90.0))", + "on_exit": "(notify \"Rimischia il koji!\")" + }, + { + "name": "Hold", + "description": "Keep 30°C", + "exit_condition": "(> (time-in-this-phase) (hours 10))", + "on_exit": "(notify \"Rimischia il koji!\")", + "on_load": "#t" + }, + { + "name": "Hold", + "description": "Keep 30°C", + "exit_condition": "(> (time-in-this-phase) (hours 4))", + "on_exit": "(notify \"24 ore, controlla la temperatura\")", + "on_load": "#t" + }, + { + "name": "Hold", + "description": "Keep 30°C, abbassa l'umidità per favorire l'ingresso del koji nel chicco", + "exit_condition": "(> (time-in-this-phase) (hours 10))", + "on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-controller \"humidifier\" \"H_ext\")\n(set-target \"T_food\" 30.0)\n(set-target \"H_ext\" 80.0))", + "on_exit": "(notify \"Rimischia il koji!\")" + }, + { + "name": "Hold", + "description": "Keep 30°C", + "exit_condition": "(> (time-in-this-phase) (hours 10))", + "on_exit": "(notify \"Rimischia il koji!\")", + "on_load": "#t" + }, + { + "name": "Hold", + "description": "Keep 30°C", + "exit_condition": "(> (time-in-this-phase) (hours 4))", + "on_load": "#t" + } + ] + }, { "name": "Tepache", "description": "Tiene il tepache a ~23 gradi", @@ -8,14 +80,14 @@ "phases": [ { "name": "Hold", - "description": "Keep 23\u00b0C", + "description": "Keep 23°C", "exit_condition": "(> (time-in-this-phase) (hours 10))", "on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 23.0))", "on_exit": "#t" } ] -}, - { + }, + { "name": "Stracchino", "description": "Tiene lo stracchino a ~35 gradi per 24 ore", "controllers": [ @@ -24,16 +96,16 @@ "phases": [ { "name": "Hold", - "description": "Keep 35\u00b0C", + "description": "Keep 35°C", "exit_condition": "(> (time-in-this-phase) (hours 17))", "on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 35.0))", "on_exit": "#t" } ] -}, + }, { "name": "Yogurt", - "description": "Pastorizza lo yogurt a 82 gradi, lascia raffreddare per fare l'inoculo, mantiene a 42 gradi fino a che \u00e8 pronto.", + "description": "Pastorizza lo yogurt a 82 gradi, lascia raffreddare per fare l'inoculo, mantiene a 42 gradi fino a che è pronto.", "controllers": [ "(make-duty-controller \"heater\" 0.20 120)" ], @@ -84,14 +156,6 @@ ], "phases": [] }, - { - "name": "Koji Rice", - "description": "FIXME", - "controllers": [ - "(make-duty-controller \"heater\" 0.20 120)" - ], - "phases": [] - }, { "name": "Gorgonzola", "description": "FIXME",