Sensirion / raspberry-pi-i2c-scd4x

RaspberryPi driver for Sensirion SCD4x sensors
BSD 3-Clause "New" or "Revised" License
21 stars 9 forks source link

Add scd4x_i2c_json utility #5

Closed kraxel closed 3 years ago

kraxel commented 3 years ago

Read sensor data, write values + unix timestamp + serial number to json file. Repeat every 5 seconds.

Allows easy usage of the sensor data given that pretty much any script language has a json parser these days. Shell scripts can use the 'jq' utility.

Signed-off-by: Gerd Hoffmann kraxel@redhat.com

MBjoern commented 3 years ago

Thank you for your contribution.

While I appreciate the utility you've written and understand the need for it, we tend to keep these driver repositories as compact and dedicated to their scope as possible. We'll consider adding tools like this one to a separate repository, to be combined and reused with all of our drivers. If you have any input how to decouple the utility from the driver itself, and how to easily combine the utility with any driver, please feel free to update the pull request accordingly.