1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2024-12-22 12:54:29 +01:00
Commit Graph

99 Commits

Author SHA1 Message Date
cn
d93b500b71 ci: fix pytest command used by tox 2022-11-03 10:59:16 +01:00
cn
2089e809e8 module: support Python 3 only 2021-05-21 14:04:19 +02:00
294281658e ci: use older Ubuntu to retain Python 3.4
- see problematic run https://github.com/cmur2/python-bme680/actions/runs/619900122
2021-03-04 09:07:09 +01:00
cn
9f3be44151 Merge upstream 2021-01-08 11:26:06 +01:00
cn
01d590d826 ci: add GHA
- drops usage of Travis CI
2021-01-08 11:22:34 +01:00
cn
0ce1b1a83c module: add Python 3.9
- drop CI tests on unused Python versions
2021-01-06 11:46:16 +01:00
Philip Howard
da98fcacb4
Merge pull request #32 from pimoroni/actions
Add GitHub actions workflow
2020-11-14 11:02:54 +00:00
Phil Howard
191dc9e115 Remove .travis.yml 2020-11-14 11:00:37 +00:00
Phil Howard
9855b10969 Add GitHub actions workflow 2020-11-14 10:57:49 +00:00
Phil Howard
6b5c136823 Merge branch 'melvinmajor-patch-1' 2020-11-02 15:59:04 +00:00
Phil Howard
d7f712247a Swap from ord() to bytes 2020-11-02 15:58:50 +00:00
Phil Howard
adfd58db6b Merge branch 'patch-1' of git://github.com/melvinmajor/bme680-python into melvinmajor-patch-1 2020-11-02 15:57:28 +00:00
Philip Howard
8ecf91fdd8
Merge pull request #29 from NicolaiSoeborg/patch-1
Add dependency: smbus
2020-11-02 15:55:11 +00:00
Nicolai Søborg
02ca7a4353
Update dependency requirement
If anyone is reading the file they will know to install `python3-smbus`,
but if someone just do a quick `pip3 install bme680` then make sure to pull smbus from PyPI
2020-11-01 01:11:16 +00:00
cn
7106a373e5 docs: use travis-ci.com links 2020-10-31 00:07:48 +01:00
Melvin Campos Casares
056049ee03
Fix TypeError preventing script to launch
TypeError: argument should be integer or bytes-like object, not 'str'
2020-10-21 19:07:20 +02:00
cn
28ebcb63a5 Also test on Python 3.7 and 3.8 via Tox 2020-08-09 02:15:20 +02:00
cn
b36d259ae1 Remove coveralls integration 2020-08-09 02:15:20 +02:00
cn
efce546001 Fix compensation tests for fixed ambient_temperature on first gas reading 2020-08-09 02:15:20 +02:00
cn
cd32ec320d Merge upstream 2020-08-09 01:44:29 +02:00
Nicolai Søborg
91bb131713
Add dependency: smbus2
Fixes:

```python
>>> import bme680                                                                                                                                                                                          
>>> sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY)                                                                                                                                                        
Traceback (most recent call last):                                                                                                                                                                         
  File "<stdin>", line 1, in <module>                                                                                                                                                                      
  File "/usr/local/lib/python3.7/dist-packages/bme680/__init__.py", line 22, in __init__                                                                                                                   
    import smbus                                                                                                                                                                                           
ModuleNotFoundError: No module named 'smbus'                                                                                                                                                               
```
2020-05-29 15:35:54 +00:00
Philip Howard
7e6bdd0dc4
Merge pull request #28 from pimoroni/tests-and-qa
Tests and QA
2020-03-20 15:49:53 +00:00
Phil Howard
5806466739 Fix for test in py3 2020-03-20 15:44:06 +00:00
Phil Howard
45eeba9bb4 Minor linting fixes to examples 2020-03-20 15:38:31 +00:00
Phil Howard
90fabf53fa Expand test coverage and improve tests 2020-03-20 15:38:22 +00:00
f61ae9a86a
travis: fix build config validation problems
- https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments
2020-02-28 13:23:20 +01:00
Philip Howard
3a48112445
Fix learn link for #25 (#26) 2019-11-08 11:53:07 +00:00
Sandy Macdonald
91434caf0b
Merge pull request #24 from pimoroni/examples-tidyup
Tidying up and adding examples
2019-06-09 13:14:58 +01:00
Sandy Macdonald
5a5dd139c3 Tidying up and adding examples 2019-06-09 13:11:35 +01:00
cn
db4626f370 Use fixed ambient_temperature on first gas reading, it's nearly irrelevant
Note: on subsequent gas measurements the last temperature instead of 25 degree C will be used.
Nearly irrelevant because this happens to return value of _calc_heater_resistance(200):

ambient_temperature = 30 -> int(84.9119287004)
ambient_temperature = 25 -> int(84.9119068473)
ambient_temperature = 20 -> int(84.9118849941)
ambient_temperature = 10 -> int(84.9118412877)
2018-12-24 23:18:33 +01:00
Giampiero Baggiani
e827e5d622 added check on constants.__dict__ for micropython support (#18)
* added check on constants.__dict__ for micropython support
2018-12-10 09:55:07 +00:00
cn
5a4709992e Add fork description to README 2018-12-07 12:04:25 +01:00
cn
6442510ab0 Use floating point precision for measurement compensations to yield sensor resolution
According to the datasheet the resolution delivered by the sensor is better
than 1 degree Celsius, 1 Pascal, 1 percent relative humidity etc. The user
should have the possibility to get floating point precision and figure out
what the measurement accuracy allows given their settings.
2018-12-07 11:39:50 +01:00
cn
db02dd0d65 Increase poll period by x5 to allow successful measurement on max oversampling 2018-12-07 11:39:50 +01:00
cn
c85e3de250 Remove redundant tweaking of measurement settings after soft reset, let user choose once 2018-12-07 11:39:50 +01:00
cn
405867a4aa Use standard units for pressure measures, let user choose conversion 2018-12-07 11:39:45 +01:00
Philip Howard
e97c5f9241
Merge pull request #17 from pimoroni/tests
Fixed Travis badge URL
2018-09-03 11:42:59 +01:00
Phil Howard
e43b362a33 Fixed Travis badge URL 2018-09-03 11:39:10 +01:00
Philip Howard
15171e57f6
Merge pull request #16 from pimoroni/tests
Test suites and code QA fixes
2018-09-03 11:17:21 +01:00
Phil Howard
8dce708fef Check for both i2c addresses in examples 2018-09-03 11:13:32 +01:00
Phil Howard
df382a50aa Updated badges 2018-09-02 11:31:16 +01:00
Phil Howard
6374bc4241 Test suites and code QA fixes 2018-09-02 11:26:04 +01:00
Phil Howard
c97791d720 Updated ignored QA warnings 2018-08-28 21:09:53 +01:00
Phil Howard
4b61558566 Added Build Status 2018-08-28 20:41:16 +01:00
Phil Howard
a4a0cfcd2a Added flake8 install for travis 2018-08-28 20:33:03 +01:00
Phil Howard
b2641c48df Travis flake8 checks 2018-08-28 20:30:59 +01:00
Phil Howard
2dc799a7a4 Added BG tooling 2018-08-14 09:30:42 +00:00
Phil Howard
50902ac08e Prep for v1.0.5 2018-06-01 17:15:10 +01:00
Phil Howard
05f80690e0 Merge branch 'ayeks-offset' 2018-06-01 16:10:47 +01:00
Phil Howard
0f0be7f2c2 Tidied up temp-offset.py example 2018-06-01 16:10:34 +01:00