geerlingguy / airgradient-prometheus

AirGradient Prometheus exporter.
MIT License
174 stars 59 forks source link

Issue 21 | Add support for SGP30 #22

Closed IAm-ThePat closed 2 years ago

IAm-ThePat commented 2 years ago

What was changed?

Added in support for SGP30 sensor based on the following AirGradient doc:

https://www.airgradient.com/resources/tvoc-on-airgradient-diy-sensor/

Sensor can be enabled from line 27 setting the flag to True. As well changing the Serial speed from 9600 to 115200

Requires the additional install of the SGP30 Arduino library by RobTillaart

IAm-ThePat commented 2 years ago

Hmm, I am assuming that because I added a new library, this is causing the tests to fail. Sorry, total novice here, and not sure if/how to fix it

Thelvaen commented 2 years ago

You need to update the .github/workflows/arduino.yaml file with the correct library name for it to compile :)

IAm-ThePat commented 2 years ago

You need to update the .github/workflows/arduino.yaml file with the correct library name for it to compile :)

Thanks, that was easy!

stale[bot] commented 2 years ago

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] commented 2 years ago

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.