Pimoroni Enviro+ air quality monitor sensors for the open source Traffic Monitor project at glossyio/traffic-monitor.
Based on the amazing work at roscoe81/enviro-monitor (cloned from
73a8e02, version 8.2 Gen) and the manufactuer's repo at pimoroni/enviroplus-python.
- Updated 2026-07-23 for Commit 3d42c22
- Run
sudo apt update && sudo apt install -y git - Run
git clone https://github.com/greendormer/enviroplus-monitor enviroplus-monitor - Run
bash enviroplus-monitor/setup.sh
You will need Traffic Monitor v0.3.0 or greater to feed data into your TM.
Relevant settings for Python script to interact with the Traffic Monitor Node-RED instance.
See config_readme.md for table with full description and TM defaults. Minimum required TM config fields also listed below:
"enable_send_data_to_homemanager": truein order to send MQTT payloads to specified broker"mqtt_broker_name": "localhost"to send to Node-RED MQTT broker (assumes port 1883)"indoor_outdoor_function": "Outdoor"to utilizeoutdoor_mqtt_topic"enable_display": falsesince the AQ sensor will be in an enclosure"outdoor_mqtt_topic": "aq/readings"for message topic"serial_port": "/dev/ttyAMA0": Allows the serial port of the particle sensor to be specified. Typically set to "/dev/ttyAMA0" for older model Raspberry Pis or "/dev/ttyS0" for newer models. It can be completely omitted (including the "serial_port" key) and the particle sensor library will use its default serial port setting ("/dev/ttyAMA0").
These need to be configured per-deployment for your location. They are utilized by the Astral package for calculating the times of various aspects of the sun and phases of the moon.
"altitude": 49,
"city_name": "Portland",
"time_zone": "America/Los_Angeles",
"custom_locations": [
"Portland, United States of America, America/Los_Angeles, 45.52, -122.681944"
]