At deepstream, we always look out for interesting applications developed with deepstream’s realtime features. After toying with the idea of organising another office Hackday, we decided to make it even more exciting and host a contest instead. So, two months ago, we launched our Home Security contest on Collaborizm.

The Challenge

All participants had to use deepstream’s realtime features to build a Home Security project. Team deepstream would like to take this opportunity to thank everyone who participated and made this contest a success.

A very special congratulations to Mr. Ravi Pujar, who won the first place for his project: ‘VALTRACK-V2 as a Home Security Device - Burglar Alarm’.

What is VALTRACK-V2 Home Security Device and how does it work?

VALTRACK-V2 is a Burglar Alarm system that sets off an alarm when a motion sensor (installed on your main entrance) is activated.

VALTRACK-V2 as a Home Security Device - Burglar Alarm

Let’s break it down and get into the nitty-gritty of how it was all built!

deepstream offers a feature called records which are documents in deepstream’s realtime datastore. Ravi utilised this feature with a motion sensing device in order to carry out his project. As explained in his demo, he sets a simple flag in a record every time the device detects a motion. This triggers a simple javascript function that plays an alarm audio whilst turning the screen red. Similarly, when the alarm is disabled, the flag is set back to ‘false’ and the alarm audio stops playing and the screen turns green.

What motivated Ravi to build this?

Ravi initially set out to build a security project for motorcycles in India as they are often prone to theft. The idea was to implement a motion sensor along with a GSM chip that automatically calls the owner or sends an SMS as soon as motion is detected. Ravi planned to implement these alerts via a web interface. Unfortunately, a little further into his research, Ravi trade discovered that there was no efficient way to implement such realtime functionality using a standard HTTP server. Luckily, through his research, Ravi stumbled upon deepstream and after reading about it, he very quickly found that it was exactly what he was looking for. He says:

“The only thing I am good at is C. and when I saw that deepstream is written in C, I immediately knew it would be lightweight and easier for me to understand. I love low level stuff .”

deepstream has an HTTP API that can be easily used for situations like these. It allows low-powered IoT devices to emit stateless updates, something very close to what Ravi wanted. Embarking on a testing adventure of his own, Ravi quickly realized that it was indeed very easy to build a realtime app and connect it to his device in realtime using deepstream. By default, deepstream communicates over wss (Secure WebSockets) after the initial connection with the server is established, unless if you explicitly use the deepstream HTTP API! Ravi is confident that this project has a tremendous potential as an IoT use case. We believe so too, and we look forward to Ravi’s future projects built using deepstream. Ravi’s winning project with a small demo is available here on his youtube channel.

So what was the winning Prize?

As the winner of this contest, Ravi is entitled to receive a yearly subscription of deepstreamHub’s small business package with 5000 peak connections, 120 million messages, 10GB database, full backup and SSL Encryption which is available for 160 USD/ Month. Woot, woot !


While this contest was being reviewed, Ravi was on a roll, and decided to go ahead and develop his motorcycle tracking project using deepstream. Check it out here