pi3g / bme68x-python-library

Python 3 Library for BME688 and BME680 (Bosch Sensortec sensors), supports Bosch BSEC
MIT License
46 stars 18 forks source link

State file #5

Open nkatanaa opened 3 years ago

nkatanaa commented 3 years ago

I looked into the code and couldn't find the path for the state file to be stored.

It seems that as data was never saved to the state file the IAQ accuracy measurement will reset to '1' for more than 24 hours (approximately) until it reaches an IAQ accuracy of '3' when the program is terminated and re-runs.

Also, as I may need the state file location, I want to move the state file to a different Raspberry Pi.

puresilk commented 3 years ago

Thanks - we're going to look into supporting state files in the future - right now our work is focused on the new AI parts

puresilk commented 3 years ago

In the meantime, if you wish you can also contribute code :-)

nkatanaa commented 3 years ago

Sorry, C++ is not my area of expert. Just Python and PHP.

modestprophet commented 3 years ago

Thanks - we're going to look into supporting state files in the future - right now our work is focused on the new AI parts

Just for my own curiosity, does your AI application leverage the IAQ value or do you rely on some combination of the remaining measurements?

puresilk commented 3 years ago

We do not leverage the IAQ value - we use the other BSEC capabilities.

Here, there is a demo of the capabilities: https://github.com/pi3g/MagicShow/tree/main/MagicShow

(note I've asked Nathan to rename the repo)

Here is also a video showing the capabilities: https://www.youtube.com/watch?v=Dm7lWAg-W3M

We are currently working on integrating the AI functionality as an App into PiCockpit:

https://picockpit.com

modestprophet commented 3 years ago

Sweet! Thank you for sharing the links to that work. You've helped me think about those BME68x sensors in a new way.

puresilk commented 3 years ago

My pleasure. Note that the BME688 is the only one with these AI features - the BME680 does not support detecting smells that way.