Skip to content

Commit 2f57c26

Browse files
authored
Merge pull request #113 from andypiper/install-fix
trivial updates to correct for different script names
2 parents 78b620a + bd58ed8 commit 2f57c26

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
Designed 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-
65
[![Build Status](https://travis-ci.com/pimoroni/enviroplus-python.svg?branch=master)](https://travis-ci.com/pimoroni/enviroplus-python)
76
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/enviroplus-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/enviroplus-python?branch=master)
87
[![PyPi Package](https://img.shields.io/pypi/v/enviroplus.svg)](https://pypi.python.org/pypi/enviroplus)
98
[![Python Versions](https://img.shields.io/pypi/pyversions/enviroplus.svg)](https://pypi.python.org/pypi/enviroplus)
109

1110
# Installing
1211

13-
You're best using the "One-line" install method if you want all of the UART serial configuration for the PMS5003 particulate matter sensor to run automatically.
12+
You are best using the "One-line" install method if you want all of the UART serial configuration for the PMS5003 particulate matter sensor to run automatically.
1413

1514
**Note** The code in this repository supports both the Enviro+ and Enviro Mini boards. _The Enviro Mini board does not have the Gas sensor or the breakout for the PM sensor._
1615

@@ -21,7 +20,7 @@ You're best using the "One-line" install method if you want all of the UART seri
2120

2221
## One-line (Installs from GitHub)
2322

24-
```
23+
```bash
2524
curl -sSL https://get.pimoroni.com/enviroplus | bash
2625
```
2726

@@ -33,13 +32,13 @@ curl -sSL https://get.pimoroni.com/enviroplus | bash
3332
* `cd enviroplus-python`
3433
* `sudo ./install.sh`
3534

36-
**Note** Raspbian Lite users may first need to install git: `sudo apt install git`
35+
**Note** Raspbian/Raspberry Pi OS Lite users may first need to install git: `sudo apt install git`
3736

3837
## Or... Install from PyPi and configure manually:
3938

4039
* Run `sudo python3 -m pip install enviroplus`
4140

42-
**Note** this wont perform any of the required configuration changes on your Pi, you may additionally need to:
41+
**Note** this will not perform any of the required configuration changes on your Pi, you may additionally need to:
4342

4443
* Enable i2c: `raspi-config nonint do_i2c 0`
4544
* Enable SPI: `raspi-config nonint do_spi 0`
@@ -52,7 +51,7 @@ And if you're using a PMS5003 sensor you will need to:
5251

5352
And install additional dependencies:
5453

55-
```
54+
```bash
5655
sudo apt install python3-numpy python3-smbus python3-pil python3-setuptools
5756
```
5857

@@ -64,9 +63,10 @@ sudo apt install python3-numpy python3-smbus python3-pil python3-setuptools
6463
* enviroplus_exporter - https://github.com/tijmenvandenbrink/enviroplus_exporter - Prometheus exporter (with added support for Luftdaten and InfluxDB Cloud)
6564
* homekit-enviroplus - https://github.com/sighmon/homekit-enviroplus - An Apple HomeKit accessory for the Pimoroni Enviro+
6665
* go-enviroplus - https://github.com/rubiojr/go-enviroplus - Go modules to read Enviro+ sensors
66+
* homebridge-enviroplus - https://github.com/mhawkshaw/homebridge-enviroplus - a Homebridge plugin to add the Enviro+ to HomeKit via Homebridge
6767

6868
## Help & Support
6969

7070
* GPIO Pinout - https://pinout.xyz/pinout/enviro_plus
71-
* Support forums - http://forums.pimoroni.com/c/support
71+
* Support forums - https://forums.pimoroni.com/c/support
7272
* Discord - https://discord.gg/hr93ByC

install-bullseye.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ APT_HAS_UPDATED=false
66
USER_HOME=/home/$SUDO_USER
77
RESOURCES_TOP_DIR=$USER_HOME/Pimoroni
88
WD=`pwd`
9-
USAGE="sudo ./install.sh (--unstable)"
9+
USAGE="sudo $0 (--unstable)"
1010
POSITIONAL_ARGS=()
1111
UNSTABLE=false
1212
PYTHON="/usr/bin/python3"
@@ -21,7 +21,7 @@ distro_check() {
2121

2222
user_check() {
2323
if [ $(id -u) -ne 0 ]; then
24-
printf "Script must be run as root. Try 'sudo ./install.sh'\n"
24+
printf "Script must be run as root. Try 'sudo $0'\n"
2525
exit 1
2626
fi
2727
}

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ APT_HAS_UPDATED=false
77
USER_HOME=/home/$SUDO_USER
88
RESOURCES_TOP_DIR=$USER_HOME/Pimoroni
99
WD=`pwd`
10-
USAGE="sudo ./install.sh (--unstable)"
10+
USAGE="sudo $0 (--unstable)"
1111
POSITIONAL_ARGS=()
1212
UNSTABLE=false
1313
CODENAME=`lsb_release -sc`
@@ -19,7 +19,7 @@ fi
1919

2020
user_check() {
2121
if [ $(id -u) -ne 0 ]; then
22-
printf "Script must be run as root. Try 'sudo ./install.sh'\n"
22+
printf "Script must be run as root. Try 'sudo $0'\n"
2323
exit 1
2424
fi
2525
}

0 commit comments

Comments
 (0)