We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b44c4 commit 646ad40Copy full SHA for 646ad40
index.html.gz
12 Bytes
www/js/temperatures.js
@@ -130,10 +130,10 @@ function process_Temperatures(response){
130
var timedata = new Date().getTime();
131
while ((result = regex_temp.exec(response)) !== null) {
132
var tool = result[1];
133
- var value = result[3] + "°C";
+ var value = parseFloat(result[3]).toFixed(2).toString()+ "°C";
134
var value2;
135
- if (isNaN(parseFloat(result[5]))) value2 = "0.0";
136
- else value2 = result[5];
+ if (isNaN(parseFloat(result[5]))) value2 = "0.00";
+ else value2 = parseFloat(result[5]).toFixed(2).toString();
137
value += " | " + value2 + "°C";
138
if (tool == "T") {
139
//to push to graph
0 commit comments