Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michmich/mmm-systemtemperature
Display the temperature of your Raspberry Pi on your Magic Mirror.
https://github.com/michmich/mmm-systemtemperature
Last synced: 2 months ago
JSON representation
Display the temperature of your Raspberry Pi on your Magic Mirror.
- Host: GitHub
- URL: https://github.com/michmich/mmm-systemtemperature
- Owner: MichMich
- License: mit
- Created: 2016-04-12T09:33:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-31T08:04:55.000Z (about 1 year ago)
- Last Synced: 2024-10-14T10:21:55.326Z (3 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 39
- Watchers: 9
- Forks: 13
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Module: MMM-SystemTemperature
This MagicMirror modules allows you to show your processor temperature on you mirror.
It also allows to safely shutdown the Raspberry Pi using [MMM-Remote-Control](https://github.com/Jopyth/MMM-Remote-Control) if you configure it.## Installation
In your terminal, go to your MagicMirror's Module folder:
````
cd ~/MagicMirror/modules
````Clone this repository:
````
git clone https://github.com/MichMich/mmm-systemtemperature.git
````Install dependencies:
````
npm install
````Configure the module in your `config.js` file.
## Using the module
To use this module, add it to the modules array in the `config/config.js` file:
````javascript
modules: [
{
module: 'mmm-systemtemperature',
position: 'top_center', // This can be any of the regions.
classes: 'small dimmed', // Add your own styling. Optional.
config: {
// See 'Configuration options' for more information.
}
}
]
````## Configuration options
The following properties can be configured:
Option
Description
prependString
The text that will be shown before the temperature.
Default value:'System temperature: '
updateInterval
How often does the content needs to be fetched? (Milliseconds)
Possible values:1000
-86400000
Default value:5000
(5 seconds)
animationSpeed
Speed of the update animation. (Milliseconds)
Possible values:0
-5000
Default value:0
(animation off)
unit
Temperature unit of measurement
Possible values:c
(Celsius),f
(fahrenheit),k
(Kelvin)
Default value:c
(Celsius)
warning
Specific config forwarning
state
Possible values:{ temp: 0-999, color: '#HEX', command: Object }
Default value:{ temp: 60, color: 'orange', command: undefined }
critical
Specific config forcritical
state
Possible values:{ temp: 0-999, color: '#HEX', command: Object }
Default value:{ temp: 75, color: 'red', command: { notification: 'REMOTE_ACTION', payload: { action: 'SHUTDOWN' } } }
NOTE: TheREMOTE_ACTION
notification (SHUTDOWN
andMONITOROFF
) actions require the MMM-Remote-Control module to be installed.