Skip to content

modo-github/MMM-SystemMonitor

 
 

Repository files navigation

MMM-SystemMonitor

This is a module for the MagicMirror².

Forked from the original

Changes

Free RAM is now avabile not double counting cache twice.

Uptime method improved

screenshot

This module will display your current system stats.

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/modo-github/MMM-SystemMonitor

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

        {
            module: 'MMM-SystemMonitor',
            position: 'top_left',
            config: {
                updateInterval: 60000,
                cpuThermalZone: 0,
                units: config.units,
            }
        },

Supported hardware

  • Raspberry Pi cm5 (tested)
  • Probably works on other Raspberry Pi's

CPU Thermal Zone

To determine which thermal zone to use, you can check out the following command and their results:

cat /sys/class/thermal/thermal_zone*/type

This will output the different thermal zone your hardware has. On my raspberry pi, it will output

cpu-thermal

This means that index 0 is the correct thermal zone. If you have more than one result, you have to take the 0-based index accordingly.

cat /sys/class/thermal/thermal_zone0/temp

will output the current temperature. This is what this module will use to display the temperature.

Configuration options

Option Description
updateInterval Optional
The time interval between UI updates.

Type: int(milliseconds)
Default: 60000 milliseconds (60 seconds)
cpuThermalZone Optional
Use the cpu thermal zone index.

Type: int
Default: 0
units Optional
Use either 'metric' or 'imperial' to display the temperature.

Type: string (metric|imperial)
Default: Inherit from config.js

About

A system monitor for your MagicMirror²

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 76.6%
  • Nunjucks 17.3%
  • CSS 6.1%