Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.87 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.87 KB

MMM-IQAir

This is an extension for the MagicMirror. It shows the current status of air quality. Based on data from IQAir.

Знімок екрана 2022-10-07 о 00 49 12

Знімок екрана 2022-10-06 о 23 40 56 Знімок екрана 2022-10-06 о 23 40 27

Installation

  1. Install and configure MagicMirror.
  2. Navigate into your MagicMirror's modules folder and execute git clone https://github.com/PavlenkoM/MMM-air-quality.git
  3. To use this module, add it to the modules array in the config/config.js file:
modules: [
	{
		module: 'MMM-IQAir',
		config: {
			key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
		}
	}
]

Configuration options

The following properties can be configured: By default widget displays like a Black&White. And get location by IP. To enable color version need to add config isColored. If widget should be configured to different location should be added config coordinates.

Option Description Type Required
key API key from https://www.iqair.com/commercial/air-quality-monitors/airvisual-platform/api string ✔️
isColored Enable colored schema for widget view boolean
coordinates Object with coordinates { lat: 00.00000, lon: 00.00000 } {[key: 'lat' | 'lon']: number }