MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-PC-Stats issue...

  • Module Developer

    Ok, I want to apologize up front because this is probably going to be a long post… 😒

    the module: MMM-PC-Stats has an issue with the sensors.

    My laptop is running Ubuntu and has a Dual-Core CPU.

    the following shows the terminal output of the sensors…

    jim@jim-Aspire-4520:~/MagicMirror$ sensors
    Adapter: PCI adapter
    Core0 Temp:   +69.0°C  
    Core0 Temp:   +67.0°C  
    Core1 Temp:   +69.0°C  
    Core1 Temp:   +68.0°C  
    Adapter: Virtual device
    temp1:        +71.0°C  (crit = +100.0°C)
    Adapter: PCI adapter
    GPU core:     +1.20 V  (min =  +1.00 V, max =  +1.20 V)
    temp1:        +64.0°C  (high = +95.0°C, hyst =  +3.0°C)
                           (crit = +105.0°C, hyst =  +2.0°C)
                           (emerg = +135.0°C, hyst =  +5.0°C)

    But, the module pulls the temp from the ‘Virtual Device’ showing only one temp for both cores:

    Yes, it does show the temps for 2 cores, but temp1 is pulled from the computer and is the same output for both cores…

    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";

    What we want to know is if anyone would know how to pull the temp values from the ‘PCI adapter’.

    This is the developer console:
    0_1540418431470_Screenshot from 2018-10-24 16-13-42.png

    As you can see, both the PCI adapter and the Virtual device are shown, but only the virtual device has a temp whereas the PCI adapter doesn’t show the Core Temps as seen in the terminal…

    Would anyone know how to pull the temps from the PCI adapter?

    On the same note…
    Would anyone know how to get the sensor info from a Windows OS?
    Or, at least how to find out the name and type of sensors being used?

  • Project Sponsor Module Developer

    I can confirm what Jim is saying, to this extent. The data differs from machine to machine. When I wrote this module I had no idea that this behavior was occurring but now that I’ve installed it on a laptop I see that the data delivered is not the same as on my dev machine. This breaks the code as well as the issue that Jim is talking about.

    Fixing this is beyond me so I humbly ask for assistance and thank anyone that lends a hand ahead of time.

    Here are two screenshots from my laptop. I’ll post the same from my dev machine so you can see the differences

    0_1540425038294_Screenshot from 2018-10-24 19-41-37.png 0_1540425050253_Screenshot from 2018-10-24 19-43-41.png

  • Project Sponsor Module Developer

    And now the same screenshots from my dev machine

    0_1540426823894_Screenshot from 2018-10-24 19-54-44.png 0_1540426830998_Screenshot from 2018-10-24 19-56-10.png

Log in to reply