PROJECTING REAL-TIME KPIS BY INGESTING STREAMING EVENTS FROM EMULATED IOT-DEVICE

satyaki de
2 min readOct 4, 2021

Today, I plan to demonstrate an IoT use case implemented in Python. I was waiting for my Raspberry Pi to arrive. However, the product that I received was not working as expected. Perhaps, some hardware malfunction. Hence, I was looking for a way to continue with my installment even without the hardware.

I was looking for an alternative way to use an online Raspberry Pi emulator. Recently, Microsoft has introduced integrated Raspberry Pi, which you can directly integrate with Azure IoT. However, I couldn’t find any API, which I could leverage on my Python application.

So, I explored all the possible options & finally come-up with the idea of creating my own IoT-Emulator, which can integrate with any application. With the help from the online materials, I have customized & enhanced them as per my use case & finally come up with this clean application that will demonstrate this use case with clarity.

We’ll showcase this real-time use case, where we would try to capture the events generated by IoT in a real-time dashboard, where the values in the visual display points will be affected as soon as the source data changes.

However, I would like to share the run before we dig deep into this.

Demo

Isn’t this exciting? How we can use our custom-built IoT emulator & captures real-time events to Ably Queue, then transform those raw events into more meaningful KPIs.

Let’s explore the Architecture -

Fig — 1

As you can see from the above figure, the green box is a demo IoT application that generates events & pushes them into the Ably Queue. At the same time, Dashboard consumes the events & transforms them into more meaningful metrics.

If you want to know more about this project, then please visit the following link. This site has a lot more information, including the technical explanation along with the entire code-base.

Please share your feedback on my website — if you like the effort.

I’ll bring some more exciting topics in the coming days from the Python verse.

Till then, Happy Avenging! 😀

--

--

satyaki de

I love new technology apart from coding. I’m extremely fond of watching good movies. Whenever, I have some time, I grab my camera go-out!