Skip to content

Pimoroni Enviro+ air quality monitor sensors for Traffic Monitor

License

Notifications You must be signed in to change notification settings

greendormer/enviroplus-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

  1. Run cd ~/code
  2. Run git clone https://github.com/greendormer/enviroplus-monitor.git
  3. Run cd enviroplus-monitor
  4. Run sudo chmod +x setup.sh to enable script
  5. Run ./setup.sh to install service

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

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published