Skip to content

Commit

Permalink
update HTML/JS sources
Browse files Browse the repository at this point in the history
  • Loading branch information
vitotai committed Apr 18, 2024
1 parent 922d921 commit a37150f
Show file tree
Hide file tree
Showing 66 changed files with 74 additions and 58 deletions.
2 changes: 1 addition & 1 deletion htmljs/dist/chinese/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/chinese/BPLLogViewer.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/chinese/config.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/chinese/config.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/chinese/control.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/chinese/control.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/chinese/index.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/chinese/index.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/english/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/english/BPLLogViewer.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/english/config.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/english/config.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/english/control.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/english/control.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/english/index.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/english/index.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/italian/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/italian/BPLLogViewer.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/italian/config.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/italian/config.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/italian/control.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/italian/control.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/italian/index.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/italian/index.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/norwegian/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/norwegian/BPLLogViewer.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/norwegian/config.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/norwegian/config.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/norwegian/control.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/norwegian/control.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/norwegian/control_s.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/norwegian/control_s.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/norwegian/index.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/norwegian/index.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/portuguese-br/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/portuguese-br/BPLLogViewer.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/portuguese-br/config.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/portuguese-br/config.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/portuguese-br/control.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/portuguese-br/control.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/portuguese-br/control_s.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/portuguese-br/control_s.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/portuguese-br/index.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/portuguese-br/index.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/slovak/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/slovak/BPLLogViewer.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/slovak/config.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/slovak/config.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/slovak/control.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/slovak/control.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/slovak/control_s.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/slovak/control_s.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/slovak/index.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/slovak/index.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/spanish/BPLLogViewer.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/spanish/BPLLogViewer.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/spanish/config.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/spanish/config.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/spanish/control.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/spanish/control.htm.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion htmljs/dist/spanish/index.htm

Large diffs are not rendered by default.

Binary file modified htmljs/dist/spanish/index.htm.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions htmljs/src/js/chart-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BrewChart.prototype.calInfo=function(){
cdata[idx++]=0xF3;
cdata[idx++]=points.length;
for(var i=0;i<points.length;i++){
var raw =Math.round((t.devType == 2)? points[i][0]*10000:points[i][0]*100);
var raw =Math.round((t.devType == 2)? points[i][0]*1000:points[i][0]*10);
var gravity =Math.round(t.plato? points[i][1]*100:points[i][1]*10000);
cdata[idx++]= (raw >> 8) & 0xFF;
cdata[idx++]= raw & 0xFF;
Expand Down Expand Up @@ -245,4 +245,4 @@ BrewChart.prototype.addCalibration=function(time,sg){
}
}
}
};
};
38 changes: 37 additions & 1 deletion htmljs/src/lcd.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,42 @@
}
</style>
<script>

var StateText = [
"Idling for ",
"Temp. control OFF",
"Door open",
"Heating for ",
"Cooling for ",
"Wait to Cool ",
"Wait to Heat ",
"Waiting for peak",
"Cool time left ",
"Heat time left ",
"Unknown status!"
];

function genStateText(state, duration) {
if (state == 1 || state == 2 || state == 10 || state == 7) return StateText[state];

var timestr = "";
var mm = Math.floor(duration / 60);
var hh = Math.floor(mm / 60);
var ss = duration % 60;
mm = mm - hh * 60;

function zeropad(n){
return n>9? ""+n:"0"+n;
}

if (hh > 0) {
timestr = "{HH}h{MM}m{SS}".replace("{SS}", zeropad(ss)).replace("{MM}", zeropad(mm)).replace("{HH}", zeropad(hh));
} else{
// short
timestr = "{MM}m{SS}".replace("{SS}", zeropad(ss)).replace("{MM}", zeropad(mm));
}
return StateText[state].replace("{time}", timestr);
}
var roomOfridge = false;

function simLcd(info) {
Expand Down Expand Up @@ -216,4 +252,4 @@
</div>
</body>

</html>
</html>
24 changes: 2 additions & 22 deletions htmljs/src/logging.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,13 @@ <h6 class="inline-header">
</div>
<div layout horizontal cross-center>
<h6 class="inline-header">
<%= log_calibrate_ispindel %>
<%= log_record_raw %>
</h6>
<div>
<input type="checkbox" id="calispindel" name="cbpl" class="switch-input" checked="checked">
<label for="calispindel" class="switch-label" style="min-width: 0;"></label>
</div>
</div>
<div layout horizontal cross-center>
<h6 class="inline-header">
<%= log_tilt_in_water %>
</h6>
<input type=text id=tiltinw size=6>
</div>
<div layout horizontal cross-center class=tiltwatercorrect>
<h6 class="inline-header">
<%= log_hydrometer_reading %>
</h6>
<input type=text id=hydrometer size=6 value="1.0">
</div>
<div layout horizontal cross-center class=tiltwatercorrect>
<h6 class="inline-header">
<%= log_or_water_at %>
</h6><input type=text id=watertemp size=4>&deg;
<%= log_calibrated %> <input type=text id=caltemp size=4>&deg;
<select id=tempunit><option value=C>C</option><option value=F>F</option></select>

</div>
</div>

<div id=logstopinput style="display:none">
Expand Down Expand Up @@ -716,4 +696,4 @@ <h6 class="inline-header">

</body>

</html>
</html>
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

[platformio]
#sonoff OTA no longer supported, classic interface no longer supported
#default_envs = esp32, esp32-oled, esp8266, esp8266-oled, esp8266-tw, esp8266-spanish, esp8266-portuguese-br, esp8266-slovak, esp8266-ispindel, esp8266-it, esp8266-norwegian, thorrax, sonoff, sonoff-esp8285, d1pro, sonoff-am2301
default_envs = esp32-dev
default_envs = esp32, esp32-oled, esp8266, esp8266-oled, esp8266-tw, esp8266-spanish, esp8266-portuguese-br, esp8266-slovak, esp8266-ispindel, esp8266-it, esp8266-norwegian, thorrax, sonoff, sonoff-esp8285, d1pro, sonoff-am2301
#default_envs = esp32-dev
#default_envs = esp32
#default_envs = esp8266-dev

Expand Down

0 comments on commit a37150f

Please sign in to comment.