enviroplus-python | Python library for the Enviro+ environmental monitoring
kandi X-RAY | enviroplus-python Summary
kandi X-RAY | enviroplus-python Summary
Python library for the Enviro+ environmental monitoring board
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Draw the background background
- Compute the colour of a given colour
- Return the coordinates of a circle
- Calculate y position
- Display the wifi status
- Check if wifi is available
- Get the serial number
- Compute noise profile
- Record the sound device
- Return a read - only read operation
- Setup the GPIO pin
- Describe humidity
- Return a string describing a light
- Check for missing configuration
- Send data to lftdaten
- Save data to file
- Read PM5003 data from pms5003 file
- Check if wifi is enabled
- Return the amplitudes at the given ranges
- Read PMS 500 measurements
- Return a description of a given pressure
- Returns a dictionary with the properties of the bme
- Display all variables
- Get sun time for a city
- Add text to an image
- Displays a text
- Setup the pin
- Calculate the best fit of the given pressure
enviroplus-python Key Features
enviroplus-python Examples and Code Snippets
Community Discussions
Trending Discussions on enviroplus-python
QUESTION
I have been trying to understand the error reported when I run an example supplied with some hardware i purchased.
I have tried googling around but every answer I get is a bit beyond my comprehension. I think what is going wrong is that the script, or one of the imported scripts is written for Python 2 and i am trying to run it in python 3. When I try and run it in Python 2 i get a whole host of other problems so I have been trying to make it work with 3.
The hardware I purchased is the Enviro+ sensor suite for the raspberry pi sold by Pimoroni
...ANSWER
Answered 2019-Sep-03 at 14:48According to Python 3 whitepages on subprocess.communicate(), the type of output
and _error
can be either strings (what you want) OR bytes. If you were getting strings back, you wouldn't have this problem, but the TypeError
message you're getting is exactly what you get when you try to call index()
on a bytes
object with a string argument.
Demonstrably:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install enviroplus-python
git clone https://github.com/pimoroni/enviroplus-python
cd enviroplus-python
sudo ./install.sh
Note this wont perform any of the required configuration changes on your Pi, you may additionally need to:.
Run sudo pip install enviroplus
Enable i2c: raspi-config nonint do_i2c 0
Enable SPI: raspi-config nonint do_spi 0
Enable serial: raspi-config nonint set_config_var enable_uart 1 /boot/config.txt
Disable serial terminal: sudo raspi-config nonint do_serial 1
Add dtoverlay=pi3-miniuart-bt to your /boot/config.txt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page