A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-PC-Stats
-
It looks like this is the line it is having a problem with…
var core0TempCheck = Sensors["coretemp-isa-0000"]['ISA adapter']['Core 0'];
particularly with: [‘ISA adapter’]
-
I know the line that is the problem. Listen, I’m tired. If you’ll let me TeamViewer into your machine tomorrow I’ll fix it. Doing it this way is very tedious
-
Absolutely.
No Problem.
Just let me know when. -
is there something I need to set up on this end for TeamViewer?
-
And, your gonna have to let me know how to do a screen shot of just a certain part of the screen, or how to crop the image. A lot different than Windows.
-
This is what you need to change in the main js
// Check if core0 has temp sensor var core0TempCheck = Sensors["acpitz-virtual-0"]; // ['ISA adapter']['Core 0']; if (typeof core0TempCheck !== 'undefined'){ var core0Temp = document.createElement("div"); core0Temp.classList.add("small", "bright", "core0Temp"); core0Temp.innerHTML = Sensors["acpitz-virtual-0"]["Virtual device"].temp1.value + "   @   " + Sensors["acpitz-virtual-0"]["Virtual device"].temp1.value + "°C"; wrapper.appendChild(core0Temp); } // ["acpitz-virtual-0"]["Virtual device"].temp1.value // Check if core1 has temp sensor var core1TempCheck = Sensors["acpitz-virtual-0"]; // ['ISA adapter']['Core 1']; if (typeof core1TempCheck !== 'undefined'){ var core1Temp = document.createElement("div"); core1Temp.classList.add("small", "bright", "core1Temp"); core1Temp.innerHTML = Sensors["acpitz-virtual-0"]["Virtual device"].temp2.value + "   @   " + Sensors["acpitz-virtual-0"]["Virtual device"].temp2.value + "°C"; wrapper.appendChild(core1Temp); }
-
Now leave me alone. I’m going to bed. :-)
-
@mykle1 ok
-
@mykle1 YES SIR!!!
-
This is what I ended up with:
for (var i = 0, len = Stats.cpu.threads.length; i < len; i++) { var Element = document.createElement("div"); Element.classList.add("large", "bright", "usage"); Element.innerHTML = Stats.cpu.threads[i].name + "   @   " + Number(Math.round(Stats.cpu.threads[i].usage+"e2")+"e-2") + "%"; wrapper.appendChild(Element); // ["acpitz-virtual-0"]["Virtual device"].temp1.value // Check if core0 has temp sensor var core0TempCheck = Sensors["acpitz-virtual-0"]["Virtual device"]; if (typeof core0TempCheck !== 'undefined'){ // core0Temp var core0Temp = document.createElement("div"); core0Temp.classList.add("large", "bright", "core0Temp"); core0Temp.innerHTML = Stats.cpu.threads[i].name + "   @   " + Sensors["acpitz-virtual-0"]["Virtual device"].temp1.value + "°C"; wrapper.appendChild(core0Temp); } }
this is the output: