fix invalid json, pretty print it

master
Nicolò Balzarotti 2023-02-25 11:10:10 +01:00
parent 136b67cbf4
commit b65af6c02b
1 changed files with 41 additions and 41 deletions

View File

@ -44,9 +44,9 @@
}, },
{ {
"name": "Hold", "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))", "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!\")" "on_exit": "(notify \"Rimischia il koji!\")"
}, },
{ {
@ -90,50 +90,50 @@
} }
] ]
}, },
{ {
"name": "Yogurt", "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.", "description": "Lascia raffreddare lo yogurt per fare l'inoculo, mantiene a 42 gradi fino a che è pronto, e poi porta a 4 gradi.",
"controllers": [ "controllers": [
"(make-duty-controller \"heater2\" 0.10 120 '<)" "(make-duty-controller \"heater2\" 0.10 120 '<)",
"(make-duty-controller \"freezer\" 0.20 120 '>)" "(make-duty-controller \"freezer\" 0.20 120 '>)"
], ],
"phases": [ "phases": [
{ {
"name": "Prepare", "name": "Prepare",
"description": "Turn Fan On", "description": "Turn Fan On",
"exit_condition": "#t", "exit_condition": "#t",
"on_load": "(set-actuator \"fan\" #t)", "on_load": "(set-actuator \"fan\" #t)",
"on_exit": "#t" "on_exit": "#t"
}, },
{ {
"name": "Cool", "name": "Cool",
"description": "Cool to 46°C", "description": "Cool to 46°C",
"exit_condition": "(and (< (get-sensor \"T_food\") 46.0)\n(> (get-sensor \"T_food\") 42.0))", "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_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" "on_exit": "#t"
}, },
{ {
"name": "Inoculate (backslopping)", "name": "Inoculate (backslopping)",
"description": "Add 50ml Yogurt", "description": "Add 50ml Yogurt",
"exit_condition": "(manual-intervention \"Inocula 50g di yogurt\" '((\"Fatto\" #t)))", "exit_condition": "(manual-intervention \"Inocula 50g di yogurt\" '((\"Fatto\" #t)))",
"on_load": "(notify \"Inoculate 50g of yogurt NOW!\")", "on_load": "(notify \"Inoculate 50g of yogurt NOW!\")",
"on_exit": "(notify (concat \"Inoculated at \" (now)))" "on_exit": "(notify (concat \"Inoculated at \" (now)))"
}, },
{ {
"name": "Hold", "name": "Hold",
"description": "Keep at 42°C for 4h", "description": "Keep at 42°C for 4h",
"exit_condition": "(> (time-in-this-phase) (hours 4))", "exit_condition": "(> (time-in-this-phase) (hours 4))",
"on_load": "(begin (set-target \"T_food\" 41.0) (set-target \"T_ext\" 41.0))", "on_load": "(begin (set-target \"T_food\" 41.0) (set-target \"T_ext\" 41.0))",
"on_exit": "(notify \"The yougrt is ready\")" "on_exit": "(notify \"The yougrt is ready\")"
}, },
{ {
"name": "Refrigerate", "name": "Refrigerate",
"description": "Lower temperature to 4gradi", "description": "Lower temperature to 4gradi",
"exit_condition": "(manual-intervention \"Rimuovi lo yogurt\" '((\"Fatto\" #t)))", "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_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\")" "on_exit": "(notify \"You can remove the yogurt from the heater\")"
} }
] ]
}, },
{ {
"name": "Nattō", "name": "Nattō",