22
33Designed for environmental monitoring, Enviro+ lets you measure air quality (pollutant gases and particulates), temperature, pressure, humidity, light, and noise level. Learn more - https://shop.pimoroni.com/products/enviro-plus
44
5- [ ![ Build Status] ( https://travis-ci.com/ pimoroni/enviroplus-python.svg ?branch=master )] ( https://travis-ci .com/pimoroni/enviroplus-python )
6- [ ![ Coverage Status] ( https://coveralls.io/repos/github/pimoroni/enviroplus-python/badge.svg?branch=master )] ( https://coveralls.io/github/pimoroni/enviroplus-python?branch=master )
5+ [ ![ Build Status] ( https://img.shields.io/github/actions/workflow/status/ pimoroni/enviroplus-python/test.yml ?branch=main )] ( https://github .com/pimoroni/enviroplus-python/actions/workflows/test.yml )
6+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/pimoroni/enviroplus-python/badge.svg?branch=main )] ( https://coveralls.io/github/pimoroni/enviroplus-python?branch=main )
77[ ![ PyPi Package] ( https://img.shields.io/pypi/v/enviroplus.svg )] ( https://pypi.python.org/pypi/enviroplus )
88[ ![ Python Versions] ( https://img.shields.io/pypi/pyversions/enviroplus.svg )] ( https://pypi.python.org/pypi/enviroplus )
99
@@ -18,25 +18,30 @@ You are best using the "One-line" install method if you want all of the UART ser
1818
1919:warning : This library now supports Python 3 only, Python 2 is EOL - https://www.python.org/doc/sunset-python-2/
2020
21- ## One-line (Installs from GitHub)
22-
23- ``` bash
24- curl -sSL https://get.pimoroni.com/enviroplus | bash
25- ```
26-
27- ** Note** report issues with one-line installer here: https://github.com/pimoroni/get
28-
29- ## Or... Install and configure dependencies from GitHub:
21+ ## Install and configure dependencies from GitHub:
3022
3123* ` git clone https://github.com/pimoroni/enviroplus-python `
3224* ` cd enviroplus-python `
33- * ` sudo ./install.sh `
25+ * ` ./install.sh `
26+
27+ ** Note** Libraries will be installed in the "pimoroni" virtual environment, you will need to activate it to run examples:
28+
29+ ```
30+ source ~/.virtualenvs/pimoroni/bin/activate
31+ ```
3432
3533** Note** Raspbian/Raspberry Pi OS Lite users may first need to install git: ` sudo apt install git `
3634
3735## Or... Install from PyPi and configure manually:
3836
39- * Run ` sudo python3 -m pip install enviroplus `
37+ * ` python3 -m venv --system-site-packages $HOME/.virtualenvs/pimoroni `
38+ * Run ` python3 -m pip install enviroplus `
39+
40+ And install additional dependencies:
41+
42+ ``` bash
43+ sudo apt install python3-numpy python3-smbus python3-pil python3-setuptools
44+ ```
4045
4146** Note** this will not perform any of the required configuration changes on your Pi, you may additionally need to:
4247
@@ -45,15 +50,17 @@ curl -sSL https://get.pimoroni.com/enviroplus | bash
4550
4651And if you're using a PMS5003 sensor you will need to:
4752
48- * Enable serial: ` raspi-config nonint set_config_var enable_uart 1 /boot/config.txt `
49- * Disable serial terminal: ` sudo raspi-config nonint do_serial 1 `
53+ ### Bookworm
54+
55+ * Enable serial: ` raspi-config nonint do_serial_hw 0 `
56+ * Disable serial terminal: ` raspi-config nonint do_serial_cons 1 `
5057* Add ` dtoverlay=pi3-miniuart-bt ` to your ` /boot/config.txt `
5158
52- And install additional dependencies:
59+ ### Bullseye
5360
54- ``` bash
55- sudo apt install python3-numpy python3-smbus python3-pil python3-setuptools
56- `` `
61+ * Enable serial: ` raspi-config nonint set_config_var enable_uart 1 /boot/config.txt `
62+ * Disable serial terminal: ` sudo raspi-config nonint do_serial 1 `
63+ * Add ` dtoverlay=pi3-miniuart-bt ` to your ` /boot/config.txt `
5764
5865## Alternate Software & User Projects
5966
0 commit comments