74 orientation: 'vertical', |
74 orientation: 'vertical', |
75 labels: { position: 'near', interval: 10 }, |
75 labels: { position: 'near', interval: 10 }, |
76 ticksMinor: { size: '5%', interval: 2 }, |
76 ticksMinor: { size: '5%', interval: 2 }, |
77 ticksMajor: { size: '9%', interval: 10 }, |
77 ticksMajor: { size: '9%', interval: 10 }, |
78 ticksPosition: 'near', |
78 ticksPosition: 'near', |
79 min: 0990, max: 1120, width: 120, height: 375, |
79 min: 0990, max: 1150, width: 120, height: 375, |
80 value: 1000, |
80 value: 1000, |
81 pointer: { pointerType: 'arrow', size: '15%', visible: true, offset: 0 }, |
81 pointer: { pointerType: 'arrow', size: '15%', visible: true, offset: 0 }, |
82 colorScheme: 'scheme05', |
82 colorScheme: 'scheme05', |
83 showRanges: false |
83 showRanges: false |
84 }, |
84 }, |
137 $('#gaugeContainer_temperature').jqxGauge({ caption: { value: record.temperature.toFixed(3) + '°C' }}); |
137 $('#gaugeContainer_temperature').jqxGauge({ caption: { value: record.temperature.toFixed(3) + '°C' }}); |
138 $('#gaugeContainer_temperature').jqxGauge({ value: record.temperature }); |
138 $('#gaugeContainer_temperature').jqxGauge({ value: record.temperature }); |
139 |
139 |
140 $('#info_battery').val(record.battery); |
140 $('#info_battery').val(record.battery); |
141 $('#info_tilt').val(record.angle); |
141 $('#info_tilt').val(record.angle); |
142 |
142 $('#info_plato').val(record.gravity); |
143 gravity = plato_to_sg(record.gravity) * 1000; |
143 $('#info_sg').val(plato_to_sg(record.gravity)); |
|
144 |
|
145 var gravity = plato_to_sg(record.gravity) * 1000; |
144 $('#gaugeContainer_gravity').jqxLinearGauge({ value: gravity }); |
146 $('#gaugeContainer_gravity').jqxLinearGauge({ value: gravity }); |
145 } |
147 } |
146 }); |
148 }); |
147 |
149 |
148 $('#select_beer').jqxDropDownList({ |
150 $('#select_beer').jqxDropDownList({ |
159 return datarecord.code + ' - ' + datarecord.name; |
161 return datarecord.code + ' - ' + datarecord.name; |
160 } |
162 } |
161 }); |
163 }); |
162 |
164 |
163 $('#info_battery').jqxNumberInput(Show3dec); |
165 $('#info_battery').jqxNumberInput(Show3dec); |
164 $('#info_tilt').jqxNumberInput(Show3dec); |
166 $('#info_tilt').jqxNumberInput(Show4dec); |
|
167 $('#info_plato').jqxNumberInput(Show4dec); |
|
168 $('#info_sg').jqxNumberInput(Show4dec); |
165 |
169 |
166 $('#gaugeContainer_temperature').jqxGauge(gaugeoptionst); |
170 $('#gaugeContainer_temperature').jqxGauge(gaugeoptionst); |
167 $('#gaugeContainer_temperature').jqxGauge({ caption: { value: 'Temp: 00.000' }}); |
171 $('#gaugeContainer_temperature').jqxGauge({ caption: { value: 'Temp: 00.000' }}); |
168 $('#gaugeContainer_gravity').jqxLinearGauge(gaugeoptionsg); |
172 $('#gaugeContainer_gravity').jqxLinearGauge(gaugeoptionsg); |
169 |
173 |