From 7ede9a6d192d1d69a12ab45af42f24cd8730e9ca Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Sat, 30 Apr 2022 19:37:30 +0200 Subject: [PATCH] Reserved point for water --- html/calibration.htm | 8 +++++--- html/calibration.min.htm | 4 ++-- test/formula.json | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/html/calibration.htm b/html/calibration.htm index a82e3e9..1a37417 100644 --- a/html/calibration.htm +++ b/html/calibration.htm @@ -97,7 +97,7 @@
-
+
@@ -368,7 +368,8 @@ if(isPlato()) { $("#gravity-header").text("Gravity (Plato):"); - $("#g1").val( parseFloat(cfg["g1"]).toFixed(1) ); + //$("#g1").val( parseFloat(cfg["g1"]).toFixed(1) ); + $("#g1").val( "0.0" ); $("#g2").val( parseFloat(cfg["g2"]).toFixed(1) ); $("#g3").val( parseFloat(cfg["g3"]).toFixed(1) ); $("#g4").val( parseFloat(cfg["g4"]).toFixed(1) ); @@ -380,7 +381,8 @@ $("#g10").val( parseFloat(cfg["g10"]).toFixed(1) ); } else { $("#gravity-header").text("Gravity (SG):"); - $("#g1").val( parseFloat(cfg["g1"]).toFixed(4) ); + //$("#g1").val( parseFloat(cfg["g1"]).toFixed(4) ); + $("#g1").val( "1.0000" ); $("#g2").val( parseFloat(cfg["g2"]).toFixed(4) ); $("#g3").val( parseFloat(cfg["g3"]).toFixed(4) ); $("#g4").val( parseFloat(cfg["g4"]).toFixed(4) ); diff --git a/html/calibration.min.htm b/html/calibration.min.htm index 3e3454b..2a98956 100644 --- a/html/calibration.min.htm +++ b/html/calibration.min.htm @@ -1,4 +1,4 @@ -Beer Gravity Monitor

Here you can create your gravity formula by entering angles/tilt and the corresponding gravity. These values will be saved for future use. Angles with 0 (zero) will be skipped. The values below will be used to check the formula and if the deviation is more than 1.5SG / 0.38P on any of the provided points then the forumla will be rejected. On the bottom of the page you can see a graph over the entered values + values calcualated by the formula.

Here you can create your gravity formula by entering angles/tilt and the corresponding gravity. These values will be saved for future use. Angles with 0 (zero) will be skipped. The values below will be used to check the formula and if the deviation is more than 1.5SG / 0.38P on any of the provided points then the forumla will be rejected. On the bottom of the page you can see a graph over the entered values + values calcualated by the formula.

(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file + var myChart = 0;
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file diff --git a/test/formula.json b/test/formula.json index 5bceaf1..d0fb105 100644 --- a/test/formula.json +++ b/test/formula.json @@ -21,5 +21,6 @@ "g8": 1.005, "g9": 1.005, "g10": 1.005, - "error": "" + "error": "", + "gravity-format": "P" } \ No newline at end of file