sorry for the headline, but well… I just got 2 enviros, spend 70bucks on them and… well, step by step:
I got a fresh SD card with raspberian for a fresh raspberry zero W. Plugged that thing together and booted up. I used the step by step guide.
After the /install.sh, the first thing was
I solved this by 30min googling and “pip install spidev” …
Then, I went to the examples (I am not allowed to post another picture).:
pi@raspberrypi:~/enviroplus-python/examples $ python all-in-one-no-pm.py
2020-03-04 19:25:44.339 INFO all-in-one.py - Displays readings from all of Enviro plus' sensors
Press Ctrl+C to exit!
Traceback (most recent call last):
File "all-in-one-no-pm.py", line 57, in <module>
font = ImageFont.truetype(UserFont, FontSize)
NameError: name 'FontSize' is not defined
Maybe this one?
pi@raspberrypi:~/enviroplus-python/examples $ python gas.py
2020-03-04 19:26:14.866 INFO gas.py - Print readings from the MICS6814 Gas sensor.
Press Ctrl+C to exit!
Traceback (most recent call last):
File "gas.py", line 20, in <module>
readings = gas.read_all()
File "build/bdist.linux-armv6l/egg/enviroplus/gas.py", line 79, in read_all
File "build/bdist.linux-armv6l/egg/enviroplus/gas.py", line 50, in setup
File "/usr/local/lib/python2.7/dist-packages/ads1015-0.0.5-py2.7.egg/ads1015/__init__.py", line 167, in set_mode
self._ads1015.set('CONFIG', mode=value)
File "/usr/local/lib/python2.7/dist-packages/i2cdevice-0.0.6-py2.7.egg/i2cdevice/__init__.py", line 215, in set
self.read_register(register)
File "/usr/local/lib/python2.7/dist-packages/i2cdevice-0.0.6-py2.7.egg/i2cdevice/__init__.py", line 183, in read_register
self.values[register.name] = self._i2c_read(register.address, register.bit_width)
File "/usr/local/lib/python2.7/dist-packages/i2cdevice-0.0.6-py2.7.egg/i2cdevice/__init__.py", line 283, in _i2c_read
for x in self._i2c.read_i2c_block_data(self._i2c_address, register, bit_width // self._bit_width):
IOError: [Errno 121] Remote I/O error
Really?
but… found something that I could actually run:
pi@raspberrypi:~/enviroplus-python/examples $ python compensated-temperature.py
2020-03-03 23:35:56.899 INFO compensated-temperature.py - Use the CPU temperature
to compensate temperature readings from the BME280 sensor.
Method adapted from Initial State's Enviro pHAT review:
https://medium.com/@InitialState/tutorial-review-enviro-phat-for-raspberry-pi-4cd6d8c63441
Press Ctrl+C to exit!
2020-03-03 23:35:57.168 INFO Compensated temperature: 10.46 *C
2020-03-03 23:35:58.179 INFO Compensated temperature: 28.87 *C
2020-03-03 23:35:59.191 INFO Compensated temperature: 28.97 *C
2020-03-03 23:36:00.202 INFO Compensated temperature: 29.11 *C
2020-03-03 23:36:01.214 INFO Compensated temperature: 29.25 *C
2020-03-03 23:36:02.225 INFO Compensated temperature: 29.24 *C
2020-03-03 23:36:03.237 INFO Compensated temperature: 29.24 *C
2020-03-03 23:36:04.249 INFO Compensated temperature: 29.23 *C
2020-03-03 23:36:05.260 INFO Compensated temperature: 29.18 *C
well… no… I don’t have 29 degree here.
Help me please… did I got ripped off here? It is definately far away from working.
Thanks!