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

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    41 Posts 3 Posters 21.3k Views 3 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @justjim1220
      last edited by

      @justjim1220

      Did you uncomment the console.log in the process data function

      Create a working config
      How to add modules

      justjim1220J Mykle1M 2 Replies Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @Mykle1
        last edited by

        @mykle1

        Yeppers!

        "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 @Mykle1
          last edited by

          @mykle1

          I don’t need the error message

          Create a working config
          How to add modules

          Mykle1M justjim1220J 2 Replies Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @Mykle1
            last edited by

            @mykle1

            Then there should be an output

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @Mykle1
              last edited by

              @mykle1

              processStats: function(data) {
                      this.Stats = data;
                      this.loaded = true;
              		console.log(this.Stats); // for checking in dev console
                  },
              	
              	processSensors: function(data) {
                      this.Sensors = data; 
              		console.log(this.Sensors); // for checking in dev console
                  },
              

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

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

                @justjim1220

                I can’t read your picture so I can’t see what’s there. AN object maybe?

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • justjim1220J Offline
                  justjim1220 Module Developer
                  last edited by

                  strange thing is that if I use your original one it shows some info, just not temps…

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

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

                    @justjim1220

                    Well maybe your board doesn’t have temp sensors. Try this: Type sensor in a terminal window

                    Create a working config
                    How to add modules

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

                      @mykle1

                      sensors

                      Create a working config
                      How to add modules

                      justjim1220J 2 Replies Last reply Reply Quote 0
                      • justjim1220J Offline
                        justjim1220 Module Developer @Mykle1
                        last edited by

                        @mykle1

                        {cpu: {…}, ram: {…}}cpu: {name: "AMD Turion(tm) 64 X2 Mobile Technology TL-58", threads: Array(2)}ram: {free: "1.27", total: "3.87", unit: "GB"}__proto__: Object
                        MMM-PC-Stats.js:126 Uncaught (in promise) TypeError: Cannot read property 'ISA adapter' of undefined
                            at Class.getDom (MMM-PC-Stats.js:126)
                            at main.js:110
                            at new Promise (<anonymous>)
                            at updateDom (main.js:109)
                            at Object.updateDom (main.js:514)
                            at Class.updateDom (module.js:358)
                            at Class.socketNotificationReceived (MMM-PC-Stats.js:262)
                            at module.js:246
                            at r.<anonymous> (socketclient.js:25)
                            at r.emit (index.js:83)
                        getDom @ MMM-PC-Stats.js:126
                        (anonymous) @ main.js:110
                        updateDom @ main.js:109
                        updateDom @ main.js:514
                        updateDom @ module.js:358
                        socketNotificationReceived @ MMM-PC-Stats.js:262
                        (anonymous) @ module.js:246
                        (anonymous) @ socketclient.js:25
                        r.emit @ index.js:83
                        r.onevent @ index.js:83
                        MMSocket.self.socket.onevent @ socketclient.js:19
                        r.onpacket @ index.js:83
                        (anonymous) @ index.js:83
                        r.emit @ index.js:83
                        r.ondecoded @ index.js:83
                        (anonymous) @ index.js:83
                        r.emit @ index.js:83
                        a.add @ index.js:83
                        r.ondata @ index.js:83
                        (anonymous) @ index.js:83
                        r.emit @ index.js:83
                        r.onPacket @ index.js:83
                        (anonymous) @ index.js:83
                        r.emit @ index.js:83
                        r.onPacket @ index.js:83
                        r.onData @ index.js:83
                        ws.onmessage @ index.js:83
                        
                        

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

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

                          @justjim1220

                          Can you open the threads array?

                          Create a working config
                          How to add modules

                          1 Reply Last reply Reply Quote 0
                          • justjim1220J Offline
                            justjim1220 Module Developer @Mykle1
                            last edited by

                            @mykle1

                            jim@jim-Aspire-4520:~$ sensors
                            
                            Command 'sensors' not found, but can be installed with:
                            
                            sudo apt install lm-sensors
                            
                            

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

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

                              @justjim1220

                              YOu installed the dependencie?

                              Create a working config
                              How to add modules

                              justjim1220J Mykle1M 2 Replies Last reply Reply Quote 0
                              • justjim1220J Offline
                                justjim1220 Module Developer @Mykle1
                                last edited by

                                @mykle1

                                Yeppers.

                                How do I open the threads array?

                                I can reinstall the dependencies if you want me to

                                "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 @Mykle1
                                  last edited by

                                  @mykle1

                                  Comment out console.log(this.Stats) so you only get the sensors output

                                  Create a working config
                                  How to add modules

                                  justjim1220J 1 Reply Last reply Reply Quote 0
                                  • justjim1220J Offline
                                    justjim1220 Module Developer @Mykle1
                                    last edited by

                                    @mykle1 ok

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

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

                                      @justjim1220

                                      Take a screenshot of just the output, not the whole screen. I might be able to see it then

                                      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

                                        pop@HPEu:~/MagicMirror$ sensors
                                        nouveau-pci-0100
                                        Adapter: PCI adapter
                                        fan1:        1110 RPM
                                        temp1:        +39.0°C  (high = +95.0°C, hyst =  +3.0°C)
                                                               (crit = +105.0°C, hyst =  +5.0°C)
                                                               (emerg = +135.0°C, hyst =  +5.0°C)
                                        
                                        coretemp-isa-0000
                                        Adapter: ISA adapter
                                        Core 0:       +29.0°C  (high = +83.0°C, crit = +99.0°C)
                                        Core 1:       +30.0°C  (high = +83.0°C, crit = +99.0°C)
                                        Core 2:       +29.0°C  (high = +83.0°C, crit = +99.0°C)
                                        Core 3:       +28.0°C  (high = +83.0°C, crit = +99.0°C)
                                        
                                        f71858fg-isa-0a00
                                        Adapter: ISA adapter
                                        +3.3V:        +3.31 V  
                                        3VSB:         +3.31 V  
                                        Vbat:         +3.20 V  
                                        fan1:        1910 RPM
                                        fan2:         998 RPM
                                        fan3:           0 RPM  ALARM
                                        temp1:        +29.2°C  (high = +70.0°C, hyst = +60.0°C)
                                        temp2:        +15.4°C  (high = +100.0°C, hyst = +85.0°C)
                                        temp3:        +32.5°C  (high = +100.0°C, hyst = +85.0°C)
                                        
                                        pop@HPEu:~/MagicMirror$ ^C
                                        pop@HPEu:~/MagicMirror$ 
                                        

                                        Create a working config
                                        How to add modules

                                        justjim1220J 2 Replies Last reply Reply Quote 0
                                        • justjim1220J Offline
                                          justjim1220 Module Developer @Mykle1
                                          last edited by

                                          @mykle1

                                          Objectacpitz-virtual-0: {Virtual device: {…}}k8temp-pci-00c3: {PCI adapter: {…}}nouveau-pci-0090: {PCI adapter: {…}}__proto__: Object
                                          moment-timezone-with-data.js:481 Moment Timezone has no data for American/Chicago. See http://momentjs.com/timezone/docs/#/data-loading/.
                                          logError @ moment-timezone-with-data.js:481
                                          MMM-PC-Stats.js:126 Uncaught (in promise) TypeError: Cannot read property 'ISA adapter' of undefined
                                              at Class.getDom (MMM-PC-Stats.js:126)
                                              at main.js:110
                                              at new Promise (<anonymous>)
                                              at updateDom (main.js:109)
                                              at Object.updateDom (main.js:514)
                                              at Class.updateDom (module.js:358)
                                              at Class.socketNotificationReceived (MMM-PC-Stats.js:262)
                                              at module.js:246
                                              at r.<anonymous> (socketclient.js:25)
                                              at r.emit (index.js:83)
                                          MMM-PC-Stats.js:126 Uncaught (in promise) TypeError: Cannot read property 'ISA adapter' of undefined
                                              at Class.getDom (MMM-PC-Stats.js:126)
                                              at main.js:110
                                              at new Promise (<anonymous>)
                                              at updateDom (main.js:109)
                                              at Object.updateDom (main.js:514)
                                              at Class.updateDom (module.js:358)
                                              at Class.socketNotificationReceived (MMM-PC-Stats.js:268)
                                              at module.js:246
                                              at r.<anonymous> (socketclient.js:25)
                                              at r.emit (index.js:83)
                                          

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

                                          Mykle1M 1 Reply Last reply Reply Quote 0
                                          • justjim1220J Offline
                                            justjim1220 Module Developer @Mykle1
                                            last edited by

                                            @mykle1

                                            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)
                                            
                                            

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

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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