Displays sensor temperature and humidity for multiple sensors. Uses http to collect sensor data from rest api.
This is a module for the MagicMirror².
Module takes sensor data via http from RuuvitagRestGateway
To use this module, add the following configuration block to the modules array in the config/config.js
file:
var config = {
modules: [
{
module: "MMM-SensorTemps",
position: "bottom_center",
config: {
ruuvitagRestGatewayAddr: "http://<ip>:<port>",
batteryVlow: 2500,
sensors: [
{
mac: "<mac address>",
name: "<sensor name>",
sendAsOutdoorNotification: false,
hideIfTempUnder: 50,
batteryVlow: 2200
},
]
}
}
]
}
Option | Description |
---|---|
ruuvitagRestGatewayAddr |
Required Full url pointing to sensor in rest api. Example http://<ip>:<port> |
sensors |
Required List of sensors. Mac address and name. |
sendAsOutdoorNotification |
Optional false is default. When set to true, sensors temperature and humidity will be sended via notification (CURRENT_WEATHER_OVERRIDE) to other modules, this overdrives current temperature and humidity in default weather module. |
hideIfTempUnder |
Optional -1000 is default. Treshold for showing/hiding sensor. Ex. for sauna, no need to show temperature if not hot. |
batteryVlow |
Optional 2500 is default. Shows low battery icon if Ruuvitags battery voltage drops below given mV value. Can be assigned globally under 'config' or per sensor under sensors'. Guideline for low battery treshold is found at the end of Ruuvitag battery change guide. |