You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your Mycodo version is not the latest release version, please update your device before submitting your issue (unless your issue is related to not being able to upgrade). Your problem might already be solved.
If your issue has been addressed before (i.e., duplicated issue), please ask in the original issue.
Please complete as many of the sections below, if applicable, to provide the most information that may help with investigating your issue. The details requested potentially affect which options to pursue. The small amount of time you spend completing the template will also help those providing assistance by reducing the time required to help you.
Describe the problem/bug
The CircuitPython SCD30 sensor input currently errors at every reading, saying there is no parameter called "eCO2". This is because Adafruit updated their library a few months ago, changing that variable name.
Versions:
Mycodo Version: current version, 8.9.2
Raspberry Pi Version: 3B+
Raspbian OS Version: Buster
Reproducibility
Please list specific setup details that are involved and the steps to reproduce the behavior:
Connect SCD30 i2c sensor
Install CircuitPython Dependency for SCD30
Add sensor and activate input
Check Daemon logs and see error: 2021-03-26 10:24:15,292 - ERROR - mycodo.inputs.scd30_circuitpython_d830dda1 - InputModule raised an exception when taking a reading: 'SCD30' object has no attribute 'eCO2' Traceback (most recent call last): File "/var/mycodo-root/mycodo/inputs/base_input.py", line 128, in read self._measurements = self.get_measurement() File "/home/pi/Mycodo/mycodo/inputs/scd30_circuitpython.py", line 95, in get_measurement co2 = self.scd.eCO2 AttributeError: 'SCD30' object has no attribute 'eCO2'
Please DO NOT OPEN AN ISSUE:
Please complete as many of the sections below, if applicable, to provide the most information that may help with investigating your issue. The details requested potentially affect which options to pursue. The small amount of time you spend completing the template will also help those providing assistance by reducing the time required to help you.
Describe the problem/bug
The CircuitPython SCD30 sensor input currently errors at every reading, saying there is no parameter called "eCO2". This is because Adafruit updated their library a few months ago, changing that variable name.
Versions:
Reproducibility
Please list specific setup details that are involved and the steps to reproduce the behavior:
2021-03-26 10:24:15,292 - ERROR - mycodo.inputs.scd30_circuitpython_d830dda1 - InputModule raised an exception when taking a reading: 'SCD30' object has no attribute 'eCO2' Traceback (most recent call last): File "/var/mycodo-root/mycodo/inputs/base_input.py", line 128, in read self._measurements = self.get_measurement() File "/home/pi/Mycodo/mycodo/inputs/scd30_circuitpython.py", line 95, in get_measurement co2 = self.scd.eCO2 AttributeError: 'SCD30' object has no attribute 'eCO2'
Expected behavior
Sensor takes readings per normal
Additional context
I fixed this myself by editing one line of code, replacing "eCO2" with "CO2"
Here's the line:
https://github.com/kizniche/Mycodo/blob/master/mycodo/inputs/scd30_circuitpython.py#L95
Thanks for making Mycodo, it's awesome!
AKA
The text was updated successfully, but these errors were encountered: