jkw
Posts: 12
Joined: Thu Oct 02, 2014 5:20 pm

And another surveillance setup

Mon Oct 05, 2015 8:51 pm

Hey guys, I've developed .. or let's say "I'm developing" .. one of those surveillance system and I thought that I might share it with you. Maybe somebody is interested in the project and would like to join.

In my home I have three raspberry's, each equipped with a camera, a motion sensor and some fancy neopixels. (shown below). In addition I've rented an external server (it is actually one of those amazon elastic cloud servers). The last components in the setup are the android phones of me and my wife.

The raspberry's are running a python program that connects them to the server. The phones are running a background service to check their location. The phone sends a message to the server as soon as it moves further than 300m away from the GPS location of my apartment, simply a "I'm gone" message. If the server sees that both phones are gone it will send a message to every raspberry .. "turn protection on".

If a camera/raspberry now detects a motion the following things happen: The camera sends a message to the server "motion detected", it also starts capturing a configurable amount of frames and starts uploading them to the server.
The server will forward the message to our phones and will attach the picture, taken by the camera. The background service will let the phone vibrate and shows the picture on the screen. Tapping on them opens the app. The app will show you the cameras, the state of each camera and the ability to open the livestream. It also gives you the option to review the pictures, saved during recent alarm and a few more options. (see the two screenshot below, one shows the app in "active protection" mode and one shows the livestream of two anti-roach guys being busy sneaking through my stuff)
21789110199_af73e3f433_z.jpg
Alarm1
21789110199_af73e3f433_z.jpg (49.89 KiB) Viewed 1066 times
21822639776_172ac2cb56_z.jpg
21822639776_172ac2cb56_z.jpg (46.67 KiB) Viewed 1066 times
21949821766_5707f4322e_z.jpg
21949821766_5707f4322e_z.jpg (61.63 KiB) Viewed 1066 times

jkw
Posts: 12
Joined: Thu Oct 02, 2014 5:20 pm

Re: And another surveillance setup

Mon Oct 05, 2015 8:52 pm

As soon as someone comes home the phone will send another message to the server "I'm back" and the server will forward this message to the cameras as "switch off". From now on the motions sensor serves the second purpose. It will only turn on the neopixels whenever there is motion. I can also use the android app to customize the color of the light to my needs. It serves as a nice changeable, automatically operated lamp in our apartment :).
Attachments
21530834189_a6f85e0bc8_z.jpg
Case, first generation
21530834189_a6f85e0bc8_z.jpg (57.99 KiB) Viewed 1019 times
21985813461_d18a551afe_z.jpg
21985813461_d18a551afe_z.jpg (56.34 KiB) Viewed 1040 times
Last edited by jkw on Mon Oct 05, 2015 8:57 pm, edited 2 times in total.

jkw
Posts: 12
Joined: Thu Oct 02, 2014 5:20 pm

Re: And another surveillance setup

Mon Oct 05, 2015 8:52 pm

and some more pictures of my "case" ... can you see the picamera and the sensor in the latest version (the dark wallnut case)? ;D
Pretty invisible, right?

17396986234_d345883185_z.jpg
17396986234_d345883185_z.jpg (43.42 KiB) Viewed 1027 times
17691376594_0f1de23ac0_z.jpg
17691376594_0f1de23ac0_z.jpg (24.49 KiB) Viewed 1027 times
21943678865_e9739264db_z.jpg
21943678865_e9739264db_z.jpg (30.23 KiB) Viewed 1027 times
Last edited by jkw on Mon Oct 05, 2015 9:02 pm, edited 1 time in total.

jkw
Posts: 12
Joined: Thu Oct 02, 2014 5:20 pm

Re: And another surveillance setup

Mon Oct 05, 2015 9:00 pm

And the alarm manager & the liveview inside the app.
The app is actually one of those websocket, javascript, webapps running an android service in addition.
This enables me to use any pc that has internet connection to review the state of the system, incl live stream etc.

Best regards and please leave some feedback
JKW
Attachments
21788163868_78c6d8730d_z.jpg
21788163868_78c6d8730d_z.jpg (63.27 KiB) Viewed 1016 times
21788163078_39213189ea_z.jpg
21788163078_39213189ea_z.jpg (62.27 KiB) Viewed 1016 times

Return to “Other projects”