From b65af6c02b5a7785bdc6b95b2be7616749d268c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Sat, 25 Feb 2023 11:10:10 +0100 Subject: [PATCH] fix invalid json, pretty print it --- recipes.json | 82 ++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/recipes.json b/recipes.json index 899c71e..5a94f98 100644 --- a/recipes.json +++ b/recipes.json @@ -44,9 +44,9 @@ }, { "name": "Hold", - "description": "Keep 30°C, abbassa l'umidità per favorire l'ingresso del koji nel chicco", + "description": "Keep 30°C, abbassa l'umidità per favorire l'ingresso del koji nel chicco", "exit_condition": "(> (time-in-this-phase) (hours 12))", - "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_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!\")" }, { @@ -90,50 +90,50 @@ } ] }, - { - "name": "Yogurt", - "description": "Lascia raffreddare lo yogurt per fare l'inoculo, mantiene a 42 gradi fino a che è pronto, e poi porta a 4 gradi.", - "controllers": [ - "(make-duty-controller \"heater2\" 0.10 120 '<)" - "(make-duty-controller \"freezer\" 0.20 120 '>)" - ], - "phases": [ - { - "name": "Prepare", - "description": "Turn Fan On", - "exit_condition": "#t", - "on_load": "(set-actuator \"fan\" #t)", - "on_exit": "#t" + { + "name": "Yogurt", + "description": "Lascia raffreddare lo yogurt per fare l'inoculo, mantiene a 42 gradi fino a che è pronto, e poi porta a 4 gradi.", + "controllers": [ + "(make-duty-controller \"heater2\" 0.10 120 '<)", + "(make-duty-controller \"freezer\" 0.20 120 '>)" + ], + "phases": [ + { + "name": "Prepare", + "description": "Turn Fan On", + "exit_condition": "#t", + "on_load": "(set-actuator \"fan\" #t)", + "on_exit": "#t" }, - { - "name": "Cool", - "description": "Cool to 46°C", - "exit_condition": "(and (< (get-sensor \"T_food\") 46.0)\n(> (get-sensor \"T_food\") 42.0))", - "on_load": "(begin (set-controller \"heater2\" \"T_food\") (set-target \"T_food\" 46.0) (set-controller \"freezer\" \"T_ext\") (set-target \"T_ext\" 46.0))", - "on_exit": "#t" + { + "name": "Cool", + "description": "Cool to 46°C", + "exit_condition": "(and (< (get-sensor \"T_food\") 46.0)\n(> (get-sensor \"T_food\") 42.0))", + "on_load": "(begin (set-controller \"heater2\" \"T_food\") (set-target \"T_food\" 46.0) (set-controller \"freezer\" \"T_ext\") (set-target \"T_ext\" 46.0))", + "on_exit": "#t" }, - { - "name": "Inoculate (backslopping)", - "description": "Add 50ml Yogurt", - "exit_condition": "(manual-intervention \"Inocula 50g di yogurt\" '((\"Fatto\" #t)))", - "on_load": "(notify \"Inoculate 50g of yogurt NOW!\")", - "on_exit": "(notify (concat \"Inoculated at \" (now)))" + { + "name": "Inoculate (backslopping)", + "description": "Add 50ml Yogurt", + "exit_condition": "(manual-intervention \"Inocula 50g di yogurt\" '((\"Fatto\" #t)))", + "on_load": "(notify \"Inoculate 50g of yogurt NOW!\")", + "on_exit": "(notify (concat \"Inoculated at \" (now)))" }, - { - "name": "Hold", - "description": "Keep at 42°C for 4h", - "exit_condition": "(> (time-in-this-phase) (hours 4))", - "on_load": "(begin (set-target \"T_food\" 41.0) (set-target \"T_ext\" 41.0))", - "on_exit": "(notify \"The yougrt is ready\")" + { + "name": "Hold", + "description": "Keep at 42°C for 4h", + "exit_condition": "(> (time-in-this-phase) (hours 4))", + "on_load": "(begin (set-target \"T_food\" 41.0) (set-target \"T_ext\" 41.0))", + "on_exit": "(notify \"The yougrt is ready\")" }, - { - "name": "Refrigerate", - "description": "Lower temperature to 4gradi", - "exit_condition": "(manual-intervention \"Rimuovi lo yogurt\" '((\"Fatto\" #t)))", - "on_load": "(begin (set-target \"T_food\" 4.0) (set-target \"T_ext\" 4.0))", - "on_exit": "(notify \"You can remove the yogurt from the heater\")" + { + "name": "Refrigerate", + "description": "Lower temperature to 4gradi", + "exit_condition": "(manual-intervention \"Rimuovi lo yogurt\" '((\"Fatto\" #t)))", + "on_load": "(begin (set-target \"T_food\" 4.0) (set-target \"T_ext\" 4.0))", + "on_exit": "(notify \"You can remove the yogurt from the heater\")" } - ] + ] }, { "name": "Nattō",