add hover title to temps and more sensors (#5434)

* add hover title to temperatures

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* fix temp trim

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* add extra linux sensors

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* add padding for temps on multi lines

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

---------

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith
2023-10-21 01:30:39 +01:00
committed by GitHub
parent 47767e86a1
commit 58580beb96
3 changed files with 38 additions and 10 deletions

View File

@@ -11518,7 +11518,7 @@
if (message != null) {
if (Array.isArray(message.thermals) && (message.thermals.length > 0)) {
var x = '&nbsp;';
for (var i in message.thermals) { x += '<div class=thermalSensor>' + parseFloat(message.thermals[i]).toFixed(2) + '&deg;C / ' + parseFloat((message.thermals[i] * 1.8) + 32).toFixed(2) + '&deg;F' + '</div>'; }
for (var i in message.thermals) { x += '<div class=thermalSensor title="'+message.thermals[i].InstanceName+'">' + parseFloat(message.thermals[i].CurrentTemperature).toFixed(2) + '&deg;C / ' + parseFloat((message.thermals[i].CurrentTemperature * 1.8) + 32).toFixed(2) + '&deg;F' + '</div>'; }
QV('extraGraphValues', true);
QH('extraGraphValues', x);
}