EVA-2020-02-2.git
2 years agofeat(examples/a): Add absolute dew point temperature display mode master-bk
Steven Baltakatei Sandoval [Sat, 2 Oct 2021 04:22:16 +0000 (04:22 +0000)]
feat(examples/a): Add absolute dew point temperature display mode

2 years agofix(examples/a):Change display scale from kg/kg to g/kg
Steven Baltakatei Sandoval [Sat, 2 Oct 2021 03:00:10 +0000 (03:00 +0000)]
fix(examples/a):Change display scale from kg/kg to g/kg

- Note: [g water vapor / g dry air]

2 years agofeat(examples):Add absolute humidity mode
Steven Baltakatei Sandoval [Sat, 2 Oct 2021 02:28:00 +0000 (02:28 +0000)]
feat(examples):Add absolute humidity mode

3 years agostyle(examples):Flip display vertically (back to default)
Steven Baltakatei Sandoval [Tue, 4 May 2021 06:03:58 +0000 (06:03 +0000)]
style(examples):Flip display vertically (back to default)

- note: was flipped to permit use without mount stand for pi zero

3 years agofix(examples):Add delay to throw away bad initial sensor reading
Steven Baltakatei Sandoval [Mon, 19 Apr 2021 00:12:42 +0000 (00:12 +0000)]
fix(examples):Add delay to throw away bad initial sensor reading

3 years agofeat(examples):Add baltakatei's all-in-one-enviro-mini py script
Steven Baltakatei Sandoval [Sun, 18 Apr 2021 23:13:40 +0000 (23:13 +0000)]
feat(examples):Add baltakatei's all-in-one-enviro-mini py script

- Flips screen vertically
- Displays up to last 48 hours of data
- Indicates highest and lowest values

3 years agoMerge pull request #95 from rubiojr/patch-1
Philip Howard [Tue, 26 Jan 2021 17:21:12 +0000 (17:21 +0000)]
Merge pull request #95 from rubiojr/patch-1

Add two third party projects to the  README

