Hey -
I’ve come across a small problem with the enviroplus and its libraries. I was looking to use the enviroplus with my old raspberry pi Zero WH and got the following error when trying to use the gas sensor:
$ python gas.py
2024-12-02 03:13:05.162 INFO gas.py - Print readings from the MICS6814 Gas sensor.
Press Ctrl+C to exit!
Woah there, suitable gpiochip not found!
❌ GPIO24: not found - /dev/gpiochip0 (pinctrl-bcm2835)!
Below is some more info on my setup:
$ cat /sys/firmware/devicetree/base/model
Raspberry Pi Zero W Rev 1.1
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
~/enviroplus-python/examples $ which python
/home/pi/.virtualenvs/pimoroni/bin/python
$ python
Python 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Could the issue be that the code in the enviroplus python libraries is focused on raspberry pi 4 and 5 and not the old Pi Zero?
The temperature, humidity and light sensors all work as expected, its only the gas sensor is not working currently.
Please let me know if more info is needed.
Thanks!