bi temps réel et notifications en situation de mobilité à partir d'objets connectés

23
tech.days 2015 #mstechdays SESSION BI temps réel Et notification en mobilité # mstechdays techdays.microsoft.fr

Upload: microsoft-technet-france

Post on 09-Aug-2015

48 views

Category:

Technology


0 download

TRANSCRIPT

tech.days 2015#mstechdaysSESSION

BI temps réel Et notification en mobilité

#mstechdays techdays.microsoft.fr

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

Dashboard

Plateforme

Notification

Service

Saisie utilisateur

Données

métier

Consolidation

Analyse

Alerte

Plateforme SMS

Alerte

Collaboratif

tech.days 2015#mstechdaysSESSION

<script src="http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.2.5.min.js"></script>

<script type='text/javascript'>function InsertItems() {

var client = new WindowsAzure.MobileServiceClient( "https://MyHubMobileservice.azure-mobile.net/",'1234567890');

var PresenceTable = client.getTable('ClassRoomAttendees');var currentdate=new Date();console.log(PresenceTable.read());

institText =document.getElementById("nameinstituteur").value;

institTimeSubmit=currentdate.getDate() +"/"+(currentdate.getMonth() +1) + "/“ + currentdate.getFullYear() + " @ " +currentdate.getHours() + ":" + currentdate.getMinutes() +":" +currentdate.getSeconds();

tech.days 2015#mstechdaysSESSION

http://dev.windows.com/en-us/featured/raspberrypi2support

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

tech.days 2015#mstechdaysSESSION

private async void InitNotificationsAsync(){

var channel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();

string HUB_NAME = “AZERTYUIO";string CONNECTION_STRING = "Endpoint=sb://fredgis-

ns.servicebus.windows.net/;SharedAccessKeyName=DefaultListenSharedAccessSignature;SharedAccessKey=123456789,slz,slkz,=";

// Register with hubvar hub = new NotificationHub(HUB_NAME, CONNECTION_STRING);var result = await hub.RegisterNativeAsync(channel.Uri);

// Displays the registration ID so you know it was successfulif (result.RegistrationId != null){

var dialog = new MessageDialog("Registration successful: " +result.RegistrationId);

dialog.Commands.Add(new UICommand("OK"));//await dialog.ShowAsync();

}

}

private static async void SendNotificationAsync(){

NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString("Endpoint=sb://fredgis-

ns.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=123456789012345678Q=", “AZERTYUIO");

var toast = @"<toast><visual><binding template=""ToastText01""><textid=""1"">Taux d'absences supérieur à 15%</text></binding></visual></toast>";

await hub.SendWindowsNativeNotificationAsync(toast);}

tech.days 2015#mstechdaysSESSION

using Twilio;

private static void SendSms(){

// Envoie de SMS si absent// chromium-browser --disable-web-securitystring AccountSid = “AZERTYUIOP";#region AuthTokenstring AuthToken = “QSDFGHJKLM";#endregionvar client = new TwilioRestClient(AccountSid, AuthToken);// make an associative array of people we know, indexed by phone number#region private numbervar people = new Dictionary<string, string>() {

{"+336xxxxxxxx"}};#endregion

// iterate over all our friendsforeach (var person in people){

// Send a new outgoing MMS by POSTing to the Messages resource */client.SendMessage(#region FromPhoneNumber"+xxxxxxxxxx", // From number, must be an SMS-enabled Twilio number#endregion

person.Key, // To number, if using Sandbox see note above// message content"Bonjour Mr. " + person.Value + " Ceci est un test pour les

Techdays 2015 :) @Enjoy !"// media url of the image

);Console.Write(string.Format("Sent message to {0}", person.Value +

"\n"));}

}

Demonstration

tech.days 2015#mstechdaysSESSION tech.days 2015#mstechdays

Activez vos bénéfices Azure jusqu’à

115€ de ressources mensuelles

offertes

115€ /mois

x5 membres

x3 ans

= 4 175€ de ressources offertes

http://azure.com http://aka.ms/azurepourmsdn

150€ de ressources offertes

Sans engagement

Pour tousUn mois d’essai offert

http://www.microsoft.com/bizspark/

Les Ressources Azure

Pour les startupsBizspark

= 49 000€ de ressources offertes

pendant un an

Pour les abonnés MSDN

tech.days 2015#mstechdaysSESSION tech.days 2015#mstechdays

L’accompagne

Inscrivez-vous : http://aka.ms/pepiniereazure

Coaching technique et business

Ressources

La Pépinière Microsoft Azure

Visibilité

Une équipe à Microsoft pour vous accompagner dans votre projet cloud et mettre à

votre disposition de l’aide personnalisée.

© 2015 Microsoft Corporation. All rights reserved.

tech days•

2015

#mstechdays techdays.microsoft.fr