MindSphere: an app in 20 minutes

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everybody and welcome back welcome to the Siemens booth welcome to I know from s of 2018 and we're gonna jump right into our next topic because right here on this stage throughout the entire day throughout the entire week is what I should say we'll be presenting different developments innovations from all different areas here in Siemens talking about financial services just looking down the aisle here human resources compliance down to energy management systems minds fear of course food and beverage automotive aerospace you name it mine sphere is one of the main topics and this is also what were we talking about now and the title of this is how to program an app in 20 minutes now the Sun in the malaika huh these guys really mean is this taken is seriously an app in 20 minutes program deploy how do you do that well let's see what they have to say to it and let's bring them on stage our experts in Scout LA and in Oaxaca in 20 minutes come on out I mean we have to be a little bit more precise because what we are going to show you today is how do you get from a use case from an idea to get an app deployed out in the cloud using mine sphere and programming is just a part of it ok ok ok that's that's more that's more tangible sorry : all right so thanks a lot and we will show you how easy it is to deploy an app how easy it is to bring it in mines here and this we will do in 20 minutes so but before you start yeah you're not programmed in app you know developing an app because you want to have an app you do it because you have something to achieve a target or you have a problem you have a business case you have a use case to do this and in this case we have also used case with us we talking about beer every as we are in Germany we should talk about beer so we're talking about not only a one class of beer we are talking about a whole brewery and this is my prayer so what we have at the beginning we have a big gang of beer lot of beer a lot of goods tasting beer and we have to bring this beer with a pump on the top of our building because there's our bottling machine so important is here what is the worst case in a system like this yen's do you remember as we talked the other day when we were sitting in the bar the very worst case is if you run out of beer that's correct but for a maintenance guy somebody who is responsible for this whole plan not only running out of beers the worst case the worst case is running out of beer for a long time and this can happen if something goes wrong in your system for example we have a problem in our pipe or a wolf is closed and no beer is going through the pipe the worst case is the dry run of a pump because the pump is cooled by the beer while pumping the beer the beer cools also the pump if you don't have beer the pump is running and running and running gets hot get warm and suddenly it breaks and then we have the worst case because then we have to repair the pump we have to replace the pump we need time to repair this and you have a long time no bottling what we can sell and this in any case we need to avoid and in order to do so of course we need some information about the pump that helps us to monitor it of course pump systems can be very complicated and for our case we just use some data of times five five data points which is the pressure before and after the pump the the fluid flow which is very important and of course the motor current and the temperature as you said probably the pump could explode if it's getting too hot absolutely so the temperatures most critical data point in our system so we already set up this whole system in Allegan in our laboratory so we have a lot of Pierre there we're pumping beer in the next floor and to show it here we have it pump pump this data live in mines here so okay can go to mind fear and then you'll look at minds and your open mind for the first time or all the time you have standard components and one of the standard component is what you see here is the fleet manager so you can click on the fleet manager and you see them the pump what we prepared already here is the pump and you can open the pump here and you see data right now arriving in our let's go to the browser time right now you see here all the five data points what we talked about all the five data boys what we talked about we have the temperature of our pump most cooling one but we see also how many PBR pumping at the moment like what is it 249 could pick me the power this is a lot of beer you know it you see some temperature motor current and stuff like this all I see is some lines in a graph that's correct this is how the pump should run so this is at the moment everything okay but if you look for example little bit in the past let's go some days back yeah and you see what happens some days ago here you see unusual data so this is not how it should look like so we can zoom a little bit in here let's zoom a little bit in here and and to stay here so here you see this is not the usual habit of a pump so here let's go a little bit more close to the data and here it shows the lack of beer this is the lack of beauty you see the black curve here is the the beer here we have 249 and we have here 0 you see also the temperature rises here you see here the motor cars are different data what shows me there is something wrong it is not an eye a nice line yeah so now we know we have data in minds here because this is just starting but always if you don't have data you cannot do anything using the data so now we have the data now we can go back to our ideas and to create an app and how we do do we proceed what do we need next so the first one you do when you're creating an app you you think about what are the requirements for SAP what what want what do I want to see in that so this first I remember we have this temperature of the pump this is our critical point I want to see the temperature so in my app I want to see one data point maybe as a graph in my app then we have more than one pump in our pump system maybe I want to see all the pumps in my plant and as I am a big company and have a lot of breweries worldwide I want to see the overview of all my different breweries so three requirements one data point all the pumps and at the end or my breweries and we both sit together not in the bar in this case and drawed it and said okay this could look like our app this could the ETL app for us so we have here the plans and where the plants are a little map maybe we have all the pumps seen and we see one data point where we see our critical data in this case the temperature of the pump so if we can realize this it seems that we can scale our business absolutely and now let's start to program exactly this idea so you know the use case you know how the app should look like and now let's do it okay so hands-on first of all of course we have to do the coding of the app so that would take some time so that's the reason why I have prepared something and according to your to your craft so what you're using here is a standard standard IDE or is it's only an environment what you have to do with - fear or what is good question answer but this is basically a standard editor this one is a little bit comfortable but you could also use even an integrated development environment like eclipse or Microsoft Visual Studio or you can use any kind of editor like notepad plus plus or something like this of course always in combination with the relevant build tools like maven Gradle and all the other job are stuff for example to sum it up I can't use what I'm already familiar with I don't have to learn something you only to program in have in mind so you can't use what I use the last ten years exactly we directed to change the developers habits so they know best which tools they want to use in order to program their apps and Manor okay so this is the first step make it easy use what you already know don't learn something you okay so what we see here is is the code basically and of course locally on my PC I did that coding and the next step I have to build the episode that I get by the way you your programming in Java right this is Java yes but you can also use something else like note yes or angular or Python in India really any other yeah so the standard programming languages we don't want to somebody learning something new they should use what they can what they are already familiar with okay next step would be we needed to build the app and just in order to save time I skip that also I have prepared it and that means we have the app available on my local PC and the next step is bringing this local app to the cloud we're talking mine sphere we are talking cloud business so the app has to run in the cloud you see always the steps here on the little slide building the app locally push it to the cloud is next step and what you see here is just a command line interface and we have installed Cloud Foundry so Cloud Foundry comes with the developer offering of mainz view and Cloud Foundry is a bunch of functions that helps you to take your locally developed app and puts it into the cloud though it it brings the right runtime environments like the Java Runtime environment puts it into a container and brings it into a certain cloud resource and the only thing you have to do is one command which is CF push C F stands for Cloud Foundry and now it's running right now it's doing everything it's preparing everything to you don't have to do anything you're waiting until here's on the screen app is started or app is running yeah so takes just some seconds but the main message is you can focus on the implementation you can focus on the coding you can focus on the business logic you have to implement implemented and the rest is done by Cloud Foundry and then you have it in the cloud and by the way everything what you see here is life we are live on the system we are live doing this we are coding the only worry is not real-time in the code but you see here there's not a power board okay so now it has finished and what we can see here is the route so what is the route as we said Cloud Foundry puts your app in the cloud of course somehow you need to address this application this is like a link on what I type it in my browser it's like an address yes you can type in the browser and then you will get to the app but here I see running it's already running so this is the Abbott sugar as I said Cloud Foundry does the job can I test it ok let's go to the contestant let's go here to the launchpad you remember the launchpad is always the entry point for mine sphere where you have to send the tools and here's it's my fault I put it into the cloud it is not your fault it is not my fault it is a feature and it is really so we are taking care about all the roles and this is important for us part of the security concept to only give the rights to things we want to have and give rights to the app for example in this case we have to create right to register right in - here in this case this is the step setup app with the developer cockpit here is a standard tool called develop cockpit you click on this so you now we see here creating a new application as we save a little bit time we already created here but this is not a rocket science you see you have to only give it a name your a giving a nice picture here at Pier class you can describe little what you have you tell what is the version of it so we already tried it sometimes so four times easy I it took me some four tries to get it running somehow and here you see the URL there out what we saw in cloud found it so you copy this here in and then you click on save and then normally everybody would say now we see the app no now you give the app rights so in this case you are still in the developer cockpit you go to rules and scopes and in this case we have here the brewery app and you give this app right so for example you want to read data from the pump you tell now - field this app is allowed to read data from the pump this app is allowed to delete data in the database this app is allowed to change data or something like this it's like that sounded a little bit complex but this same procedure is when you download an app from the internet one of the first things you have to do after downloading you have to set up the rights the app or the resources the app is allowed to use for example the camera or your contacts or anything else and the same is what we did here I remember last time I did something it asked me I'm allowed to use the camera this is the same is exactly the same so now you see we did it already we have already allocated here the rights for the app and now now we should see it now we should see the Prairie no-till it's not a mistake still is a feature because now imagine the app is already there but you are not allowed to see because you are let's say one of 20 people in this company but only one or two are allowed to see the app so you give them now in the user management some specific person their right to see the app for example should I give you their rights I would love to see it okay so I give you the rights on the app so we go to the user management here is Inco Hecker that's me yeah I know we go to edit and here you with looking for the brewery app brewery app here's the brewery app I click on the program I give you the rights I put it on the other side you see here now the pro yet so the next time when we now open the launchpad we should see there hopefully works let's see haha yes here step this is the app what we program what we pushed what we now see here on mine sphere so we give it the ride you have the ride and what are you doing now with the testing that I want to see I want to see the beer so let's go in here there brewery up I open the brewery up and now we have to log in first sometimes you have to reload in but then it opens app and here we have to have we have the map and bingo there's something missing I'm still waiting for this temperature data where are the temperature data okay of course I have prepared the map and all the breweries however there seems to be an error when getting the data and unfortunately we have to go back to the code and have to find out whether mistake was we have only ten minutes left so hopefully you'll find the mistake I have to hurry up and here we have the section where it's about the time series data I have to go now to the developer documentation which is publicly available so everything what you will need for programming if you have a question if you want to know how it works if you look for some code snippets there's a documentation available for everybody of you you don't have to be customer you don't have to be immensely user you can go to developer thought - red dot IO and you will see all the documentation what a developer needs to program if you need information about the fleet manager and other tools it's documentation at mine Faro so it's really easy remember so now so now I'm having a look exactly at the time series API there's obviously a mistake and what I have to enter here is the entity and the property set name ego one question get means reading a type-0 get the time series data so we want to see all the data of the pump you have connected so I have to get this data okay what you see behind is what you have to type in in your course yes of course this is a function and you have to enter exactly those parameters and in order to get the correct data what is the entity entity is the pub right entity is the acid is probably the pump system okay and probably that name is than the pump it's okay good okay so having a look at this see here you find the the entity ID and this is the aspect of the pump in sense as we said but there's some end point programmed here which is latest yeah you program too much yeah you can't believe it I just do so unfortunately in order to fix this issue I have to build the app this time so I'm going to do some building means in this case we have to create out of this code an executable file so we do this now so while this is working and it takes about 40 seconds or something like this I can't tell you normally you imagine we are doing this step here the developing and building the app locally at the moment later we will or the next steps we will push it to the cloud but normally what we do the first time we did this registration the developer cockpit is it working no doesn't work oh now that we see okay I'm sorry I have to restart it you see we are life it doesn't works off hey the brewery hmm normally now we will see if it's working so you see it's real life we are not no I'm sorry no it's working so typing mistake so this happens all the time and not all the time did not happen but what do you see here now we are building the app now you will see that in a second it's runs so 10% 20% 40% some villages we will push it later but we don't have to do this is the beauty now we don't have to do all this registration again as we did it one time and you'll have to do it only one time now we can make and shortcut now we are building the app we're pushing it and then we don't have to purchase it again we don't have to put this app again with rights we don't have to give it to a specific user we already did this we have already our little button on our launch pad we only have to push it and then we can test it again so now you see 29% so now we can already switch the window so we'll finalize in second like soon every step we already did the next step is the pushing again from the local system to mine sphere you see again and of course as I have fixed the problem locally now we again have to bring the app which I fixed luckily to the cloud and then you should see it in your launch pad and then it should work yeah let's see it's time last time it worked at it see if it's this then working out successfully destroyed container then two steps more right yeah starting the app in mainz we're in the take some seconds and again finished so yen's I will try now it's it's up to you how many minutes we have a second okay the beer is still here and now let's click on the class yeah see it it's exactly how you like a cool let's see what you have different breweries we have here in instead of ROI we have here crows moths private brewery we have here close we can zoom here in in our map we have different kind of pumps and on the right side this is important now on the right side we have here our data points as you remember oh it happened yeah it happened here or a bad stuff the pump goes hot you see this here the pump goes hard goes hard it gets a lot of temperature this is what we don't want to have and we have here also no beer pumped at the moment so now I already have a good idea for the next version maybe we can create an alarm sending me an SMS when this happens is of course a logical next step and I will first see it for the next presentation but yes of course we would automate notifications like this because you are not the person that wants us there all the time on the monitor and and see if the pump is running absolutely so now we succeeded the test so we are finalized the development part so only to recap or to see again what we did we developed the app locally we pushed it to the cloud we created the app in mind sphere we did also the rights for the app we were just at the app and then we gave it to a specific user in this case it was you we tested them and now we are ready the next steps after this what we did after the push develop push and test what are the next steps okay so we focus on the first three steps that we can see here which enables you to come from an idea over the development push it to the cloud the testing and so on but of course now you want to commercialize the app somehow and in order to do so you would transfer the app to an operator and as an operator you could bring the app to this store where any customer who could make use of it could buy it and use it but as we focus on the first three steps of course we have a lot of colleagues who are really keen on explaining you the next three steps how to commercialize an app and you can find the colleagues and their minds Vilanch so if you're now interesting I only can tell join us and create your own apps online sphere there are a lot of colleagues here in the mind fellows helping you on every step to create your use cases from the connectivity part of the app development we have a lot of partners up there they can help you they can create together with you apps and all this what you need to take out the data from your plan and make some value out of it and when you see here on the booths there are a lot of cubes one cube is here behind one cube is here everywhere you see a cube you can go there and say please show me the mind show me the app on mind sphere because every cube means here's something running on mine sphere on a real machine in the most case the machine is next to the cube where you see the data flowing and the people standing there they know about the use case they know about the app they can show you the app this is what we from Siemens side did with mine sphere and everything else we encourage everybody to it and visit us and join us on this journey in the digitalization thank you very much all right a bit kind of applause to you guys really really impressive so thank you very much for showing that it's not that complicated and hard to do something I mean programming an app is one way deploying it is another one and you just in 25 minutes you gave us an idea of that you don't need to be the super geek to do that really impressive how long have you guys been working on kind of making it that easy was that a complicated thing yeah of course it took us some time in order to give all the tools to the developers and like the Cloud Foundry stuff I explained so this really eases the whole process for you in order to speed up the whole implementation and bring the solutions to your custom solution and customer that's a good point for me because we do have use cases from real customers up there in the minds fear launch as well would you like to talk about that which customers are these and what do we show there so we have a lot of targets there they have customers and bringing this use case and so the best way is to talk to them and every of these partners have several partners several use customers and use cases on their part of the booth okay perfect you
Info
Channel: Siemens
Views: 29,311
Rating: undefined out of 5
Keywords: MindSphere, Data, App, Value, Development, Jens Kautler, Ingo Hecker, Cloud Foundry, App Lifecycle, App Store, MindApp, MindAccess Developer Plan, MindAccess Operator Plan, MindAccess DevOps Plan, MindAccess IoT Value Plan, IoT, IIoT
Id: 36jc2UzEf2o
Channel Id: undefined
Length: 25min 50sec (1550 seconds)
Published: Thu Apr 26 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.