www/js/set_simulators.js

changeset 719
a9c278202b59
parent 716
5c30c8ef83a8
--- a/www/js/set_simulators.js	Fri May 03 15:12:25 2024 +0200
+++ b/www/js/set_simulators.js	Fri May 03 16:53:00 2024 +0200
@@ -150,8 +150,8 @@
  $('#cooler_temp,#heater_temp').jqxNumberInput(Spin1dec);
  $('#cooler_time,#heater_time').jqxNumberInput(PosInt);
  $('#cooler_size,#heater_size').jqxNumberInput(Spin4dec);
- $('#door_value').jqxSwitchButton({ height: 23, width: 100, theme: theme });
- $('#psu_value').jqxSwitchButton({ height: 23, width: 100, theme: theme });
+ $('#door_value').jqxSwitchButton({ height: 23, width: 120, theme: theme, onLabel:'Closed', offLabel: 'Open' });
+ $('#psu_value').jqxSwitchButton({ height: 23, width: 120, theme: theme });
 
  // initialize jqxGrid
  $('#jqxgrid').jqxGrid({
@@ -200,12 +200,16 @@
   },
   columns: [
    { text: 'Name', datafield: 'name' },
-   { text: 'No.', datafield: 'simno', width: 80 },
-   { text: 'Air temp', datafield: 'air_temperature', width: 100 },
-   { text: 'Beer temp', datafield: 'beer_temperature', width: 100 },
+   { text: 'No.', datafield: 'simno', width: 60 },
+   { text: 'Air temp', datafield: 'air_temperature', width: 100, cellsformat: 'f3' },
+   { text: 'Beer temp', datafield: 'beer_temperature', width: 100, cellsformat: 'f3' },
+   { text: 'Chiller', datafield: 'chiller_temperature', width: 100, cellsformat: 'f3' },
    { text: 'Heater', datafield: 'heater_power', width: 80 },
    { text: 'Cooler', datafield: 'cooler_power', width: 80 },
    { text: 'Fan', datafield: 'fan_power', width: 80 },
+   { text: 'Light', datafield: 'light_power', width: 80 },
+   { text: 'Door', datafield: 'door_value', width: 60 },
+   { text: 'PSU', datafield: 'psu_value', width: 60 },
    { text: 'Last change', datafield: 'timestamp', width: 190,
      cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
       var date = new Date((value * 1000) - tzoffset).toISOString().slice(0, 19).replace("T", " ");

mercurial