I bought a BME680 sensor and got it working on the command line.
What I’m wondering is how do I hook it up to a web service where I can conveniently see the readings? I can’t find any tutorials about this. What are the best web services for viewing the data created by this sensor. Thanks
I use Python3 the and the BME680 modules and send via MQTT to Cayenne.
It wasn’t difficult and you can do it in a few lines.
Cayenne is still a bit rough around the edges, but it does work and is easy to setup
(It ‘rough’ as they had a switch to MQTT and are now catching up with all the other things they had intended to add).
If interested I can post how to do it.
Also as it is MQTT, for any other service using MQTT you can just alter the server and the message it needs to see.
I send all data to bigquery, a service from google cloud. With the sensor hooked to the raspberry, you can stream data to a table by adding a few lines of python.
There’s a service called data studio that can connect to bigquery, which might work for you. I prefer to have more fine grained tables/charts so I’ve written scripts in R that can read from bigquery. Integration is pretty good.
First of all there are only a few auto detected devices if you install Cayenne from the App (I use Android) to the Pi.
Mainly the basic Pi measurements and a few sensors that they used to support pre-MQTT updates.
Now you DIY the sensors.
I’m not quite sure how to add them from a setup done from the App as the layout is a bit different to just doing it from Raspbian.
But it is probably just a case of finding the location.
then you create you python programme using the Pimoroni BME680 module
Then using the code there as a base, follow it adding you code and sending to your Bring Your Own credentials.
I can add more later if needed.
I can follow as far as installing, but the last part is beyond me! I think I get the concept, taking the example sensor python file and adding the Cayenne authentication credentials, but exactly how you do that and communicate with the API isn’t obvious to me.
Thank you, i’ll Have to check out BeeBotte too. I appreciate you posting the required code, I wouldn’t know where to start otherwise.
To run this, would pasting your code into one of the example python scripts supplied for the sensor and running, be enough to post data to the service? I figure I’d also need to install some software from BeeBotte firstly also.