Skip to content

Commit a28a817

Browse files
authored
Merge pull request #102 from pimoroni/release-0.0.4
Add support for ADS1115
2 parents fd3ad93 + 1f68a8e commit a28a817

File tree

7 files changed

+110
-102
lines changed

7 files changed

+110
-102
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ check:
3636
tag:
3737
git tag -a "v${LIBRARY_VERSION}" -m "Version ${LIBRARY_VERSION}"
3838

39-
python-readme: library/README.rst
39+
python-readme: library/README.md
4040

4141
python-license: library/LICENSE.txt
4242

43-
library/README.rst: README.md library/CHANGELOG.txt
44-
pandoc --from=markdown --to=rst -o library/README.rst README.md
45-
echo "" >> library/README.rst
46-
cat library/CHANGELOG.txt >> library/README.rst
43+
library/README.md: README.md library/CHANGELOG.txt
44+
cp README.md library/README.md
45+
printf "\n# Changelog\n" >> library/README.md
46+
cat library/CHANGELOG.txt >> library/README.md
4747

4848
library/LICENSE.txt: LICENSE
4949
cp LICENSE library/LICENSE.txt

library/CHANGELOG.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.0.4
2+
-----
3+
4+
* Add support for ads1015 >= v0.0.7 (ADS1115 ADCs)
5+
* Packaging tweaks
6+
17
0.0.3
28
-----
39

library/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include CHANGELOG.txt
22
include LICENSE.txt
3-
include README.rst
3+
include README.md
44
include setup.py
55
recursive-include enviroplus *.py

library/README.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Enviro+
2+
3+
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
4+
5+
6+
[![Build Status](https://travis-ci.com/pimoroni/enviroplus-python.svg?branch=master)](https://travis-ci.com/pimoroni/enviroplus-python)
7+
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/enviroplus-python/badge.svg?branch=master)](https://coveralls.io/github/pimoroni/enviroplus-python?branch=master)
8+
[![PyPi Package](https://img.shields.io/pypi/v/enviroplus.svg)](https://pypi.python.org/pypi/enviroplus)
9+
[![Python Versions](https://img.shields.io/pypi/pyversions/enviroplus.svg)](https://pypi.python.org/pypi/enviroplus)
10+
11+
# Installing
12+
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.
14+
15+
**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._
16+
17+
![Enviro Plus pHAT](./Enviro-Plus-pHAT.jpg)
18+
![Enviro Mini pHAT](./Enviro-mini-pHAT.jpg)
19+
20+
## One-line (Installs from GitHub)
21+
22+
```
23+
curl -sSL https://get.pimoroni.com/enviroplus | bash
24+
```
25+
26+
**Note** report issues with one-line installer here: https://github.com/pimoroni/get
27+
28+
## Or... Install and configure dependencies from GitHub:
29+
30+
* `git clone https://github.com/pimoroni/enviroplus-python`
31+
* `cd enviroplus-python`
32+
* `sudo ./install.sh`
33+
34+
**Note** Raspbian Lite users may first need to install git: `sudo apt install git`
35+
36+
## Or... Install from PyPi and configure manually:
37+
38+
* Run `sudo pip install enviroplus`
39+
40+
**Note** this wont perform any of the required configuration changes on your Pi, you may additionally need to:
41+
42+
* Enable i2c: `raspi-config nonint do_i2c 0`
43+
* Enable SPI: `raspi-config nonint do_spi 0`
44+
45+
And if you're using a PMS5003 sensor you will need to:
46+
47+
* Enable serial: `raspi-config nonint set_config_var enable_uart 1 /boot/config.txt`
48+
* Disable serial terminal: `sudo raspi-config nonint do_serial 1`
49+
* Add `dtoverlay=pi3-miniuart-bt` to your `/boot/config.txt`
50+
51+
And install additional dependencies:
52+
53+
```
54+
sudo apt install python-numpy python-smbus python-pil python-setuptools
55+
```
56+
57+
## Alternate Software & User Projects
58+
59+
* enviro monitor - https://github.com/roscoe81/enviro-monitor
60+
* mqtt-all - https://github.com/robmarkcole/rpi-enviro-mqtt - now upstream: [see examples/mqtt-all.py](examples/mqtt-all.py)
61+
* adafruit_io.py - https://github.com/dedSyn4ps3/enviroplus-python/blob/master/examples/adafruit_io.py - uses Adafruit Blinka and BME280 libraries to publish to Adafruit IO
62+
* enviroplus_exporter - https://github.com/tijmenvandenbrink/enviroplus_exporter - Prometheus exporter (with added support for Luftdaten and InfluxDB Cloud)
63+
* homekit-enviroplus - https://github.com/sighmon/homekit-enviroplus - An Apple HomeKit accessory for the Pimoroni Enviro+
64+
* go-enviroplus - https://github.com/rubiojr/go-enviroplus - Go modules to read Enviro+ sensors
65+
66+
## Help & Support
67+
68+
* GPIO Pinout - https://pinout.xyz/pinout/enviro_plus
69+
* Support forums - http://forums.pimoroni.com/c/support
70+
* Discord - https://discord.gg/hr93ByC
71+
72+
# Changelog
73+
0.0.4
74+
-----
75+
76+
* Add support for ads1015 >= v0.0.7 (ADS1115 ADCs)
77+
* Packaging tweaks
78+
79+
0.0.3
80+
-----
81+
82+
* Fix "self.noise_floor" bug in get_noise_profile
83+
84+
0.0.2
85+
-----
86+
87+
* Add support for extra ADC channel in Gas
88+
* Handle breaking change in new ltr559 library
89+
* Add Noise functionality
90+
91+
0.0.1
92+
-----
93+
94+
* Initial Release

library/README.rst

Lines changed: 0 additions & 93 deletions
This file was deleted.

library/enviroplus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.0.3'
1+
__version__ = '0.0.4'

library/setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# -*- coding: utf-8 -*-
22
[metadata]
33
name = enviroplus
4-
version = 0.0.3
4+
version = 0.0.4
55
author = Philip Howard
66
author_email = phil@pimoroni.com
77
description = Enviro pHAT Plus environmental monitoring add-on for Raspberry Pi
8-
long_description = file: README.rst
8+
long_description = file: README.md
9+
long_description_content_type = text/markdown
910
keywords = Raspberry Pi
1011
url = https://www.pimoroni.com
1112
project_urls =

0 commit comments

Comments
 (0)