IoT Workshop: Visualizing Data from IoT Sensors



I was doing the whole and sundry kinds of things today interested I'd be able to tell you a little bit about some of the IOT take that I was using when I first got involved with your mom and have been using it since then and so I'm really excited to now share some of that with you and show you some of theirs some of the neat stuff we can do basically you know the idea of traditional activity able to connect to eat and be able to observe what it's doing from outside systems to control it and it is nice to be able to get up to three servers so that we can see what's happening over time and broccoli refine so if you look in the back you have existed in we get using a platform called ESP systems of espresso systems for these people so I'll run you through a little history so basically through the right guessing probably more people from however we know used and used up we have that is great available at home really cheap single computers with some surprise mm oval memory and the ability to start with systems for the weekend or you know us connectivity options outside those things being able to get them connected with things that become popping to other things was really difficult in 2014 it's company called espresso systems launched both agencies so that was a breakthrough in that there's an only one chip have a little bit CPU and Wi-Fi capabilities so now really cheaply you could put smarts into something connected to your Wi-Fi network and have it actually directly things and build HDB enable devices and things like that because it's so cheap it became really popular and we saw getting embedded into now one of the really cool things about the esp8266 was that in addition to their proprietary that a special systems developed for definition so that you could use the Arduino IDE to be able to program and you could get access to all the huge library of sensors and different plugins that are available for Arduino so we can kind of have the best of both worlds we can have all of that I mean own capability and all those things then combined with native Wi-Fi connectivity so that was sort of big breakthrough for at least DIY IOT and kind of spawn a lot of the Wi-Fi enabled IOT devices that we're all familiar with today now that was all cool in 2014 right espresso systems followed up 2016 with E is me 32 which is what we will be happening today just basically just a bigger and better esp8266 so we have a dual-core 32-bit CPU more memory Bluetooth connectivity we have a bunch of other connectivity options so GPIO s better and all the digital converters for reading analog signals can bust a whole bunch of of stuff fit right into it which makes it amazing will chip and the cool part about it is that it's still incredibly cheap so compared to building something around Raspberry Pi you can buy four or five SP 32 s for the same amount of money and it makes them really really easy to distribute around the place if you're doing any kind of IOT it just gets that that very entry right now and you're still able to program them with the uttering ID since dispersive systems publish the course so what we actually have in in the back there is you have just recently released eco kit so they've shrunk all of that functionality down look on the slide here so this little chip right there that is the entire piece p32 except as a dual-core 32 bit CPU about powerful ranch Pentium it's going on to the home let's go bunch of RAM it's got a bunch of flash memory and it's always very big this tiny little ain't normally qfn to everything else on the board is just support so breaking out those little half millimeter pitch pins so you can actually access them through the edits that we have there you've got a voltage regulator so that it can be powered off USB you've got two USB connector and then we have built in a USB serial bridge so we can actually talk to it from the computer just plug in via via USB and it comes about the serial port and we can talk to so we can use that both to program the device so to a film with to it anyone sits right if you actually use that also it's a monitor the output and even to having quick getting to the SP 32 and you can find a lot more information about it all the tech specs all sorts of cool documentation about them right at that link on that site so that's that's the brains of the operation here that's the kind of to me at least a really cool part of what we're doing so if the idea today is that we're going to combine that with really really well-known sensor possibly the the DHT series of senses have been around for ages there are two of them as a dht11 are usually 22 they are combined temperature and humidity sensor they have become super ubiquitous in like DIY I have taken up stuff to go to if you have applications we want to be able to performance and temperature competing the detail is a little more basic it's a little bit slower and a little bit less accurate than the 22 and what we're going to be using that today is basically just to gather that temperature data in the room and and the other things you have to have some jumper wires Tom's they have a confusional Penny space jumper wise he's got different colors too yes everyone does have different on jumper wires don't worry about the colors now we have a micro USB cable so that's what we can use to connect everything together if anyone doesn't have a USB a and connector if you've got back with the don't have a dog we have a bunch of them up here in the front so just come on my grandma and we can get you set up there to be able to totally thing up to your laptop so what we're going to do today is the sensor up to the SP 32 and it's going to be able to access the sensor to observe the temperature you may be in the room we're gonna do that every 30 seconds or so we're going to use that data to calculate the index and then we gonna send that data up to a time series data base so what we're actually going to do today a little slightly different to what I originally plan we're going to send the data into post of metrics graphite instance and we are also going to send a day to be a carbon to a local graphic instance while the local carbon relates to my top and saying all that from there into plate up I'm sorry we have a small plate over fine I want to run get to their deposit online go see everyone's data FEA as well as the young two three everyone here to be able to see the that data email on post for finding instance do I know of the decibel it looks more or less just like what we have on the right there that you can use at smaller service No so the the general idea here is really to just kind of give you a taste of what's possible with these with his ESB tech support they're super powerful so you have a ton of different ins like today we're barely scratching the surface of what's out there it's really just about getting you kind of some exposure to this so on the hardware side really was record bells don't matter so if you want to take your if you open up the the small stack free bag that the little blue sensor in there is the dht11 has three pins on it and they're marked positive output and a negative so they're getting power and ground from the ESB and then there's at one signal wire so if we then look on the on the ESP you've got two headers on there which exposed all of the available opens so with the USB cable facing away from you on the right hand side you'll notice that the second pin from the end has brown written right next to it on the inside so if you connect using one of your jumper wires Brown they're two negative on the dht11 and then the next one over the third pin on the ESP is 3.3 volts and we'll connect that to Plus on the DHD other so that's going to give us that power so it's actually using the voltage regulator on board on the Pico board to get 3.3 volts which is what the do's delimit sensor uses it's from firewalls that's getting to be once you've got those then the signal that's a slightly trickier you have to find in 32 on the Pico board but what we're going to end up with there is if you have a look on the on Latika there are two there are two paths that we can see there so right next to the button that's further away from the USB connector you'll find in 32 it's kind of a little bit difficult to see that Beca slide yeahbsolutely we can do that I just Oh yes it is kind of important that we get this bubbly correctly off we do have some extra bullets so if you do the world what was it see one do one teach one you should yes Jesus the trickiest part is always finding documents that's when you start getting when you start getting under these ones fully populated then things start get really interesting because as you can see we are barely scratching the surface of what we can do in terms of the right capabilities once you start to to get more referrals and things involved you can end up with a fully populated header and then anything start to get quite scary you know yeah we can do yeah the numbers are a little bit hard to see police it's through an improvement over some of the the cheaper so these boards coming directly from expressive systems they're the official dev kit if you go around on places like Amazon or Ebay there are lots of Chinese manufacturers that buy the raw to be 32 chips expressive avec build their walls around them in a scan very and quality of screen printing or whether they even have printing on PCBs at all can also vary a lot these particularly specific words came from digiti and if you're interested in IOT I definitely recommend Dukie they do a really great job and that's we got a lot of this Kia from and yeah the stuff from them is typically pretty high quality eBay stuff can work really well or it can be there DLA and you just don't know I definitely have become a big fan after playing with these official dev kits they seem like they're really cool nobody anyone still need any assistance or are we not absolutely round of applause to everyone for this is this was I figured this would be some of the some of the trickiest part usually once we once we go over all the cables connected then it's it's all downhill from him so the next step is going to be to get the get every time he stole to get set up to be able to program this thing the what's really well for you to bees because especially investment so much work into having support worth so if you go to this in a very good enough setup you're gonna find a bunch of different things there so that actually has the the project that we're going to use but in the readme there are loop there are copies of all the links it's male the download an IP and to do the configuration and to do to be able to set a fitting our and then it's kind of repo you made it not it's loading I think and I think we might have a witch I'm I'm on the I'm on the why fight that we're going to use for the b-52's yep so actually if you go to that link it slides are linked in the reading I think I hear that that would be the the most sensible approach okay yeah that's that's like absolutely thank you yes you absolutely can for those of you with ethics which is probably for most everyone these days you will never need a driver for the Lord I guess big serial adapter that's we can remain everyone at friends on a mac just go download it and install it the place without basically the the the MacBook just won't see it so if you go and do that they will be able to move on with so we out there be no ID and make sure that it lasered nice I'm gonna kick you all this time [Laughter] I can fix that just back tip-top so I get the VC pieces yeah so that bad store lots of reserve the next roll advantage we just we just system extension blocks [Applause] did your eyes I'm saying no it did not change so we're good it's kind of important since all these all these devices only semi have exploded in so it'll definitely be helpful it hasn't changed now we're doing our driver installs anyone who's got the driver installed let's move on to the IDE so this this gonna take a little bit unfortunately the Mac download is three times the size of the windows and linux down waiting about 300 make so yeah absolutely go over there get a hold of the idea install it actually flashing unit should be its the install that takes a bit of time but once you've gone through all this you know you're you're gonna be set up to be able to actually do your own development you know use these sports builds you know yep I tend to use the idea the online tool I played with a little bit in the past but I mean using how many years and if it works you're sorry yeah and the other thing would be unease when there's no hunting around but if you use the online tool it has a component that sits there running would rather avoid that so this help we're giving us a minute to get so basically this is really just one way that you can use the ESP boards without Rena there they have their own so exclusive systems has its own native tool kit that you can use to program but you can also use this micro Python for them free RTOS a bunch of different options there are a bunch of proprietary platforms as well so the this is kind of the magic that allows you to use the Arduino IDE and to compile your Arduino sketch down into the into the USB plug into the format that the ESP 32 inspector is firmly so once we once we all have the ID installed we'll go and add that full advantage of URL and that's that's what's kind of update the IDE so you can actually here today and you know if you want the 80 to 60 sixes if you don't need the power of the 32 they cost about half as much so they're available now under $5 apiece that's either cheaper than that you could be a monthly couple bucks so if you're if you're interested in in doing something along those lines we've need a bunch of devices definitely consider the 80 to 60 sixes they're still actively produced technically supported and very very similar there is a there's a core for those for the arduino ide you can use or just the same way the the api's that you use to interact with the Wi-Fi and so on a non identical with it quite similar so i use i still use 82 66 is quite a lot for even this kind of application one that's monitoring temperature and sending that into sending editor Pravana they work really well definitely don't be afraid to use those either dr. dark need the power of the thirty twos they're they're kind of more similar in power to is anyone still struggling with getting on six minutes to me and let's talk about the tutorial system despised there's a station you talk that's it don't click it what's that things really greener stuff everything else all traffic this mafia okay what's what's the area being yeah you have the distress to this yeah that was Oh probably could be the URL he needs the DLLs pricing nothing to help you so this is this top link is the link to to get up repo for those Earthlings in the reading all righty how will doing you're ready for the next slide yes all right so now that we have that installed so now now we can actually install it for itself so that at first I said it's board manager so Arduino IDE can program all kinds of different boards if you go over manager which is under the tools yeah board manager let's wait for it to update that lists and then just search for USB 32 and we're going to uninstall the current 1.01 the so what you'll see once you once you get that download it actually improves definitions for a bunch of different variants of these boards like we're saying you know you have a bunch of different manufacturers in China that are producing different variations on these awards expressive has a few different official dev kits the other really common once you'll see is no name to you and then there are other different variants some of them have things like LED screens built into them or support for external antennas things like that so there there are a lot of water map there comes next yeah okay the truth in flex insulin yes the next using a couple different libraries from the generic Menino library so these dht11 sensors I guess thing they've been around for a very long time and they were popularized by Adafruit there are another really great company to deal with if you're looking at any of this sort of DIY IOT type stuff they have a local a lot of different products they have their own versions of the SP 32 sparklers as well so they've published a ton of libraries to help you integrate with these things the the DHT sensors use a custom protocol over this outlet wire and a deferred have done all the hard work for us and that's really the biggest advantage of using Arduino IDE for this kind of thing is that for almost anything you could possibly want to integrate with someone out there has written the library for Arduino for it and by using this platform we can kind of lean on that all of the all the benefits of open-source are there for the taking to be able to take take this kind of stuff and use it in our projects so what we can do is we need to install a few different libraries so Elif root has two libraries that we're going to use together for communicating with the DHT so the first one is their dedicated library for the DHD sensors so if you open up library manager it should be in where's the menu for that here we go I'll serve you up in the library manager which is on a sketch and go to manage libraries and we're going to search for and install a few different libraries so we'll start with this DHT library so what you can see if you searched the htv-3 with my group there is this other one that someone is written I have played with it so I'm not gonna recommend it it definitely won't work with our sketch so go ahead and install that so it's the same one the ATT sensor library by NATO we do not want the one by BG Tokyo so the next library that we're going to need is the this one's come out of the fine and a free unified sensor library so what NIDA fruit has have done is they have libraries for a ton of different senses and certainly that it's the first place that I look if I if I'm trying to integrate a new sensor into any Arduino based platform so all of those libraries use this unified sense of library so the DHT does and everything else does as well it's really handy and it you know reduces duplication and all those kind of good things the unfortunate part about it is the way that Adafruit named it makes it really hard to find because all of their libraries are mentioned in descriptions so if you search for Adafruit unified and then scroll all the way to the bottom of the list it should be the last one unfortunately one of the downfalls of the other main idea is that it doesn't have any kind of automated way when you build a sketch too difficult to define what libraries it needs and have them get pulled down automatically one of those things where if I have more time at a gun submit PR and one day maybe actually this is when you're you know when you're developing these things the other really neat part about it is just like I've published the schedule we gonna use today nine times out of ten you can find a sketch on them on github that's pretty similar to what you want to do and use that as a base but also nine times out of ten it's using something I really give anything on find them and download install you can bundle libraries together with your sketch publishable kind of as one unit I really don't like to do that if I don't have to because then you don't have any you don't you don't get the benefit within other Nighy of getting updates automatically and those kinds of things little bit of paint but it's definitely worth it so so far both of these libraries you can use with the regular library no there's nothing in there that's special about them it's utilizing anything that's like specific to these ESP boards all they require is a GPIO pin to be able to talk to the new sea level the next library is where we kind of believe the boundaries of what's typically possible the Arduino and start to get into the stuff that makes the SP 32 much more so we can put an NTP client into this thing so that's what time is because what's the use of it reporting temperature immediately to us if we don't know when it was you can tell us it's in our Wi-Fi connection so it's gonna be able to go in and grab the time track the NTP I tend to do this on pretty much all my USB based projects I know like a project they recently over Christmas time was an automatic cat feeder and the cats definitely appreciate when they're fed exactly to the micro setting they sit there and they way they know so yeah they absolutely appreciate the NTP client being part of the rainiest we lay stitches so what we gonna use before here is that we actually be able to have an accurate time stamp to push up into graphite graphite or indeed wherever you've ever stood in to and know that that it's going to be great so yeah for search therefore in TB client no we want this talk one by Fabrice I get fined by is it yes so there are there other there they're a bunch of all kind of cool libraries they like to keep it minimal just with purposes of today but some of the other interesting ones that I tend to use a lot there's a logical pub/sub client which is an mqtt client so in the world abided piety to IOT em PTT has become another de facto standard before communication between different things within a given like this within my house so I run a qtt server but centralize that so everything sends to that and then from there I extract things I use home assistant so like a if you have any SP based system VM PTT it's actually possible for it to automatically register itself with home assistant and be available in your home automation UI automatically which is really cool so that's another that's another really cool library that I I do tend to use a lot but for today I'm kind of keep things minimal and keep things moving along as quickly as we could once we have all the libraries we need to actually get the get the project itself so you can either you can either clone that github repo or just download the zip and extract it to your schedule although the HTV today it's a recession and if you just go to love it it needs gonna be a caveman yeah not so much [Laughter] so once you've downloaded it before you go and open the sketch in arduino ide there's a file in there called configurator example and that contains all the configuration for the things that were actually gonna have to change so the reason that I do that instead of having things like Wi-Fi passwords and API keys and Kien definitions and things like that in the actual man sketch I can have them out in a separate file so I have getting overall therefore config dot H which means that when I go and say they commit that's a I don't end up inadvertently sending my Wi-Fi password out to get home yeah you're quite often run into sketches if you just poking around Internet but just have everything in the Dino file I don't do that because sooner or later you'll put your Wi-Fi password or the ID for some service entry integrating the wheel or something else that's a little bit sensitive on to get up so yeah so yeah it's this configuration file is really for the purposes of workshop today although we're actually going to need to modify so we'll walk through kind of what's going on I've explained to you kind of what the sketch does and then we'll go through configuring it and then we can actually flash it and see how it works so yeah once you've downloaded copied that configuration or example to configure age then we can move ahead and actually open it in our reality that's not readable but the idea there is that you want to find the Dino file I opened up when you're choosing the pins on these boards there are if you have a look in the docks the reason I'm using in 32 is because it's one of the pencils that's not especially anyway so there are a bunch of GPIO s that because the capabilities of the ASP 32 they're a bunch of them that have multiple potential uses and sometimes if you just pick a peanut random you end up with a board that won't boot because there are some of them where if you hold them low it's going to boot into from my download mode or there are a few other kind of things you have to be a little bit aware of 32 is a nice safe pin works really well but yeah once again like if you're if you're trying to use these boards do something yourself build your own systems definitely check the pin outs when you're trying to select which mean you want to use don't just pick one at random because sooner or later you're going to spend like several hours trying to understand why it doesn't work and yeah it'll be because you've chosen up in that has some special purpose usually you can work around it but you might need to have some special code in your initialization to make sure that that in gets dealt with properly doesn't interrupt the boot process before you may need an external pull-up resistor or something else to get to work around so does everyone have this get to opening their IDE I've been meditating on behind does anyone need any help everyone's good so let's let's walk through and sketch everyone s it up there in front of you you're not going to be able to see the code here on the screen so we'll just walk through it this way so the top seven lines are what's pulling in our Occidental libraries so we're starting off by pulling in the libraries yeah get questions yeah Wi-Fi and then dht11 itself and also to keep my have an equal amount of leakage so what that's going to do is configure H we have defines for all the configuration options it's go forwards in making available its following that we're just taking a bunch of global variables for the NTP client for the X with the HT sensor itself we have an HTTP client in there we're going to use to send metrics post interface we have a UDP client that we're going to use to send matrix B a cabin to the cabin really running on that laptop and there are a whole bunch of different options available PSB provides you with all kinds of different tools for Royal TCP connections HTTP connection all kinds of new stuff then we have a set of Wi-Fi function such as the health function that we have that is responsible for actually turning off the Wi-Fi and I'll break that out we've got a function because in quark with the SP 32 which is if the Wi-Fi connection drops it will not fall back everything's on time so when we get down further into the code you'll see that we use that both when we initially count the HP up to connect initially but then every time we are going to take a reading we just check make sure these the Wi-Fi still connected if it's not full connect again again that's something we can really trip you up when you first move from if you use the esp8266 it does that automatically for you if you like me you move to each be 32 and soon it's gonna be the same and still one day your operating firmware on your access point yeah we make sure we do that manually use be 32 is the discussion ongoing on the github reserve about whether they should have it automatically reconnect and why it doesn't and so on but for the moment easiest is just to say okay every time around we check if it's not connected we connect we have a flight time function which we're just using throughout the month to take the unix time to then we're getting from ATP and format as a human readable time in the serial a pollutant that's something for us these beautiful doesn't need it for anything just just move in flair I don't have two functions so we gonna use to send data out from gives me this is what makes it and I to devices wherever sending data so graphite well that's actually doing if we take a look at that function so this is what happens when you try something together that's not going to use any external libraries so what we're actually doing there is we're manually assembling a JSON payload in the format that the post of graphite Gateway expect then we're going to fire up HTTP client and we're going to send a post request up with that payload to get that data entered into post metrics if we want to pull in up in another library they're actually a couple of quite through the libraries available that can help you build that JSON programmatically and not have to do what we're doing so if you're wanting to do kind of more complex JSON definitely go look at some of those some of those libraries that are available they make it easy to to format that stuff in a more programmatic way this is just string concatenation then we have some big carbon which is going to use UDP fire to descend carbon profiles finally we have the two magic functions that make it we know anyways use that we know it's going to be familiar with those it's the same theory 32 we have set a function that runs at boot time now we have a little function which is where we're actually doing all the processing of reading out and humidity displaying on the serial output and sending them saying about so that's called an endless loop every time it finishes it's gonna be a cold again now with the SP 32 what's really neat then you talk about we notice because we have to cause it is actually possible that two loops a little bit a little bit complicated to set it up you have to do a little bit of work in setup but you can actually have two loops running simultaneously and lets you do a bunch of stuff it really difficult with the other thing that will notice in the loop function here is there are bunch of calls to yield so the ESP has a bunch of internal processes that it needs to run to be able to maintain the Wi-Fi connection and Bluetooth to be using that and so on and if you monopolize the CPU it's not gonna be able to do that you're gonna have all kinds of problems so what we see through that loop function is anytime we do something that's likely to take a fair bit of time we're going to call the yield right afterwards and that's gonna do exactly what it sounds like but it's gonna give control back to the HP firmware let it do anything it needs to do and then then it's gonna move on with the rest of eligible we've pretty much covered much these slides are set up it's cold when it starts we stop the serial connection basic you're kind of limited to you your tulips you you can't actually run both two groups time to business we call that self Wi-Fi we talked about that's been actually connect to the Wi-Fi network initialize the clients for NTP and the HT sensor and just give them style at the ready to go so basically just prep to be able to run the first time through the loop so in the loop take a look we check the Wi-Fi connection and reconnect that's that first block then we go with the ATP client we get the current timestamp then we start to actually read stuff off the DHD so be using that a fruit library reading temperature and community from the center and I'm gonna storing them we talked like the heat index and then those reading to be a serial so we can actually see what's going on once we've done that so we're going to send stats out suppose the graph I just do whatever loading thinks otherwise if you don't do that the loops no stop again immediately so we sleep for 30 seconds the reason we choose 30 seconds in this instance is it's a really easy way to make sure we at least one reading per minute without avoiding things so it can take a few seconds to do the work that we need to do so if we slept for 30 seconds each time then our actual time through the loop all sort of 60 seconds each time actual times would be 60 seconds and change and we would end up sooner or later this the easiest way to get around that is to just run run the loop a little bit more frequently and it doesn't matter if we send this that's a little more frequently if we want to get more advanced since we do know the current time once we complete our processing we could get the time again compare and figure out how long we need to sleep to be able to start again exactly for the next sixty second interval now this any number of different things you can do you know this is a really simple loop with just just one thing that we're doing so once you get more advanced with the sort of stuff which you'll end up with is a loop that runs constantly and then you have any flock that says okay well when was the last time I took an action do I need to take it again and that way you can have multiple different things running and firing on different intervals it just gets a little more complicated so we're keeping things simple today so we understand what we have so we need to we need to configure the signal so we've got basically if we open up here on e you should see the same tab next to the so I've prefilled the Wi-Fi Sicilian possibly that we're gonna be using since white get it down here in front is that all these things are going to connect to because they don't like the conference Wi-Fi the conference folks decided to use a really serious as I need never works better for for we want to do anyway so we've quickly figured those I need to worry about time to an offset is I'm sorry set okay did not make this line apologies for that but you don't need to worry about it time zone offset which is only being used by format time I just forget this that was a timeout wooden on cereal you know in a nice appointment we're gonna have to configure the ID so in the sketch would have allowed for having multiple of these it's metrics so go ahead and choose a name for your sensor we'll go back to that but we'll go back to that dawn I'm kind of walking through there the whys and wherefores first I should have probably can't slide out yeah so choose an ID that's just anything you can use so what's going to end up happening is each of these sensors are when it when it's submitted metrics it's making the name of that metric sensor dot the ID temperature in Fahrenheit temperature in Celsius and so on we're gonna send them all to come and relay writing a laptop so choose something that no one else is going to choose and you'll be able to see which one is yours and when it when it sends to your your own motion metrics you'll see that the same name come up there yes that's that's what we'll get to next yeah you have the reporting interval we'll leave that set to 60 seconds we have a DHT pin that it's connected to so on the SP 32 we're connecting the DHT signal to in 32 so we can leave that alone as well DHT type we're using Dec 11 so that's all pre-configured as well so if you wanted to use different pin use a different sense of type so on you'll be able to change the configuration here and not have to modify the NOFA so yeah what what are we going to need and the reason that have you sign up for hosting of Hana is we need an API key that we can use to set those metrics up into the post of metrics platform I mean you graphite instance now you're more go ahead and sign up for that it's it's free okay was our question if you wish we can skip that it's not mandatory that you do that if you want to be able to have your own poster graph on off with this with this data in it then we'll go ahead and do that so if you go to find a comment / looking instance you've got a bunch of metrics graphitic since you got isometrics Prometheus instance all of those are available to you at no cost on the preview program that we've been running and if you're already gone are those two metrics user you know you're up so you can use those feel free to skip that if that doesn't appeal so what you want to do is go yeah it's it's not on every bottle try telling everyone about that looks like a few people have jumped the gun which is great so while you're doing that we will talk a little bit about kind of the the ultimate path you which was already ready to get a written go with particular H as you found out which is that that becoming common poster we configured that IP address that was already there is the IP address of my laptop and on my laptop I'm running carbon real ang so that is taking those UDP packets that these ESP devices are sending to it and it's sending them up into the posted metrics graphite instance that we use for Plato so I have added this dashboard on trying to find and what we can see if you wanted to load that up you can just go to play up the front of the world and search for IOT workshop that's what lists it it will come right up and so all the whole senses that have come online here showing up here in the graph so we've got the average of the temperature heat index and humidity being reported by all the different sensors that we have running and then down on the bottom here we can see the individual temperatures being reported the individual gideon taxes and the humidity's and see there's a little bit variation agree pretty well these sensors are rated to be a plus or minus one degree Fahrenheit roughly 102 degrees Fahrenheit look like they're within that range so we're not doing too bad as a brother-in-law all right starting to see more people give awards online it's kind of neat yeah you have to reset yeah comfortable spaces yeah the signal what is work our subset has no space there's the easy 32 library yeah that easier to inviting probably do I want to 20 goals are savages use that yeah we have a County since it's Catholic right we can definitely do that yes yes let's see if we can get a count of the census here we get 12 there we go she's a visualization what's exciting do not put it down you passed on [Laughter] hey someone else's came along yeah gypsum Justin senses Justin senses yeah so anyone named struggling anyone needs some help any questions good awesome yes you next time plug it up thirteen senses so I supposed to be at a bench so you're going to get up gonna set up the yeah so once you once you've managed to sign up for lucky I've stripped a little bit here unfortunately but create the API key with metrics publish metrics publisher and the other thing you're gonna need is your host of graphite instanceid so if you if you look in your profile on Famicom you'll see hosted metrics there click into that you find your graphite instance and if you look in the details there it's going to tell you how to connect to it from graph on ax and the username will be your numeric IDs which would be a four digit numeric ID so you put that into a host of graphite hm graphite instance that's gonna give you one you need for that HTTP request to work to be able to actually take this data and send it up into your host of metrics instance where you can in query from your own the funniest come on 13 senses yeah this is this is counting a number of distinct senses should be 39 in the list there's three values for each one just Socrates there for ten days we have a dependence on but yes Tom you absolutely could have it in we have been on freedom units yes so basically we can see as we saw we're getting the temperature out sensor in both Fahrenheit and Celsius we can we can do that easily enough just by using the other and we need to tell it that we're not in freedom units and we'll be all set and of course Tom now we've screwed up my threshold is one Thursday all right so that's that's basically the that prepared workshop I'm happy to answer any and all questions if you have it's the best of my abilities talking about that's even remotely IOT related [Applause]

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *