From 1fc643c61998a066f75b046324bc4c5ab6b1d824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Martins?= Date: Wed, 22 Jan 2020 23:55:38 +0100 Subject: [PATCH 1/4] Added Azure IoTHub Sdk reference --- BME680Setup.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BME680Setup.md b/BME680Setup.md index 76c7b3b..17cc33b 100644 --- a/BME680Setup.md +++ b/BME680Setup.md @@ -5,13 +5,14 @@ 1. Run `git clone https://github.com/alexh-name/bsec_bme680_linux.git`. This is a great repo that includes C code to call Bosh's libraries. These are close source and include code to calculate an IAQ score (Interior Air Quality) that depends on other atmospheric factors. Unfortunatelly not public how this calculation is done. I'll be changing some of the code of this repo to upload readings to Azure. 2. Follow the setup instructions on (https://github.com/alexh-name/bsec_bme680_linux). Remember to `chmod +x make.sh` for it to be executable. - - **Add here**: Download of BSEC and copy into RPI / PIMIDORI / Adafruit -Also: +Also -- for another page, not here: - secondary I2C in my case - change the checkpointing interval - every 3 seconds - change 5ºC to 4ºC ?? +## Install Azure IoTHub Client SDK + +https://pypi.org/project/azure-iot-device/ and https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-sdks From eab9c6e9e70ffc5ad4bca4dcecd38eba346ea238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Martins?= Date: Wed, 22 Jan 2020 23:59:32 +0100 Subject: [PATCH 2/4] Added sections and to-do's --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 1082743..07e4d02 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,22 @@ Sample of using the Bosch BME680 sensor connected to a Raspberry Pi Zero and upl **Note**: This project is Work in Progress as of 22/01/2020. I'm actively working on it and will be adding daily. +## Base setup instructions + [Basic Device Setup](DeviceSetup.md) [Libraries setup](BME680Setup.md) +To-add: + +- Link to Adafruit and to the setup I did, maybe a photo of it with the connections + +## Get sensor readings and push them to Azure + +After the setup is done, you'll need to make make changes to make sure that: +- the readings are captured in a format simple to process in Azure (I picked CSV, JSON would be another good option) +- have code to send the readings to Azure IoT Hub + +## Process the incoming data in Azure + +And finally, what I'm doing in Azure, of course :) From abb29c190ab1a763f0b24e355fbbd31133973f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Martins?= Date: Thu, 23 Jan 2020 00:02:25 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 07e4d02..3699138 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,7 @@ Sample of using the Bosch BME680 sensor connected to a Raspberry Pi Zero and upl ## Base setup instructions -[Basic Device Setup](DeviceSetup.md) - -[Libraries setup](BME680Setup.md) +Start by following these instructions to set up the Zero: [Basic Device Setup](DeviceSetup.md) . If you already have one running, just remember to enable I2C. After this, you'll need to install some aditional libraries in the device, related either to the BME680 sensor or to Azure. To do this, follow the steps here: [Libraries setup](BME680Setup.md) . To-add: From 43a1516b5906b8a05e186cd93848aaaf2d1191d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Martins?= Date: Thu, 23 Jan 2020 00:03:29 +0100 Subject: [PATCH 4/4] Update DeviceSetup.md --- DeviceSetup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeviceSetup.md b/DeviceSetup.md index 5cd2352..4cf9442 100644 --- a/DeviceSetup.md +++ b/DeviceSetup.md @@ -18,4 +18,4 @@ 6. Install Vim: `sudo apt-get install vim -y` (because I prefer Vim to Vi/Nano/Emacs) 7. Install Git: `sudo apt-get install git -y` (to get files from this and other repos) -That's it. Continue with the [BME680 libraries](BME680Setup.md) I chose to use. +That's it. Continue with the setup of [BME680 and Azure libraries](BME680Setup.md).