Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 2.12 KB

File metadata and controls

72 lines (47 loc) · 2.12 KB

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