3 years agoUpdate python versions for CI (#96)
Philip Howard [Tue, 26 Jan 2021 17:18:36 +0000 (17:18 +0000)]
Update python versions for CI (#96)

* Drop Python 3.4 - GitHub reports it as not found, despite it being in the list it links to!?!?!?
* Fix Coveralls

3 years agoAdd two third party projects to the README
Sergio Rubio [Tue, 26 Jan 2021 16:26:12 +0000 (17:26 +0100)]
Add two third party projects to the  README

3 years agoMerge pull request #88 from pimoroni/actions
Philip Howard [Sat, 14 Nov 2020 17:41:24 +0000 (17:41 +0000)]
Merge pull request #88 from pimoroni/actions

Add GitHub actions workflow

3 years agoRemove .travis.yml
Phil Howard [Sat, 14 Nov 2020 17:38:07 +0000 (17:38 +0000)]
Remove .travis.yml

3 years agoAdd GitHub actions workflow
Phil Howard [Sat, 14 Nov 2020 17:30:36 +0000 (17:30 +0000)]
Add GitHub actions workflow

3 years agoMerge pull request #75 from tijmenvandenbrink/master
Philip Howard [Wed, 28 Oct 2020 15:44:52 +0000 (15:44 +0000)]
Merge pull request #75 from tijmenvandenbrink/master

Added user project: enviroplus_exporter

3 years agoMerge pull request #80 from svetlemodry/svetlemodry-datestamp-fix
Philip Howard [Wed, 5 Aug 2020 10:46:41 +0000 (11:46 +0100)]
Merge pull request #80 from svetlemodry/svetlemodry-datestamp-fix

Minute instead month in backup file name

3 years agoMinute instead month in backup file name
Jaroslav Lichtblau [Wed, 5 Aug 2020 10:18:26 +0000 (12:18 +0200)]
Minute instead month in backup file name

Fix for the DATESTAMP variable, to show proper file name.

3 years agoExperimental fix to communicate Py version reqs for #78
Phil Howard [Thu, 30 Jul 2020 10:53:10 +0000 (11:53 +0100)]
Experimental fix to communicate Py version reqs for #78

3 years agoFix combined.py indentation for Python 3.x
Phil Howard [Thu, 30 Jul 2020 09:47:04 +0000 (10:47 +0100)]
Fix combined.py indentation for Python 3.x

3 years agoMerge pull request #77 from robmarkcole/update-mqtt
Philip Howard [Tue, 14 Jul 2020 10:32:43 +0000 (11:32 +0100)]
Merge pull request #77 from robmarkcole/update-mqtt

Update mqtt-all.py to detect presence of PMS5003

3 years agoUpdate mqtt-all.py
Robin Cole [Sat, 11 Jul 2020 10:22:04 +0000 (11:22 +0100)]
Update mqtt-all.py

3 years agoAdded user project: enviroplus_exporter
Tijmen van den Brink [Sat, 27 Jun 2020 06:06:05 +0000 (08:06 +0200)]
Added user project: enviroplus_exporter

3 years agoMerge pull request #73 from pimoroni/patch-user-projects-readme
Philip Howard [Thu, 18 Jun 2020 09:52:19 +0000 (10:52 +0100)]
Merge pull request #73 from pimoroni/patch-user-projects-readme

Add user projects section to README

3 years agoAdded user projects section to README
Philip Howard [Thu, 18 Jun 2020 08:40:51 +0000 (09:40 +0100)]
Added user projects section to README

3 years agoAdds mqtt example (#68)
Robin [Thu, 18 Jun 2020 08:35:06 +0000 (09:35 +0100)]
Adds mqtt example (#68)

Adds mqtt example by @robmarkcole - see also: https://github.com/robmarkcole/rpi-enviro-mqtt

3 years agoMerge pull request #72 from petermcd/example-fixes
Philip Howard [Thu, 18 Jun 2020 08:28:35 +0000 (09:28 +0100)]
Merge pull request #72 from petermcd/example-fixes

Correcting examples

3 years agoCorrecting examples
Peter McDonald [Wed, 17 Jun 2020 22:44:38 +0000 (23:44 +0100)]
Correcting examples

3 years agoMerge pull request #69 from piofthings/master
Philip Howard [Thu, 4 Jun 2020 14:29:44 +0000 (15:29 +0100)]
Merge pull request #69 from piofthings/master

Added supported board images and an example

3 years agoAdded supported board images and example
Sumit Kumar Maitra [Wed, 3 Jun 2020 23:45:47 +0000 (00:45 +0100)]
Added supported board images and  example

4 years agoMerge pull request #64 from mendhak/issue63-missing-cffi
Philip Howard [Fri, 15 May 2020 10:27:51 +0000 (11:27 +0100)]
Merge pull request #64 from mendhak/issue63-missing-cffi

Include python cffi in setup dependencies

4 years agoInclude python cffi in setup dependencies
mendhak [Fri, 8 May 2020 19:38:27 +0000 (20:38 +0100)]
Include python cffi in setup dependencies

4 years agoMerge pull request #62 from pimoroni/patch-noise-and-test-fixes
Philip Howard [Wed, 29 Apr 2020 13:58:54 +0000 (14:58 +0100)]
Merge pull request #62 from pimoroni/patch-noise-and-test-fixes

Catch #61 with tests and fix

4 years agoCatch #61 with tests and fix
Phil Howard [Wed, 29 Apr 2020 11:50:37 +0000 (12:50 +0100)]
Catch #61 with tests and fix

4 years agoMerge pull request #57 from pimoroni/test-tweaks-and-linting
Philip Howard [Wed, 29 Apr 2020 11:08:59 +0000 (12:08 +0100)]
Merge pull request #57 from pimoroni/test-tweaks-and-linting

Test tweaks and linting

4 years agoDrop Python 2.6
Phil Howard [Wed, 29 Apr 2020 10:56:42 +0000 (11:56 +0100)]
Drop Python 2.6

4 years agoMove package and requires to setup.cfg
Phil Howard [Tue, 24 Mar 2020 11:23:30 +0000 (11:23 +0000)]
Move package and requires to setup.cfg

4 years agoTest noise, fix gas
Phil Howard [Tue, 17 Mar 2020 12:31:33 +0000 (12:31 +0000)]
Test noise, fix gas

4 years agoTest tweaks and linting
Phil Howard [Tue, 17 Mar 2020 11:37:53 +0000 (11:37 +0000)]
Test tweaks and linting

I've re-written the tests to use conftest.py to set up and tear down mock modules via fixtures.

I have also linted the examples, removing redundant linebreaks, commenting out unused variables and attempting to simplify long lines.

4 years agoFix noise_floor bug
Phil Howard [Mon, 16 Mar 2020 11:37:40 +0000 (11:37 +0000)]
Fix noise_floor bug

4 years agoMerge pull request #56 from roscoe81/master
Philip Howard [Fri, 13 Mar 2020 16:14:52 +0000 (16:14 +0000)]
Merge pull request #56 from roscoe81/master

Address Issue #55

4 years agoUpdate README for 0.0.2
Phil Howard [Fri, 13 Mar 2020 10:44:13 +0000 (10:44 +0000)]
Update README for 0.0.2

4 years agoPrep for v0.0.2
Phil Howard [Fri, 13 Mar 2020 10:43:39 +0000 (10:43 +0000)]
Prep for v0.0.2

4 years agoAddress Issue #55
Ross Fowler [Thu, 12 Mar 2020 22:24:29 +0000 (09:24 +1100)]
Address Issue #55

4 years agoMerge pull request #51 from rbricheno/example-combined-add-delay
Philip Howard [Thu, 5 Mar 2020 17:22:53 +0000 (17:22 +0000)]
Merge pull request #51 from rbricheno/example-combined-add-delay

Sleep before first PMS5003 reading

4 years agoMerge pull request #54 from spincrisis/patch-1
Philip Howard [Wed, 4 Mar 2020 19:54:31 +0000 (19:54 +0000)]
Merge pull request #54 from spincrisis/patch-1

Fix launch bug in all-in-one-no-pm.py

4 years agoFix launch bug in all-in-one-no-pm.py
Ross Lockwood [Wed, 4 Mar 2020 15:30:18 +0000 (08:30 -0700)]
Fix launch bug in all-in-one-no-pm.py

Launching all-in-one-no-pm.py results in an error due to line 57. FontSize should be replaced with the variable font_size, to run line 57 without error.

4 years agoMerge pull request #53 from pimoroni/enviro-non-plus
Philip Howard [Tue, 3 Mar 2020 12:32:06 +0000 (12:32 +0000)]
Merge pull request #53 from pimoroni/enviro-non-plus

Migrate to Python 3, Fix Assets

4 years agoMerge branch 'master' into enviro-non-plus
Philip Howard [Mon, 2 Mar 2020 10:51:20 +0000 (10:51 +0000)]
Merge branch 'master' into enviro-non-plus

4 years agoPython 3-related fixes, moving to pip fonts, fixing Astral errors.
sandyjmacdonald [Mon, 24 Feb 2020 13:46:54 +0000 (13:46 +0000)]
Python 3-related fixes, moving to pip fonts, fixing Astral errors.

4 years agoAdding Python 3 shebang
Sandy Macdonald [Wed, 19 Feb 2020 10:10:53 +0000 (10:10 +0000)]
Adding Python 3 shebang

4 years agoSleep before first PMS5003 reading
Robert Bricheno [Mon, 17 Feb 2020 17:27:30 +0000 (17:27 +0000)]
Sleep before first PMS5003 reading

4 years agoMerge pull request #33 from pimoroni/noise
Philip Howard [Wed, 5 Feb 2020 14:01:24 +0000 (14:01 +0000)]
Merge pull request #33 from pimoroni/noise

Noise library and examples for basic FFT and frequency binning

4 years agoMerge pull request #45 from hotplot/patch-1
Philip Howard [Tue, 10 Dec 2019 13:08:50 +0000 (13:08 +0000)]
Merge pull request #45 from hotplot/patch-1

Remove inappropriate sleep between reads

4 years agoRemove inappropriate sleep between reads
Sam Birch [Mon, 9 Dec 2019 08:55:42 +0000 (21:55 +1300)]
Remove inappropriate sleep between reads

The PMS5003 seems to buffer unread samples. If you are reading at a lower rate than it takes readings, then a progressively larger delay will occur between changes in actual PM levels and indicated PM levels.

To see the issue:
1) run this example with the `time.sleep(1)` *included*
2) wait a few minutes
3) burn a piece of paper near the sensor and wait for the reported PM levels to spike

With the sleep included, there is a delay between introducing smoke and seeing reported levels rise (often a few minutes or longer). With the sleep removed you will see reported levels update almost immediately.

The correct way to use the sensor is to read as fast as the sensor allows, and not make any assumptions about what rate samples will be published at

4 years agoAdding all in one weather and light display example
sandyjmacdonald [Fri, 8 Nov 2019 20:26:45 +0000 (20:26 +0000)]
Adding all in one weather and light display example

4 years agoMerge pull request #37 from Kostadin/pms5003_graphing_fix
Philip Howard [Wed, 30 Oct 2019 14:59:36 +0000 (14:59 +0000)]
Merge pull request #37 from Kostadin/pms5003_graphing_fix

Fixed graphing problem for PMS5003 results

4 years agoMerge pull request #39 from Kostadin/combined_mode_example
Philip Howard [Wed, 30 Oct 2019 14:51:24 +0000 (14:51 +0000)]
Merge pull request #39 from Kostadin/combined_mode_example

Added a new combined mode example

4 years agoAdded a new combined mode example
Kostadin [Sat, 26 Oct 2019 11:45:18 +0000 (14:45 +0300)]
Added a new combined mode example

This is a modification of all-in-one.py. It adds another mode where all EnviroPlus and PMS5003 sensor readings are combined on one screen.

Each variable that is displayed can have custom warning limits assigned which change the color of the text according to a predefined RGB palette. It allows for a quick glance of all sensor readings at once in order to jugde if everything is OK in the air or to quickly pinpoint a sensor reading that requires attention.

In addition, the new combined mode saves each reading as soon as it is received for graphing later. As in all-in-one.py, moving your finger close to the proximity sensor switches the mode.

4 years agoFixed graphing problem for PMS5003 results
Kostadin [Sat, 26 Oct 2019 10:26:47 +0000 (13:26 +0300)]
Fixed graphing problem for PMS5003 results

The PMS5003 library returns integers. This causes the current formula for color scaling of the graph to not work properly because of integer division instead of float division. Converting the PMS5003 results from int to float solves the problem.

4 years agoAdd deps for noise measurement
Phil Howard [Wed, 16 Oct 2019 09:44:48 +0000 (10:44 +0100)]
Add deps for noise measurement

4 years agoFix noise-profile example
Phil Howard [Wed, 16 Oct 2019 09:42:21 +0000 (10:42 +0100)]
Fix noise-profile example

4 years agoAdd DocStrings and linting
Phil Howard [Wed, 16 Oct 2019 09:41:23 +0000 (10:41 +0100)]
Add DocStrings and linting

4 years agoAdd dtoverlay for mic
Phil Howard [Wed, 16 Oct 2019 09:41:10 +0000 (10:41 +0100)]
Add dtoverlay for mic

4 years agoTidy up noise examples
Phil Howard [Tue, 17 Sep 2019 10:52:42 +0000 (11:52 +0100)]
Tidy up noise examples

4 years agoNoise library and examples for basic FFT and frequency binning
Phil Howard [Tue, 17 Sep 2019 10:45:48 +0000 (11:45 +0100)]
Noise library and examples for basic FFT and frequency binning

4 years agoTransitional fix for new LTR559 library
Phil Howard [Thu, 12 Sep 2019 09:02:32 +0000 (10:02 +0100)]
Transitional fix for new LTR559 library

4 years agoMerge branch 'master' of github.com:pimoroni/enviroplus-python
Phil Howard [Tue, 20 Aug 2019 15:36:17 +0000 (16:36 +0100)]
Merge branch 'master' of github.com:pimoroni/enviroplus-python

4 years agoMerge pull request #20 from makeupsomething/patch-1
Philip Howard [Tue, 20 Aug 2019 15:35:39 +0000 (16:35 +0100)]
Merge pull request #20 from makeupsomething/patch-1

Fix typo

4 years agoMerge branch 'cipy-use-generic-variables'
Phil Howard [Tue, 20 Aug 2019 15:34:31 +0000 (16:34 +0100)]
Merge branch 'cipy-use-generic-variables'

4 years agoReplaced exception pass with log warning
Phil Howard [Tue, 20 Aug 2019 15:34:23 +0000 (16:34 +0100)]
Replaced exception pass with log warning

4 years agoMerge branch 'use-generic-variables' of git://github.com/cipy/enviroplus-python into...
Phil Howard [Tue, 20 Aug 2019 15:28:38 +0000 (16:28 +0100)]
Merge branch 'use-generic-variables' of git://github.com/cipy/enviroplus-python into cipy-use-generic-variables

4 years agoMerge branch 'cipy-improved-logging'
Phil Howard [Tue, 20 Aug 2019 15:22:17 +0000 (16:22 +0100)]
Merge branch 'cipy-improved-logging'

4 years agoMerged cipy-improved-logging, omitted luftdaten.py for now
Phil Howard [Tue, 20 Aug 2019 15:22:05 +0000 (16:22 +0100)]
Merged cipy-improved-logging, omitted luftdaten.py for now

4 years agoDropped obsolete .decode()
Phil Howard [Tue, 20 Aug 2019 15:17:12 +0000 (16:17 +0100)]
Dropped obsolete .decode()

4 years agoMerge branch 'cipy-master'
Phil Howard [Tue, 20 Aug 2019 15:15:32 +0000 (16:15 +0100)]
Merge branch 'cipy-master'

4 years agoMerged cipy-master
Phil Howard [Tue, 20 Aug 2019 15:15:24 +0000 (16:15 +0100)]
Merged cipy-master

4 years agoMerge branch 'topshed-master'
Phil Howard [Tue, 20 Aug 2019 15:11:33 +0000 (16:11 +0100)]
Merge branch 'topshed-master'

4 years agoMerge branch 'master' of git://github.com/topshed/enviroplus-python into topshed...
Phil Howard [Tue, 20 Aug 2019 15:08:53 +0000 (16:08 +0100)]
Merge branch 'master' of git://github.com/topshed/enviroplus-python into topshed-master

4 years agoSwitch temp comp method for #28
Phil Howard [Mon, 19 Aug 2019 09:52:04 +0000 (10:52 +0100)]
Switch temp comp method for #28

4 years ago+x
Phil Howard [Mon, 19 Aug 2019 09:39:05 +0000 (10:39 +0100)]
+x

4 years agoMerge branch 'master' into improved-logging
Ciprian Manea [Sun, 18 Aug 2019 19:25:58 +0000 (22:25 +0300)]
Merge branch 'master' into improved-logging

4 years agocatching the correct ReadTimeoutError for pms5003
Ciprian Manea [Sun, 18 Aug 2019 19:18:58 +0000 (22:18 +0300)]
catching the correct ReadTimeoutError for pms5003

4 years agoAdding delay to avoid rate-limiting by Luftdaten
Sandy Macdonald [Tue, 13 Aug 2019 14:27:16 +0000 (15:27 +0100)]
Adding delay to avoid rate-limiting by Luftdaten

4 years agoimproved logging with timestamps (instead of print)
Ciprian Manea [Mon, 5 Aug 2019 18:17:29 +0000 (21:17 +0300)]
improved logging with timestamps (instead of print)

4 years agouse generic variables in -no-pm code too
Ciprian Manea [Sun, 4 Aug 2019 08:17:53 +0000 (11:17 +0300)]
use generic variables in -no-pm code too

4 years agouse generic variables; handle pms5003.ReadTimeoutError
Ciprian Manea [Sun, 4 Aug 2019 08:08:54 +0000 (11:08 +0300)]
use generic variables; handle pms5003.ReadTimeoutError

4 years agoallow temperature reads to converge a bit faster
Ciprian Manea [Sat, 3 Aug 2019 22:49:01 +0000 (01:49 +0300)]
allow temperature reads to converge a bit faster

4 years agotesting all examples, with corrections for Python3 support
Ciprian Manea [Sat, 3 Aug 2019 22:27:29 +0000 (01:27 +0300)]
testing all examples, with corrections for Python3 support

4 years agoUpdate luftdaten.py
Richard Hayler [Sat, 3 Aug 2019 19:48:26 +0000 (20:48 +0100)]
Update luftdaten.py

added decoding of bytestring to provide Python3 compatibility.

4 years agoUpdate all-in-one.py
Richard Hayler [Sat, 3 Aug 2019 19:47:08 +0000 (20:47 +0100)]
Update all-in-one.py

added decoding of bytestring to provide Python3 compatibility.

4 years agoUpdate all-in-one-no-pm.py
Richard Hayler [Sat, 3 Aug 2019 19:43:47 +0000 (20:43 +0100)]
Update all-in-one-no-pm.py

added decoding of bytestring to provide Python3 compatibility.

4 years agoFix typo
makeupsomething [Thu, 1 Aug 2019 06:09:58 +0000 (15:09 +0900)]
Fix typo

4 years agoMerge pull request #12 from pimoroni/patch-adc
Philip Howard [Wed, 17 Jul 2019 12:21:26 +0000 (13:21 +0100)]
Merge pull request #12 from pimoroni/patch-adc

Add support for breakout ADC channel

4 years agoExpand test coverage, bugfix
Phil Howard [Wed, 17 Jul 2019 09:17:28 +0000 (10:17 +0100)]
Expand test coverage, bugfix

4 years agoMerge pull request #14 from tanyafish/master
Philip Howard [Tue, 16 Jul 2019 13:47:06 +0000 (14:47 +0100)]
Merge pull request #14 from tanyafish/master

add example for those without a PM sensor

4 years agoMerge pull request #1 from tanyafish/tanyafish-patch-1
Tanya Fish [Tue, 16 Jul 2019 13:33:20 +0000 (14:33 +0100)]
Merge pull request #1 from tanyafish/tanyafish-patch-1

Create all-in-one-no-pm.py

4 years agoCreate all-in-one-no-pm.py
Tanya Fish [Tue, 16 Jul 2019 13:21:11 +0000 (14:21 +0100)]
Create all-in-one-no-pm.py

Example for all of the sensors built in, omitting the optional particulate matter sensor.

4 years agoMerge branch 'master' of github.com:pimoroni/enviroplus-python into patch-adc
Phil Howard [Tue, 16 Jul 2019 10:52:08 +0000 (11:52 +0100)]
Merge branch 'master' of github.com:pimoroni/enviroplus-python into patch-adc

4 years agoEnsure required dependencies are installed
Philip Howard [Fri, 12 Jul 2019 20:13:41 +0000 (21:13 +0100)]
Ensure required dependencies are installed

4 years agoAdd example to demo ADC channel usage
Phil Howard [Fri, 12 Jul 2019 12:54:25 +0000 (13:54 +0100)]
Add example to demo ADC channel usage

4 years agoAdd ADC channel support into gas module
Phil Howard [Fri, 12 Jul 2019 12:54:01 +0000 (13:54 +0100)]
Add ADC channel support into gas module

4 years agoCreate RESOURCES_DIR early
Philip Howard [Wed, 10 Jul 2019 10:31:34 +0000 (11:31 +0100)]
Create RESOURCES_DIR early