AV-Portal 3.23.2 (82e6d442014116effb30fa56eb6dcabdede8ee7f)

Django for IOT: From Hackathon to Production

Video in TIB AV-Portal: Django for IOT: From Hackathon to Production

Formal Metadata

Django for IOT: From Hackathon to Production
Title of Series
Part Number
Number of Parts
CC Attribution - ShareAlike 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this license.
Release Date

Content Metadata

Subject Area
It’s Friday night of hackathon weekend. The latest snazzy Internet-connected thingy is sitting on the table next to your beverage of choice, the device’s API docs are open in a browser tab, and your fingers are itching to write some Django. What’s the fastest way to get started? And next month when you come back to it, what will you want to upgrade? This talk will walk through a common IoT use case, sending HTTP requests to turn on and off a device in response to some external data. I do this all the time at WattTime and I'll share some of the tricks I've picked up over the last couple years. We’ll focus on two big differences from your typical blog or polls app: the data model abstractions that fit the problem, and the need to run frequent periodic tasks to hit the device’s API. I'll share a data model that's worked well for me across a bunch of IoT apps. And I'll show you two ways to run those periodic background tasks in Django: a hackathon-friendly version, and a production-friendly version using Celery. You'll walk away with a complete demo template that you can use in your own projects!
Computer animation Pattern language
Category of being Computer animation State of matter Internetworking Food energy
Computer animation Atomic number Multiplication sign Real-time operating system Internet der Dinge Rectangle Neuroinformatik
Area Server (computing) Momentum Electronic data interchange Code Multiplication sign Bit Line (geometry) Event horizon Numeral (linguistics) Computer animation Software Personal digital assistant Different (Kate Ryan album) Energy level Internet der Dinge
Game controller Computer animation Hypermedia Multiplication sign Projective plane Software design pattern Internet der Dinge Line (geometry)
Axiom of choice Metre State observer Greatest element Electronic data interchange Multiplication sign Similarity (geometry) Food energy Graph coloring Theory Computer programming Number Attribute grammar Different (Kate Ryan album) Analogy Authorization Business model Conservation law Personal identification number (Denmark) Mathematical optimization Identity management Pairwise comparison Cellular automaton Gradient Content (media) Interactive television Median Lattice (order) 10 (number) Type theory Uniform resource locator Message passing Computer animation Personal digital assistant Right angle
Point (geometry) State observer Dependent and independent variables Mobile app Functional (mathematics) Game controller Group action Electronic data interchange Multiplication sign Virtual machine ACID Mereology Cartesian coordinate system Disk read-and-write head Computer animation Semiconductor memory Personal digital assistant Telecommunication Internet der Dinge
State observer Server (computing) State of matter Multiplication sign View (database) Device driver Mereology Product (business) Web 2.0 Business model Data structure Task (computing) Area Multiplication Arm Closed set Interactive television Cartesian coordinate system Category of being Word Arithmetic mean Computer animation Personal digital assistant Formal grammar Right angle Iteration Quicksort Object (grammar) Internet der Dinge
Human migration Arithmetic mean Game controller Data management Computer animation Personal digital assistant Concentric Mereology Task (computing)
Message passing Computer animation Data recovery Physical law 1 (number) System call Computer architecture Task (computing)
Server (computing) Scheduling (computing) Service (economics) State of matter Multiplication sign Cartesian coordinate system Theory Message passing Population density Radius Computer animation Software Term (mathematics) Computer configuration Pattern language Right angle Quicksort Resultant Computer architecture
Wrapper (data mining) Multiplication sign Execution unit 1 (number) Similarity (geometry) Instance (computer science) Parameter (computer programming) System call Frequency Computer animation Video game Right angle Resultant Metropolitan area network
Sparse matrix Computer animation Multiplication sign Interactive television Business model Software framework Open set Metropolitan area network
Area Complex (psychology) Standard deviation Length Multiplication sign Bit Cartesian coordinate system Computer animation Integrated development environment Internetworking Business model Energy level Video game Task (computing)
Slide rule Multiplication sign Canonical ensemble Mereology Rule of inference Power (physics) Product (business) Medical imaging Bit rate Root Internetworking Synchronization Ontology Software testing Damping Multiplication Content (media) Sampling (statistics) Electric power transmission Arithmetic mean Process (computing) Integrated development environment Universe (mathematics) Right angle Quicksort Resultant
don't know what it is is the and this and this so this is this is the same as the distance so that I
can have the opposite am at the all really few and there the pattern that is we don't
have a problem where methodical spawned the recall what can be used to encode that they can change there you have a needle Internet it has like 3 minutes that's already like to be able to iden states and the picture here and to turn on when energy is clean and the and turn off when the quantity of old on another side
of them on how the unconscious bias crimes of and that was collected in the resources to help you identify the use and property acts up and in the the the the right rest the year
10 thousand rectangle for Internet of Things from time to time I want them to other words but that that thing only on a lot of evidence that the Internet of
Things so this is something that they don't normally think about computer and like atoms that work harder and it can receive and transmit data and even respond to control all in real time we
momentum people talk about the Internet of Things the popularity in that it would rather than the some of the lines of directly by these they've had at EDI or so thinking about these cases where you're writing code in that what
happened on that 1 the that's very form at the numerator and colored them about half of and the area and is usually when invited level and has a great time come in and out of the government general it becomes particularly popular for a while that founders of soaring status that we can use and a kind of Taurus for producing so when 1 of the event of the year the reliability matters different ways for Internet of things that stand the network so you say you have a Wi-Fi of lot and and the server is that he's looking at your house let's get into your house and so you might be a little bit more careful when you put in the protection and you that he's lying taking your beer and each your code is extensible and possible all and use dependencies are reliable segmentation that the just and of the so it seems really
talk about as some design patterns that were crafted what time while writing in the tank of projects and that monitoring control Internet of Things devices using better right yeah the as some things will streamline your work being at 1 another painful out you as you interpret inevitability using this in the D . at times it's land for architects and and this land-grant acts of lines of of
they so imagine that in a year and a half times of media for entity that ready that usually the
models so the comparison let's think about the theory of the in the in the tutorial other have an optimal Linnemann hometown attributes and have a model with title 4 in the the and year attached and an analogous identity model that would look pretty similar to stop them said but we have a device with in the in the location and the other as I other around the is set the gradient at the bottom we have a device that with the location in the blood we have conservation where the value for each method right and so you know that went around a lot of similarities and and the meetings of the price model is to add that better right and I and that the ideal almost always the best path onto the end EDI the plate pilot like the 1 we talking to so this out as the author's social security number and like number many of the medical teams winning is that thinking that I observation so i he is fundamentally about use it in a way that most of the time start time and the number of observations that be dealing with it was a lot faster than the content in the early stage of at the technical content and so how can we do with median 5 meters edited all add new entities from the program so it's not like you to add and bureaucratic activated operate Metacity expect tens of thousands of reading about all the extremely light not very 1st I'm adding a 80 and that's kind of the difference between art and finding out and that actually working against place so if you have answer to the walls and maybe more and the different and talk about it if you want the star the types of observations and a lot of cases so we wanted to get back the title is going to be well represented by a character and but I feel probably was designed by numerical the eloquent energy is being used by the device and equally Indian elevated right of honor off and possibly also carried the analogously messages for choices like the color of all they might want to use the models because depending OK so you have a basic model under the the wrong
the cell and years what our interactions with people that is in the inactive leaving the winter interactions that each of the word of human and the way it is important thing about normal and easy to hang up at this feature happens only responsible affiliated to the user at the very last year and but most third-party API is
including almost every year uh EDI his at the and the responsibility and your half the acid that whenever you want to measure all the I have been part of the point of the Internet of Things machine to machine communication of doing what the user may actually want to that for the crucial all the important stuff that happens in your app communities outside of the user request response at all memory with the title of the talk today is the focusing on how that because because of its the that would have
been doing as the to be the kind of functionality for an IT application and the again this year that the case and control changing that the the region observation you have made 1 as a separate action to you it at the head and said it depended on the uncertainty he I don't like wife many you actually want to use the time for him idiotic answers and applications the
and you also need a driver so at called something out and it's going to state of this new world of so that this particular with them and application of a word in the in the we're going to be something that has been decided to turn on or off and we will have that is on the left and on the device using the devices EDI and we'll see that the status of the case so that's happened here and it then after working on Internet of Things that's reliable occurring in the device itself has become 1 of the and because the best part the between most likely time you label that part in the same at the time I get excited about how it is that this is the criterion for wired and that my arm from y axis and so that the museum of 1 of the that when the decided what sort of thing you actually 1 idea as it so when encoded in the AC and there's yeah the this as simple or as part of the and that is when it got out and so it will not only have asynchronously the production situation you can't necessarily count on the CDC seen when the tax crimes that we call so here the mean that all the grammar and I where have the price so a better uh invented by like if I think that the price I and then they can be used get it exactly the right out a lot and it it's and so the imaginary training at an area he's objects instead of some there was then you can see that the gap yeah so we have our model we have a
task at this end it their inhabitants iterations as possible and 1 no 1 really cares and that he wants to organize will that and he's let me ask the same the debate is has by model observations may actually have an in-house and interactions is where the tasks and and they wrap around here at the time that may seem like a lot of structure for having each apple growers time at the 2nd use for adding moving devices using community they I i'm the on and the the gas for the the views and observations that I don't know when to walk along actually emitted by selecting the interactions and if you want to start having multiple kind of various support and that's what the the all the models you ask there and that's the way the now in place the running a web servers and accidental here but really needed something that's like occasionally the units so that the crime and the birth of something like that like many distributed time so we want people to artifact any time you want to have that prevented from Mr. at times it is out of the all that this is the situation is the close a apartment production did most so again property differently from the I but away she can play you a lot and so the 1st and
using her would have had a controller will use that for an image so that you are already familiar with the data management management me migrations are unfair properly and you using community as well the annotator got the sense that I have and in this case will thus have a similar meaning we that half the and then to get
running on her essentially there's this as weighted you 11 based and turning task that we didn't know which is then credit downsides feeling that the of over half concentrations is that it has very limited we can see that all of the immediately after the and that's the 1 that I'm in is your life and and it also they only operate in the last part this so I have listed in assignments that he was wrong and that's that when you have when by they also graph and if you go
into that and therefore we all have 1 of my ability and I tell you that these trees and if we set up saying that unity is there and you can also when we start salary in the
studio message queuing system or asynchronous most tutorials for salary but this unhealthfully thin for how long running and the impact on tasks but the thing is that the thank you something that I mentioned sectorial that we're using it for all is steadily periodic so it's not I you may want you run from the early analytic like that and using for aggregating all as data for these calls have adherence using it for doing the kind of solution I mean I don't recommend something that only that it complicates architecture law so do recovery of everything that he has about 2 and a half so far there is that doesn't really
I'm we also around the stimulus there and that in to the periodic for those that message is finite and message brokerage network you sorry also minutes at 1st in 1st out here where where where it can inventor and consumed by workers server is actually a lot of money and time so you don't have and now you know that the of the literary density and I have here is term in the data from that and a low and something of these some sort and they wanted options for patterns services for both here and the results on the right is a popular because it's of them and that radii yet in the services are offered in you the results are
so to make it more likely that were on the application we going to have everything in its path scheduler is going to play it do something often the agency that you are workable what it all decided when everyone at he turn on our all but also on the bed the gallery passed to you are at the the time all the medical return and yet on how it out of the world and this story that is that the anytime anywhere the state theories of art so got all architecture
configured actually changing our you have passed and she's sorry what is really satisfactory the the and then the
year when the time Cervantes as there is the people and and the syntax for defining the aperiodicity itself it's pretty similarity units contact so you can have a really possible and all the anywhere between 1 man and 1 of the things like the need your life only new and Tuesday is or anything like that and I don't talk about the primary season and you probably have to do with period here and ask result arguments and right and unfortunately this doesn't work very well because this dictionary only evaluated ones like any of the things while for instance so you only use that are hearing about you know that's not function as well and then served work-around is to have a wrapper that ball that I had so you're the call only happens again the full so that you
can find the connection and that the learned and the will on the thing and then there's is a lot of what they see here all of the all so there is the framework of the that later on in the adopted in if he
did on arrival at the top of the but again the place as it had a feature and sparsity and of the the all the way year for you and all of the model can be here for you I have to do is write your actual interactions with a very high and that you might not know this should be in a lot faster and why you that or enhancing man's often utilize so hopefully this will open next time so let's
have a length and I here is fundamentally about confusing to me that most of the time I'm so that they can only half the people in we about with the new models in the stomach and small and I think he is also fundamentally at synchronous profit instead of the standard PC request-response item so think about the bit actually points out not to use them directly access to access something else Atlanta's tasks and easy beryllium rigid way it but in half of the duration it's a is that a and the level of more complex than it is in fact that he talked to them because of the concept of what might and if you want to get started started using them after the end of and I think and is ready for an area for his own I think it will mark of all that and then after they you this morning but I don't see it is typically 5 and very from what situations I needs later the people who are to have really and but I want a that you think can be used more powerful so we like to use piety for environmental applications and radio and batteries in your life where having faces the stock happening around and you much more of
on on the internet and have so
of few of you in the we really time and what you you know and I found actually thinking I and I think he any of and you will not be some of the people in the on the mean over all that hearing on the part of Cervantes situation the last part of the world and on all of this might answer that used solely on and of the universe the test so you know some of are OK but um wine aromas products that also means that all of these may not have access to power on the on the right is and can so we just said deserving of a job in front of the book the lady of general manner rather than going around world the environment where access on you know you got all the land and then find that out for him but his answered my understated situation we can rely on having access to the shh rules for the 2 of them will you longer tested that to wrote determine in hopes sort of yeah I mean and then have a lot of fat salary flower flower everything that and I was like image you can get ahead and I actually have to use the method that considerations ideas that having the media and In this sense and I find that the matter and that is reality and not by ethnicity has 1 so we actually into the using what we have some of the walking things as well as the latest and had a bad he can and you send alerts based on and when I went up what I also getting the content for if you're to stop supporting the canon that's the Apple product and if I have I'm maintenance and that actually speak today is that there is no that's that's all that and if we use the rest of the time thank you and the people that had led them this aspect rating can use the the use of the ontology and its use in of the I and I I mean and I don't I can have only the available here and then you get the knowledge from multiple places and with these challenges have to solve doing and I had the right I don't know what happened to the working out it controlling that as the we had at the coming in at about whether the power grid in Chicago have much better on which and what is the and so they can I I'm working with different partners is a so the constant and then you will the the the value and pull out of that that actually led to a huge you know that the they don't carefully of important things there may be another person knows early on in your slide you have to assessors a status that creates and how and wondering what subversive duplicating that the root of the of the where everything you you just queries everything again from scratch and I wonder if you know of voiced the synchronization of the speed of the device versus the the higher the this you to the land and thinking on and pretended that they only let you and I the training samples in the hang around back in and useful even at that as the Internet and I MIT has to do with that last reactions the long the thing on this they include me that you are able to act as a base for and these are all the that is likely to get it and that it had not been there was of 2 of the rules last 4 and the the what the and that is something that celery has simple pretensions for and that in as yeah thank thank the and that was the result
of you