Humidity and Temperature Dashboard #sensor #raspberry pi #elastic search #kibana #grafana

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone this is yamacam today uh i will so i will make a dashboard about the humidity humidity and temperature dashboard using raspberry pi a very small computer using arm cpu and i will gather the data using elasticsearch and the visualize is by the kibana kibana and also graffana i will use both applications anyway actually uh two or three years ago maybe maybe three or four at that time my baby was sick i mean almost every day blue and got cold so i go i met the doctor and he said the humidity and temperature is most important so i decided i will monitor the human humanity and temperature so this is raspberry pi and my colleague the song dokjo mr joe seong dog give it to me and this is the sensor it checked the humidity and temperature and then i send it to the my company messenger and also make a dashboard to show to my wife anyway i forgot almost everything and someone told me hey am i king please do please and show me so i decided to do it again actually for two or three years uh my programming skill was already better so this time it's more short and more simple okay this is topologies this is my raspberry 2 or old one but with one gig of memory and a gig storage and usb almost everything so each okay this is a library pi and the sensor is connected then it reads the data humidity and temperature it sends data to the database called elasticsearch using json about time humid and temp and then finally a kibana that draws the cloud do you know about the raspberry pi i will show you this one actually raspberry pi is very small computer developed for the for the education in the in uk so anyway it's very cheap it's about 35 or 40 or anyway it's cheap but each computer so using keyboard and with monitor and cable then nato connectivity each computer here here is price 35 55 75 oh but i think 35 is okay for just to put a small server but you pay money so memory the larger is better always and at the official site you can get out the os i think this this one this one comes with desktop but this is very light so maybe it will just without the desktop but except that the ubuntu and other the linux linux is over there uh i forgot the name but my raspberry was used for the music with the external deck i enjoyed the music mp3 internal led oh but blabla but i forget the name but there is a special ways for the customize for the music anyway let's get back oh raspberry pi has the gpio it's a general proposed input output that's right but i forget about that anyway we can connect these ones signal the pros and ground and you see it has a signal [Music] and the power and the ground if you search the web there are plenty informations anyway i can we can connect these sensors and this is first one first first thing uh when you put the raspberry pi there the ssh is not enabled so with this command you can enable the ssh secure shell for remote connect and then you have to install these ones using pip or kit this is for the sensor reading so it must do it at this time i use this command pp3 also i tried to get both work just choose one and then do it please and this is sensor test code as you see model import and read the data and print it very simple very very simple and it work i will show you [Music] okay and new one password this is the code but this is like a loop it read the value and print it almost every one or two seconds like that anyway it work very simple code and we can you can install the elasticsearch module which is used at python which is command pav 3 installation and very simple when if you want to use it just import then this is a kind of object and several ip address and this is json type the data format categories called ck1234 price testos and timestamp and then finally you can unload you can insert data to the ls search so if if we mix these ones the sensor module and ls search modules this is finalized data the code read the humidity and temperature this let's search the address and put this is data what i why i want to add humanity and temperature and time stamp is here i just used keyword time and this ones you can add time and finally it insert this is the what i called these days but this is the code uh three or four years ago i did it uh i use a code and for the time oh i it's a really really uh stupid way but at the time uh to make the code i spent a lot of times anyway i love both code and let's do it if i run the code the code is just wrong oh my god the code doesn't work because right now the servers are ready i will do it later and and to get insert to insert it every every minute chrome tab i use chrome tab this one every minute the this code is the run and uploaded at the uh the last search code the index is very important actually index is uh it's a database the name and at the kibana and also graphana that using index we draw the graph so uh index is very very important okay so it's time to search to is install let's search in kibana the both one is open source and we can install on centos this is centos 7 just insta installed and i give i enable the nik little interface card and i disable the firewall okay and ip is 146. so put okay first i'll install java [Music] if you um the last search no so we have to make the ripple file okay keep for the kibana because these ones if you search internet there are plenty informations over there just choose this one and for the less search add these ones uh at this time i will not install the the load log stash so don't do it okay let's install let's search [Music] too big [Music] and let's do it [Music] [Applause] [Music] [Applause] [Music] okay down and let's run both let's search and kibana all right let's check the status and state us all right the same for kibana all right both work and it's time to config this one first let's search and if you see that if you and 50 5 i go all right then 55 network is from anywhere right and we have to restart and this is for the keyboard time in [Music] kibana um so 40 is 56 001 and seventh line server is and 28th this is for the let's search even though it's the same host we have to do it and same we have to restart kibana all right application is ready and i will shortly explain about ls search uh let's search is a kind of database actually but uh it it uses the api to insert delete or do anything by the api it's different and it's free and the words are different the at the oracle or mysql they say database for each index and each table is a type and each row is a document so actually a document is a data like a small unit like that and this is the url and host port and index so this time in this case we use pip 9 is index index is very important because index is used at the kibana and the grafana all right and if you search the internet there are plenty information about the research because it uses api so these like code is like a cli so you can query insert delete update everything using the call [Music] okay let's see data is coming or not as you see index pip9 is is here and data is very small just two right now but it will be better and bigger more and more as time goes by and if the if you like to comment we can get every data this is index the database name pip9 oh my god the ip address is 146. all right as you see data is they we call it the data its timestamp is here so and there are humid and temperature is over there so the data is coming from raspberry pi and it's uh saved at the elec search using kibana let's draw let's visualize it not automatically actually we didn't give config so if you just change the giveaway address of the search at the cuban configuration it's connected automatically okay it's time to connect and draw right this one's put is 5601 and http okay work and go to the measurement and index panel index is most important key because we have to insert here and and time create then you will understand the data let you visualize it then line pip9 choose it and y index it average then filter humidity then x each histogram if you play this button we can draw the graph then we can save h then we can visualize temperature each area let's use the area pfp9 and it's averaged and it's temp and x is histogram um not pretty but it's okay then let's save ht we can make a dashboard create dashboard and add http all right we can save it new dashboard then here or to replace and we can give given time range if if you use it we can draw the humanity and temp temperature and the time based but kibana is not pretty so my colleague said to me hey use kibana it's better it's more beautiful so let's install uh keep on grab final okay grab fun now if we go to graphara webpage we can download it so download for the linux and centos copy it down download it oh my god as you know there is nume we have to install double get all right let's do it again what's wrong all right okay we installed and without any configuration we can connect it oh my god we have to start and enable all right let's connect abdomen abdomen then we can go here database source then we can add elastic search same and then index is pip 9 and time field is time time let's save and test okay let's back we can add a more beautiful graph panel and here just click average and humidity then we can use tape on the heat map or graph or stat or gauge i prefer heat map it's more beautiful humidity all right now i'll add temperature average and temperature then this time i will use graph then i will oh what's wrong i will add then i will make humidity and with the visualization is gauge so okay it's cage or which is better this is graphata and [Music] this is kibana i prefer grafana it's pretty pretty prettier than the kibana all right so what what we do today is draw the temperature and humid graph using the raspberry pi and sensor and the json electric kibana and graphana it's very like a very simple and um simple example but if you change the sensor and if you like i deploy many luxury pi you can get more data at the field at the factory in the office at home and you can visualize and you can have more insight about your environment or machine or something [Music] okay this is a mccann see you next time [Music] so you
Info
Channel: 야매 김선생 Yame Kim
Views: 348
Rating: 5 out of 5
Keywords: raspberry, elasticsearch, kibana, humid, temperature
Id: 6O63sqU1df0
Channel Id: undefined
Length: 29min 30sec (1770 seconds)
Published: Thu Jan 14 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.