www/js/mon_ispindel.js

changeset 579
1253a237b620
parent 578
e75ce5bbda73
child 580
9cd6873bda75
--- a/www/js/mon_ispindel.js	Sun Jan 05 11:42:02 2020 +0100
+++ b/www/js/mon_ispindel.js	Sun Jan 05 17:04:56 2020 +0100
@@ -76,7 +76,7 @@
   ticksMinor: { size: '5%', interval: 2 },
   ticksMajor: { size: '9%', interval: 10 },
   ticksPosition: 'near',
-  min: 0990, max: 1120, width: 120, height: 375,
+  min: 0990, max: 1150, width: 120, height: 375,
   value: 1000,
   pointer: { pointerType: 'arrow', size: '15%', visible: true, offset: 0 },
   colorScheme: 'scheme05',
@@ -139,8 +139,10 @@
 
    $('#info_battery').val(record.battery);
    $('#info_tilt').val(record.angle);
+   $('#info_plato').val(record.gravity);
+   $('#info_sg').val(plato_to_sg(record.gravity));
 
-   gravity = plato_to_sg(record.gravity) * 1000;
+   var gravity = plato_to_sg(record.gravity) * 1000;
    $('#gaugeContainer_gravity').jqxLinearGauge({ value: gravity });
   }
  });
@@ -161,7 +163,9 @@
  });
 
  $('#info_battery').jqxNumberInput(Show3dec);
- $('#info_tilt').jqxNumberInput(Show3dec);
+ $('#info_tilt').jqxNumberInput(Show4dec);
+ $('#info_plato').jqxNumberInput(Show4dec);
+ $('#info_sg').jqxNumberInput(Show4dec);
 
  $('#gaugeContainer_temperature').jqxGauge(gaugeoptionst);
  $('#gaugeContainer_temperature').jqxGauge({ caption: { value: 'Temp: 00.000' }});

mercurial