The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT,...

22
BÂLE BERNE BRUGG DUSSELDORF FRANCFORT S.M. FRIBOURG E. BR. GENÈVE HAMBOURG COPENHAGUE LAUSANNE MUNICH STUTTGART VIENNE ZURICH The Power of Mobile & Cloud Building a Homesecurity - System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone Thomas Claudius Huber Principal Consultant Trivadis Microsoft Most Valuable Professional

Transcript of The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT,...

Page 1: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

BÂLE BERNE BRUGG DUSSELDORF FRANCFORT S.M. FRIBOURG E.BR. GENÈVE

HAMBOURG COPENHAGUE LAUSANNE MUNICH STUTTGART VIENNE ZURICH

The Power of Mobile & CloudBuilding a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Thomas Claudius HuberPrincipal Consultant TrivadisMicrosoft Most Valuable Professional

Page 2: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Thomas Claudius Huber

Principal Consultant @ Trivadis Basel

Developer, Trainer,

Microsoft MVP for Windows Development

Specializes in WPF, XAML, WinApps, .NET, Azure

Book-author

www.thomasclaudiushuber.com

Page 3: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Building a Homesecurity-System

with Microsoft Azure, Surface RT,

Raspberry PI and Windows Phone

Page 4: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Motivation

A lot of break-ins in

South Germany

«Old» Surface RT was

nearly unused

Build home security with several IP-cameras

and Surface RT as a central point

Page 5: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

The Requirements

1. Everyone in our house can see who’s behind the front door

2. Everyone in our house can see all areas around the house

3. Cameras support night vision

4. Cameras are accessible from all around the world

Page 6: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 1/5:Installing the

IP-CamerasNew ladder required (4.5m)

Cams with night vision (Requirement)

– I took the Vivothek IP8332

(15m infrared, 1280x800, PoE)

Final installation contains 7 cameras

Page 7: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 2 / 5: Surface RT as a Central Point

View the 7 Cameras

Universal Windows App

– Using MJPEG-Streams

– Never closes

Directly connected by Ethernet-cable

– via USB-to-Ethernet-Adapter

Page 8: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 2 / 5: Surface RT as a Central Point

Page 9: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 2 / 5: Surface RT as a Central Point

Page 10: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

The Requirements

1. Everyone in our house can see who’s behind the front door

2. Everyone in our house can see all areas around the house

3. Cameras support night vision

4. Cameras are accessible from all around the world

Page 11: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 3 / 5: Access Cameras from everywhere

Problem

My provider only

supports

Dual Stack Lite

No physical IPv4 address

No simple port-forwarding

on router

No simple camera access

from outside

Page 12: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 3 / 5: Access Cameras from everywhere

Solution

«Don’t call us,

we call you»Push the camera-images

to the Cloud

Page 13: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 3 / 5: Access Cameras from everywhere

Upload every second

– Done by same Universal Windows App that displays the camera-images

Uses Table Storage on Azure

Uses secure connection

Page 14: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 3 / 5: Upload Images to Microsoft Azure

Page 15: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

DEMO: Azure Table Storage

Page 16: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 4 / 5: Create a Client for Azure

(another Universal Windows App)

Grabs images each 1s

from Microsoft Azure

Page 17: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

DEMO:

The Client-App

Page 18: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Step 5 / 5: Create additional Client app on Windows IoT

Raspberry Pi 2

Via HDMI connected Screen

Windows 10 IoT

=> Deploy Universal Windows App => DONE!

Page 19: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Summary

Page 20: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone
Page 21: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

The Power of the Cloud

Historization in Azure

Face-detection in Azure

Page 22: The Power of Mobile & Cloud: Building a Homesecurity-System with Microsoft Azure, Surface RT, Raspberry PI and Windows Phone

Thomas Claudius Huber

Principal Consultant Trivadis

Tél. +41 79 571 36 24

[email protected]

@thomasclaudiush