# HG changeset patch # User Michiel Broek # Date 1591268890 -7200 # Node ID 4d5f3e9f77449e0709e02a1d76dfc4b5147f8b50 # Parent c7b4cb53b37cd08765cdedb0d22b372c0c2d397f More decimals for Plato diff -r c7b4cb53b37c -r 4d5f3e9f7744 www/js/mon_ispindel.js --- a/www/js/mon_ispindel.js Wed Jun 03 21:02:57 2020 +0200 +++ b/www/js/mon_ispindel.js Thu Jun 04 13:08:10 2020 +0200 @@ -158,9 +158,9 @@ console.log ('set max ' + max); $('#gaugeContainer_gravity').jqxLinearGauge({ max: max }); $('#vg_og1').html(og.toFixed(4)); - $('#vg_og2').html(record.og_gravity.toFixed(1) + '°P'); + $('#vg_og2').html(record.og_gravity.toFixed(3) + '°P'); $('#vg_sg1').html(sg.toFixed(4)); - $('#vg_sg2').html(record.gravity.toFixed(1) + '°P'); + $('#vg_sg2').html(record.gravity.toFixed(3) + '°P'); $('#vg_svg').html(svg.toFixed(1) + '%'); $('#vg_abv').html(abvol(og, sg).toFixed(2) + '%'); } else { @@ -211,7 +211,7 @@ $('#info_battery').jqxNumberInput(Show3dec); $('#info_tilt').jqxNumberInput(Show5dec); - $('#info_plato').jqxNumberInput(Show2dec); + $('#info_plato').jqxNumberInput(Show3dec); $('#info_sg').jqxNumberInput(Show4dec); $('#gaugeContainer_temperature').jqxGauge(gaugeoptionst);