Skip to content

A python 3 script designed to work with the RaspberryPi, Enviro + Air Quality Hat, and Particulate Matter Sensor.

Notifications You must be signed in to change notification settings

danraies/EnviroPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Summary

A python 3 script designed to work with the RaspberryPi, Enviro + Air Quality Hat, and Particulate Matter Sensor

Materials

Software

I'm using Python 3.7.3. After setting up the hardware I installed the Python packages supplied by Pimoroni. They supply a one-line installer but I didn't use it. I did the following:

git clone https://github.com/pimoroni/enviroplus-python
cd enviroplus-python
sudo ./install.sh

I also had to install some packages manually. I don't remember exactly which were installed manually but here's a summary of what I used:

  • ST7735 (for writing on the LCD screen)
  • psutil (for accessing memory and CPU load)
  • gpiozero (for accessing CPU temperature)
  • smbus2 and bme280 (for reading the humidity and pressure sensors)
  • enviroplus (for reading the gas sensor)
  • pms5003 (for reading the air quality sensors)

Usage

Once everything is set up just run the script:

python3 runEnviroPi.py

I used the following cron job to schedule the script to run when the Pi boots:

@reboot Python3 /home/pi/EnviroPi/runEnviroPi.py

References

About

A python 3 script designed to work with the RaspberryPi, Enviro + Air Quality Hat, and Particulate Matter Sensor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages