This is a module for the MagicMirror².
This module will display your current system stats.
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/btastic/MMM-SystemMonitor
To use this module, add the following configuration block to the modules array in the config/config.js
file:
var config = {
modules: [
{
module: 'MMM-SystemMonitor',
position: 'top_left',
config: {
updateInterval: 60000,
cpuThermalZone: 0,
units: config.units,
}
}
]
}
- Raspberry Pi 3 (tested)
- Probably works on other Raspberry Pi's
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.
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 |
- English (en)
- German (de)