The MMM-Plantower
is a module for MagicMirror². It can monitor air quality data from Plantower PMS3003, PMS5003, and PMS7003 sensors.
- Measurements change color as air quality gets worse (Blue -> Green -> Orange -> Red).
cd ~/MagicMirror/modules
git clone https://github.com/gimdh/MMM-Plantower
cd MMM-Plantower
npm install
Option | Description |
---|---|
serialPort |
Directory of serial port Type: string
Example: /dev/ttyS0
No default value is set and must be provided by user |
updateInterval |
The update interval of air quailty in seconds. Type: int
Example for 30 seconds: 30
Default value: 5
Note: Module waits for sensor to send data. Therefore it may not strictly follow the interval. Also, setting it too low is not recommended. |
titleText |
Widget title text Type: string
Default value: Indoor Dust Measure
|
python3
plantower
python package (Install viapip3 install plantower
)
- Navigate to the module folder
./MagicMirror/MMM-Plantower
. - Run
python3 pollData.py {connected_serial_port_device}
. - Script should print JSON with air quality readings.
MMM-BME280 for overall module architecture and design.