alexh-name / bsec_bme680_linux

Read the BME680 sensor with the BSEC library on Linux (e.g. Raspberry Pi)
Other
87 stars 48 forks source link

CSV output code :) #6

Closed ferazambuja closed 6 years ago

ferazambuja commented 6 years ago

Would you mind sharing your code that outputs the csv for the unicornhat hd? https://github.com/alexh-name/bme680_outputs

ferazambuja commented 6 years ago

Wrong place

alexh-name commented 6 years ago

I included a sample of what I use in the comment on the top of prettyBSEC.sh: https://github.com/alexh-name/bme680_outputs/blob/master/prettyBSEC.sh#L14-L21

You can simply replace all the printfs in bsec_bme680.c (https://github.com/alexh-name/bsec_bme680_linux/blob/master/bsec_bme680.c#L194-L203), recompile with sh make.sh and you should get an output like expected by prettyBSEC.sh.

I'm thinking of introducing command line switches to bsec_bme680, so that you could just toggle the kind of output.