
Hi !
Today’s post will be mostly focused on code. And on the main tasks
- I build my docker image using my Raspberry Pi, I explained this in this post [Build docker ๐ณ images from Visual Studio Code remotely using a Raspberry Pi]
- I updated my module to use the port 8089. This update is on the docker definition file and also on the code.
- I make some changes to the way the threads were working to have the webserver and the IoT code running side by side. Again, I based this on my post [Flask Webserver sharing information from values in a different thread]
- I published the image to an Azure Container Registry.
- And I added the image to an Azure IoT Device
Let’s start from here.
Azure Container Registry Module
I deployed several versions of the module. All compiled to the ARM32V7 platform, or Raspberry Pi.

Azure IoT Module
Now, I can add the module to one of the Azure IoT test devices.

And, after a couple of seconds, the device is up and running ! As a double check process, I list the running modules via a SSH connection with the command
iotedge list

Test the Azure IoT Custom Vision module
So, everything seems to be running fine. Let’s test the module. The 1st call will to the IP:Port to validate the default response. The output is similar to this one, so 1st OK.
pi@rpiIoT01:~ $ curl 127.0.0.1:8089
CustomVision.ai simple drawing server.
pi@rpiIoT01:~ $
Final test is to perform a real analysis using a picture and postman. And, it also works !

So far, so good. In the next post, I’ll start to think on adding some configuration options, and refactor and improve!
Resources
- Azure Custom Vision
- Azure Custom Vision Documentation
- Azure IoT Tools
- Deploy your first IoT Edge module to a virtual Linux device
Happy coding!
Greetings
El Bruno
More posts in my blog ElBruno.com.
More info in https://beacons.ai/elbruno
Azure โ IoT
- Install โ Azure IoT on Raspberry Pi
- Deploy โ Azure Blob Storage on IoT Edge, lessons learned
- Connect to โ Azure Blob Storage on IoT Edge using Microsoft Azure Storage Explorer
- Lesson learned and tips on how to install Azure IoT Edge on Ubuntu on a Raspberry Pi
- Azure IoT Explorer, in preview and awesome
- Mapping a local โ Azure IoT Edge folder module with an Edge device folder ๐
- Creating a folder ๐ in the docker definition in an โ Azure IoT Edge
- Granting access to Raspberry Pi GPIO from an โ Azure IoT Edge Module
Create an Azure IoT Module using Raspberry Pi and Grove Sensors
- Raspberry Pi + Grove Sensors, read temperature and humidity values
- Raspberry Pi + Grove Sensors, send temperature and humidity values as telemetry to Azure IoT Hub
- Raspberry Pi + Grove Sensors, create a Azure IoT Module to send temperature and humidity values as telemetry to Azure IoT Hub
- Raspberry Pi + Grove Sensors, publish and use the Azure IoT Module
- Raspberry Pi + Grove Sensors, notes on build and configuration
- Raspberry Pi + Grove Sensors, details on how to send a telemetry message and sample messages
Create an Azure IoT Module from Azure Custom Vision project
- Create and export a Custom Vision Project as Docker image
- Analyze the content of the CV Docker image
- Create and analyze an Azure IoT Module
- Merge the CV project as an Azure IoT Module
- Deploy to an Azure IoT device and test the CV module
- Send telemetry for each analyzed image
- Add digital twin configuration to the Azure IoT module (coming soon)
ยฟCon ganas de ponerte al dรญa?
En Lemoncode te ofrecemos formaciรณn online impartida por profesionales que se baten el cobre en consultorรญa:
- Si tienes ganas de ponerte al dรญa con Front End (ES6, Typescript, React, Angular, Vuejs…) te recomendamos nuestros Mรกster Front End: https://lemoncode.net/master-frontend#inicio-banner
- Si te quieres poner al dรญa en Backend (stacks .net y nodejs), te aconsejamos nuestro Bootcamp Backend: https://lemoncode.net/bootcamp-backend#bootcamp-backend/banner
- Y si tienes ganas de meterte con Docker, Kubernetes, CI/CD…, tenemos nuestro Bootcamp Devops: https://lemoncode.net/bootcamp-devops#bootcamp-devops/inicio
1 comment