Okay..., we won't code the whole thing from scratch because that would not be a small job. So this is why I created a Github Repo where you can find the code for the project. If you are brave enough or you are adventurous you can modify the code and experiment with it. I encourage you to play with the code.

Okay, so here you can find the repo. You have to options: if you are familiar with Git, you can clone it. Or you can download it and extract it. That's easy.

If you don't know what is cloning on Git or what is Git, check out this tutorial. I think it is really useful and you can learn a lot of things.

After you downloaded or cloned the repo:

I would like to talk just a little about the Image Processing/Computer Vision part because that is really interesting. So basically this security system is a motion detector. We can detect motion with computer vision algorithms. I wrote a blog post about this. You can read it here. I also uploaded the image processing images here, so you can easily understand what is going on in the "brain" of the system.

Do you remember that you savedapiKey, authDomain, databaseURL, storageBucket, messagingSenderId from you newly created Firebase Project? Now we will need it, because you have to update the config.ini file.

For example: (just replace <your_...> parts)

[Firebase] apiKey : your_key authDomain : your_domain databaseURL : your_database_url storageBucket : your_stotage_bucket messagingSenderId : your_messaging_sender_id

After this you can test it!