MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-PC-Stats issue...

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • justjim1220J Offline
      justjim1220 Module Developer
      last edited by

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

      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
      k8temp-pci-00c3
      Adapter: PCI adapter
      Core0 Temp:   +69.0°C  
      Core0 Temp:   +67.0°C  
      Core1 Temp:   +69.0°C  
      Core1 Temp:   +68.0°C  
      
      acpitz-virtual-0
      Adapter: Virtual device
      temp1:        +71.0°C  (crit = +100.0°C)
      
      nouveau-pci-0090
      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:
      0_1540418049720_99251587-2b42-4aeb-b4ed-49e53f5b32b9-image.png

      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";
      			wrapper.appendChild(core0Temp);
      		}
      

      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?

      "Life's Too Short To Dance With Ugly People"
      Jim Hallock - 1995

      1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer
        last edited by

        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

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by

          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

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy