This module interacts with the MagicMirror to retrieve data from a BME280 sensor via the Smart"Gic Abstract RPi API.
Clone this repository into ~/MagicMirror/modules
(replace with your path) directory.
cd ~/MagicMirror/modules
git clone https://github.com/smartgic/MMM-IndoorTemperature.git
Then update the MagicMirror configuration file ~/MagicMirror/config/config.js
(replace with your path).
{
module: "MMM-IndoorTemperature",
position: "top_left",
header: "Indoor metrics",
config: {
abstractApiUrl: "https://192.168.1.66:8123",
humiditySymbol: "fa fa-tint",
temperatureSymbol: "fa fa-thermometer-half",
pressureSymbol: "far fa-arrow-alt-circle-up",
altitudeSymbol: "fas fa-water",
interval: 60000,
fadeSpeed: 4*1000,
sensor: "bme280",
}
}
Option | Default | Description |
---|---|---|
abstractApiUrl |
None |
URL to the Smart'Gic Abstract RPi API |
humiditySymbol |
fa fa-tint |
Humidity Font Awesome icon |
temperatureSymbol |
fa fa-thermometer-half |
Temperature Font Awesome icon |
pressureSymbol |
far fa-arrow-alt-circle-up |
Pressure Font Awesome icon |
altitudeSymbol |
fas fa-water |
Altitude Font Awesome icon |
interval |
60000 |
Interval between data collection from the API |
fadeSpeed |
4000 |
How quickly the values fade in and out |
sensor |
bme280 |
Sensor name (should be supported by the API) |
units |
config.units |
Gets initialized with the constructor. Possible values: metric , imperial |
This module has been developed by Smart"Gic.