Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic Monitor enviroplus-monitor

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

Installation

  1. Run sudo apt update && sudo apt install -y git
  2. Run git clone https://github.com/greendormer/enviroplus-monitor enviroplus-monitor
  3. Run bash enviroplus-monitor/setup.sh

You will need Traffic Monitor v0.3.0 or greater to feed data into your TM.

Config settings for 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:

Configure MQTT communications settings

  • "enable_send_data_to_homemanager": true in 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 utilize outdoor_mqtt_topic
  • "enable_display": false since 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").

Configure deployment-specific settings

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"
    ]

About

Pimoroni Enviro+ air quality monitor sensors for Traffic Monitor

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages