Skip to content

Commit ebc3297

Browse files
committed
Python3 stuff
1 parent 788392c commit ebc3297

File tree

7 files changed

+20
-115
lines changed

7 files changed

+20
-115
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 Adafruit Industries
3+
Copyright (c)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
class BMP085(object):
5656
def __init__(self, mode=BMP085_STANDARD, address=BMP085_I2CADDR, i2c=None, **kwargs):
57-
self._logger = logging.getLogger('Adafruit_BMP.BMP085')
57+
self._logger = logging.getLogger('Python_BMP.BMP085')
5858
# Check that mode is valid.
5959
if mode not in [BMP085_ULTRALOWPOWER, BMP085_STANDARD, BMP085_HIGHRES, BMP085_ULTRAHIGHRES]:
6060
raise ValueError('Unexpected mode value {0}. Set mode to one of BMP085_ULTRALOWPOWER, BMP085_STANDARD, BMP085_HIGHRES, or BMP085_ULTRAHIGHRES'.format(mode))

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
Adafruit Python BMP
1+
Python3 BMP
22
===================
33

4-
Python library for accessing the BMP series pressure and temperature sensors like the BMP085/BMP180 on a Raspberry Pi or Beaglebone Black.
4+
Mit dieser Libary kannst du einfach Sensor Daten aus dem DHT11 auslesen und weiter verbinden. Diese Libary funktioniert auch mit Python 3. Getestet mit: Raspberry Pi B+/Raspberry Pi 2 Version B
55

6-
Designed specifically to work with the Adafruit BMP085/BMP180 pressure sensors ----> https://www.adafruit.com/products/1603
6+
Diese Libary basiert auf https://github.com/adafruit/Adafruit_Python_BMP
7+
8+
Lizens: MIT license
79

8-
To install, download the library by clicking the download zip link to the right and unzip the archive somewhere on your Raspberry Pi or Beaglebone Black. Then execute the following command in the directory of the library:
910

1011
````
11-
sudo python setup.py install
12+
apt-get update
13+
sudo apt-get install build-essential python3-dev
14+
git clone https://github.com/coding-world/Python_BMP.git
15+
sudo python3 setup.py install
1216
````
13-
14-
Make sure you have internet access on the device so it can download the required dependencies.
15-
16-
See examples of usage in the examples folder.
17-
18-
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
19-
20-
Written by Tony DiCola for Adafruit Industries.
21-
MIT license, all text above must be included in any redistribution

examples/google_spreadsheet.py

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

examples/simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#import logging
2525
#logging.basicConfig(level=logging.DEBUG)
2626

27-
import Adafruit_BMP.BMP085 as BMP085
27+
import Python_BMP.BMP085 as BMP085
2828

2929
# Default constructor will pick a default I2C bus.
3030
#
@@ -39,7 +39,7 @@
3939
# Optionally you can override the bus number:
4040
#sensor = BMP085.BMP085(busnum=2)
4141

42-
# You can also optionally change the BMP085 mode to one of BMP085_ULTRALOWPOWER,
42+
# You can also optionally change the BMP085 mode to one of BMP085_ULTRALOWPOWER,
4343
# BMP085_STANDARD, BMP085_HIGHRES, or BMP085_ULTRAHIGHRES. See the BMP085
4444
# datasheet for more details on the meanings of each mode (accuracy and power
4545
# consumption are primarily the differences). The default mode is STANDARD.

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
use_setuptools()
33
from setuptools import setup, find_packages
44

5-
setup(name = 'Adafruit_BMP',
6-
version = '1.5.0',
7-
author = 'Tony DiCola',
8-
author_email = 'tdicola@adafruit.com',
9-
description = 'Library for accessing the BMP series pressure and temperature sensors like the BMP085/BMP180 on a Raspberry Pi or Beaglebone Black.',
5+
setup(name = 'Python_BMP',
6+
version = '1.0.0',
7+
author = 'Coding World',
8+
author_email = 'samuel@codingworld.eu',
9+
description = 'Library zum Auslesen des BMP mit Python3',
1010
license = 'MIT',
11-
url = 'https://github.com/adafruit/Adafruit_Python_BMP/',
11+
url = 'https://github.com/coding-world/Python_BMP',
1212
dependency_links = ['https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.6.5'],
1313
install_requires = ['Adafruit-GPIO>=0.6.5'],
1414
packages = find_packages())

0 commit comments

Comments
 (0)