Uses the affluences API to show the occupancy rate of a place
In your terminal, go to your MagicMirror² Module folder and clone MMM-affluences:
cd ~/MagicMirror/modules
git clone https://github.com/kahllenny/MMM-affluences
cd ~/MagicMirror/modules/MMM-affluences
git pull
To use this module, add it to the modules array in the config/config.js
file:
{
module: "MMM-affluences",
position: "top_left",
config: {
token: "" //insert your token here
}
},
To find your token, inspect the webpage where an Affluences integration is hosted and look for the data-token
attribute
A full config looks like this
{
module: "MMM-affluences",
position: "top_left",
config: {
token: "ipPTbBm3K8JGTx",
forecastCount: 3,
grayscale: false,
lang: "de",
dataTitleOverride: true,
dataTitleOverrideString: "SLUB"
}
},
Option | Possible values | Default | Description |
---|---|---|---|
token |
string |
Identifier of the affluences location | |
forecastCount |
number |
0 | Shows the forecasts of the next time slots (only up to 5 possible) |
grayscale |
boolean |
false | Enables grayscale |
lang |
string |
en | Changes the language to de, en, es, fr, it |
dataTitleOverride |
boolean |
false | Enables title override |
dataTitleOverrideString |
string |
Changes the title |