156 var gravity = sg * 1000; |
156 var gravity = sg * 1000; |
157 |
157 |
158 console.log ('set max ' + max); |
158 console.log ('set max ' + max); |
159 $('#gaugeContainer_gravity').jqxLinearGauge({ max: max }); |
159 $('#gaugeContainer_gravity').jqxLinearGauge({ max: max }); |
160 $('#vg_og1').html(og.toFixed(4)); |
160 $('#vg_og1').html(og.toFixed(4)); |
161 $('#vg_og2').html(record.og_gravity.toFixed(1) + '°P'); |
161 $('#vg_og2').html(record.og_gravity.toFixed(3) + '°P'); |
162 $('#vg_sg1').html(sg.toFixed(4)); |
162 $('#vg_sg1').html(sg.toFixed(4)); |
163 $('#vg_sg2').html(record.gravity.toFixed(1) + '°P'); |
163 $('#vg_sg2').html(record.gravity.toFixed(3) + '°P'); |
164 $('#vg_svg').html(svg.toFixed(1) + '%'); |
164 $('#vg_svg').html(svg.toFixed(1) + '%'); |
165 $('#vg_abv').html(abvol(og, sg).toFixed(2) + '%'); |
165 $('#vg_abv').html(abvol(og, sg).toFixed(2) + '%'); |
166 } else { |
166 } else { |
167 $('#gaugeContainer_gravity').jqxLinearGauge({ max: 1150 }); |
167 $('#gaugeContainer_gravity').jqxLinearGauge({ max: 1150 }); |
168 $('#vg_og1').html(''); |
168 $('#vg_og1').html(''); |
209 } |
209 } |
210 }); |
210 }); |
211 |
211 |
212 $('#info_battery').jqxNumberInput(Show3dec); |
212 $('#info_battery').jqxNumberInput(Show3dec); |
213 $('#info_tilt').jqxNumberInput(Show5dec); |
213 $('#info_tilt').jqxNumberInput(Show5dec); |
214 $('#info_plato').jqxNumberInput(Show2dec); |
214 $('#info_plato').jqxNumberInput(Show3dec); |
215 $('#info_sg').jqxNumberInput(Show4dec); |
215 $('#info_sg').jqxNumberInput(Show4dec); |
216 |
216 |
217 $('#gaugeContainer_temperature').jqxGauge(gaugeoptionst); |
217 $('#gaugeContainer_temperature').jqxGauge(gaugeoptionst); |
218 $('#gaugeContainer_temperature').jqxGauge({ caption: { value: '0.000°C' }}); |
218 $('#gaugeContainer_temperature').jqxGauge({ caption: { value: '0.000°C' }}); |
219 $('#gaugeContainer_gravity').jqxLinearGauge(gaugeoptionsg); |
219 $('#gaugeContainer_gravity').jqxLinearGauge(gaugeoptionsg); |