 I've actually got a couple of devices plugged into me right now. I've got this band. This is real. It's modeling my it's looking at my heart rate But I'm also a type one diabetic and I've been diabetic for 20 years One of the things that every diabetic does when they become diabetic is they try to solve this problem Usually with Microsoft Excel, but at some point they try to figure out well, I'm diabetic and I'm an engineer Let's plug some wires together and see what we can do. So when we say the Internet of Things I think it's great that you the normal sugared people You know you have your fit bits and we think that's adorable, but but I have you know an insulin pump and That insulin pump is plugged in There's the insulin pump and it's plugged into my arm. It's 24 hours a day and that talks to a system Here is a CGM. That is my actual live blood sugar right now Now you see how it's kicking up there a bit. That's because of stress That's actually plugged in down here in an implant in my side, sorry to show you my chubbiness and This is real when you hear Internet of Things you think Fitbit and you think Raspberry Pi, but I think this Okay, and we've plugged this into some cloud systems that I want to share with you While the Internet of Things is fun things like Raspberry Pi is this is great This is a Raspberry Pi and this is an Internet of Things enabled one We've actually got some C code on this that is talking to this temperature sensor So what does that temperature sensor look like let me switch over to Some code here and show you This is some C code inside of visual studio. This is the low-level stuff C code makes your eyes blur a little bit sometimes what you need to know People who are wearing suits is you've got IOT hub and you have Azure devices So the takeaway there is that that's cloud enabled But for the developers that think this is crazy I want you to notice that we've actually got a visual studio plug-in to do remote debugging of things like Raspberry Pi's In visual studio so whether it be high-level Updating hundreds of thousands of objects or whether it's low-level and doing remote gdb debugging to a Raspberry Pi We can do that now. Let's talk about my system Let me bring back to the slides here for a moment. This is overwhelming. It's Azure, right? It's all these icons. What's going on? It's all these people that are doing all of these things Well, let's talk about me and the system that I'm building That's me in my shirt I've got my band the band goes to Microsoft Health that goes ultimately into storage My glucose system actually goes up into an API and I pull that data in as well Because that's personal to me. I've got my heart rate over years. I've got my blood sugar over years What can I do with that? Well, I'm going to show you some visualizations some graphs I'm going to plug things into office and see if Azure machine learning can answer some really interesting questions About me and my health and this is all live and this is all real So let's come back over to this machine here This is a system called night scout. This is an open source Node application that is running in Azure and this talks to my cgm my continuous glucose meter And I want you to point out a couple of things here This is The first presentation today and this is now That is a real-time System that is showing my blood sugar and one of the things that happens is not just that I drink orange juice Which by the way I have in case I pass out But also stress stress dumps glucose into the system And this is just one of the things that I have to deal with when I'm managing my blood sugar Oh and actually I'm not sure if the guy can get a tight shot of that, but this just popped up and it will appear in the The cloud it's warning me that I'm now going high So in a second the website is also going to announce and then I'll get a notification on my band And on my watch and then people are going to start calling me and then it'll be scary So there we go notifications just showed up So let's talk about how that notification did in fact shut up So I've got a band and this is some data in the cloud. How do I see that? Well, it turns out that the band Can talk some JavaScript I can take JavaScript out of the band This is up at developer dot Microsoft band calm you may have a band you may not be a programmer But you may have a URL that points to some JavaScript or a blog or some XML and you want to create a tile I made one for my blood sugar So now I've got night scout on my system and I can see my blood sugar right there What's interesting about this is that I can use this visual designer But I can also Look at the manifest directly and look at this That's the code there sugar is high if it's over 150 Notification and then I'll get a notification on my band This could be done with a build server whether you want to water your plants whatever that is the personal internet of things And that's what makes me happy But let's think about this once my blood sugar is in the cloud. What else can I do with it? Well, I can send notifications and my wife can be concerned She's probably going to be calling in a moment to make sure that I'm okay But this is part of the process. But remember how I said I want to analyze this stuff in Excel Well, it turns out that I'm not very good at VBA visual basic for applications right remember that 80% of the world's business logic runs in Excel. I think that's a fact and In fact, there's an Excel JS API JavaScript API for Excel I can write an add-in for Excel in JavaScript using the web technologies that I know how to make so we went and we made the the Hansel sugars project and I'm going to actually show you Some of the code here in just a second there we go Ah Where we're going to populate a table in Excel using JavaScript using web technologies and what is exciting for this exciting for me about this is that I Didn't know how to do this before you see I'm a web developer But now I can go in here and put in my target range hit refresh And now we're going to go and talk to the back-end system and then dynamically populate a chart in Excel of my blood sugar That I could then send to a doctor or my wife You have to think about the sense of power and enthusiasm that I suddenly have for Excel, which I did not care about before I'm a web developer That's a web application in pain there and it works in Excel online And one day it'll work in Excel on an iPad like Once you learn how to use one Lego piece you can then plug them into other stuff So it's extremely heartening for me to be able to do this and again If my blood sugar isn't interesting to you and it shouldn't be maybe some hobby of yours or something at work or some Inspiration will come into your mind and you'll think about how you can plug these things in together That's what's so exciting about this. So I've got all my blood sugar in real time. I can collect it into the cloud What else can I do with it? Let's switch over to another machine here. I'm going to switch over to a a Mac This is a Mac running VS code and this particular Mac is got the code to collect my data from the oops From the health API Okay, so we're going to go and make restful API calls be standard API calls off to Microsoft Health with where this is where the band data is stored because this is the thing that's so important. It's my data It's my heartbeat data. My blood sugar is my data. So once I have that ownership of that data What can I do with it? I can plug in that data and do different stuff. So let me see if I can jump out of Here. This is gone full screen Full screen Can be a little confusing. There we go. I'm going to take that data I'm going to pull it out of the Microsoft health API and this is a storage Explorer The reason I wanted to show you this on a Mac is that this is the Azure storage Explorer that we've released That is cross-platform. We're looking at the CSV files of my blood sugar data as it's sitting in the cloud I'm seeing my heart rate data. Pardon me. I'm going to hit download I'm going to throw that on the desktop. Watch the right side Now I have power now. I have control now I've got a hold of that and I can run an analysis on it now in this case. I just brought it down to the desktop I could do some test Notification about my blood sugar I've got and I can do some analysis here But maybe I want to do that analysis in a more sophisticated way when you start thinking about the Internet of Things You start thinking about huge amounts of data. I said it has my heart rate. Well, how much is that? Well, I mean, is it an average over a minute over five minutes over hours? This is a huge amount of data. My blood sugar is doing three or four hundred Data sets every single day over the course of a year. This adds up to huge amounts of information This is where simply putting it into Excel and sorting and going. It looks like a pattern isn't going to be enough for me I'm going to need to do some machine learning. I want to find out about why does my blood sugar go up? When I'm stressed out. What is Thanksgiving dinner look like? Maybe I can answer those questions with machine learning. So I'm going to switch back over to This this system here and what I've what I'm going to do I'm going to jump into Here this is a machine learning kind of algorithm that I've put together an experiment if you will to pull in data from the heart rate On the right there from Azure storage and the glucose data and I'm going to come up with a stress index I'm inventing a number. It's the Hanselman stress index and we're going to load that data up and what we're going to do is Clean it up Do a little bit of normalization Do a couple of analysis run some statistics and then come up with a data set that the result is going to be a time-based Data set of my stress Okay, so that's kind of interesting It's pretty powerful though that But I need to see it over time So how would I express this over time and what value is there in it? Well, there is this API in office 365 and all of Microsoft called the graph API right the Microsoft graph Graph dot Microsoft comm and this allows me to pull my information. Remember how I keep stressing It's my my blood sugar and my heart rate and my calendar and my email I want a unified API to go and get those things and the graph API And you can see there graph dot Microsoft comm allows me to make those requests so what if we looked at my blood sugar and my stress and my heart rate over time Overlaid on an office 365 calendar that could give us some insights and again I don't know anything about this stuff. This is what's so important. Why as a developer. This is so exciting I know JavaScript. I know the web. I know C sharp and now I'm feeling comfortable about the cloud But when I say when I see hey, this is an API and it uses JavaScript and I can access all of the graph data in Microsoft That's amazing. That's that's a playground of excitement. So I can go and build this Get a start date and an end date. This is all standard Parsing of Jason parsing of JavaScript all using the graph API Let's go and see what kind of a question that that could potentially answer. So here is my calendar The stress index as it applies to Calendar data. Let's click on one. This is all real. OK, so here's glucose is updating I can see the different rehearsals and I can see heart rate and sugar and stress changing I can actually run queries and see the result of that machine learning and ask the really burning question the question that we all have Which is what is the most stressful person in my life that is causing these problems and raising my blood sugar? It is a really really great time to be a developer. I Can put stuff like this together now. It is an extremely personal time. It is extremely empowering time You know how we keep telling everyone, you know teach the kids how to code everyone needs to learn how to code That's a part of it, but we need to teach people how to think about systems how to plug stuff in I don't know the graph API But it made sense because it's using open web technologies I don't know a lot of open source systems, but I'm learning those libraries and I'm bringing them in because they're using open tech Dot net is open source if I have questions. I can look at the docs, but I can also read the source Maybe I want to run a Mac. Maybe I want an iPhone I can build those systems with the mobile tools and visual studio Maybe I want to run on Ubuntu then I can use visual studio code and I can write Angular and I can use go I can run those things in the Azure cloud It is such an exciting and powerful time to be a developer right now I really hope that you have as much fun building stuff as we have had building this stuff for you And I really look forward to seeing what you all can build. Thank you very much and have a really great day