Skip to content

Uses the affluences API to show the occupancy rate of a place

License

Notifications You must be signed in to change notification settings

kahllenny/MMM-affluences

Repository files navigation

MMM-affluences

Uses the affluences API to show the occupancy rate of a place

Example of MMM-Template

Installation

Install

In your terminal, go to your MagicMirror² Module folder and clone MMM-affluences:

cd ~/MagicMirror/modules
git clone https://github.com/kahllenny/MMM-affluences

Update

cd ~/MagicMirror/modules/MMM-affluences
git pull

Using the module

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"
			}
		},

Configuration options

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

About

Uses the affluences API to show the occupancy rate of a place

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published