How To Make Weather App Using JavaScript Step By Step Explained

Поделиться
HTML-код
  • Опубликовано: 9 мар 2023
  • Learn How To Make Weather App Using JavaScript Step By Step Explained | Create Weather App In HTML CSS and JavaScript
    #JavaScript #JavaScriptProjects
    👉 Download 30 JavaScript projects Source Code (Including Weather App):
    greatstack.dev/go/30-js-projects
    ❤️ SUBSCRIBE: goo.gl/tTFmPb
    In this video we will learn to create a Weather App for Website using HTML CSS and JavaScript. We will get the current weather data from Fess API fey from OpenWeatherMap and display the weather information like Temperature, Weather condition, Humidity and Wind Speed according to the city on our website or app.
    We will display the weather info on website from Free API using JavaScript.
    In this weather app we will add one search box where user can enter the city name and get the weather information of the particular city.
    Download Images: drive.google.com/file/d/1RgSe...
    -----------------------------------------
    Suggested Course:
    ❤️ Complete website Using HTML and CSS
    ✔️ 8 Complete website step by step
    ✔️ Source Code Download
    ✔️ 76 Lectures, 12 Hours Video
    ✔️ Course Completion certificate
    👉 easytutorialspro.com/go/course/
    -------------------------------------
    Recommended Videos:
    Learn Complete HTML and CSS from basics:
    ► • HTML And CSS Tutorial ...
    Make A Complete Website for college using HTML & CSS:
    ► • How To Make A College ...
    How to make a Business website step by step:
    ► • How To Make Website Us...
    How to make personal resume website step by step:
    ► • How To Make A Website ...
    How to make fitness website design using HTML CSS:
    ► • How To Make A Website ...
    How to make an Ecommerce Website Design:
    ► • How To Make eCommerce ...
    How to make a Job Portal website design with HTML & CSS:
    ► • How To Make Website Us...
    How to make travel website design with HTML CSS Bootstrap:
    ► • How To Make A Website ...
    -------------------------------------
    Affordable web hosting (coupon- EASYTUTORIALS)
    👉 easytutorialspro.com/hosting/
    My recommended tools and tutorials
    👉 easytutorialspro.com/
    -------------------------------------
    ◼️ Source code link is shared in community post for all my coding videos exclusively for channel members (only channel members can see)
    Join Channel Membership:
    ► / @greatstackdev
    -------------------------------------
    Images Credit:
    www.freepik.com/
    -------------------------------------
    Connect with me:
    👉 linktr.ee/iamavinashkr

Комментарии • 878

  • @isamsvideoediting4572
    @isamsvideoediting4572 Год назад +20

    Avinash, You are a real hero...... You make coding very easy for us to learn.

  • @lakshmiprasannanadendla5145
    @lakshmiprasannanadendla5145 Год назад +66

    Clear cut and straight forward to the content. Best yet easy lecture Thanks a lot 🤗🤗🤗

  • @user-ns1bx5nl8p
    @user-ns1bx5nl8p 5 месяцев назад +2

    bro i have been watching your tutorials since you were easytutorials and i have learnt stuff like digital clock, calculator responsive login/signup page. Thank you for this

  • @gomeztorricellygomez7808
    @gomeztorricellygomez7808 4 месяца назад +71

    I just finished this one and I'll finish all 30 projects....you are a good teacher,god bless you

    • @user-gu2sh6ty7x
      @user-gu2sh6ty7x 3 месяца назад

      Not able to fetch the temp of Himachal pardesh. Can you please help me

    • @mehwishjabeen526
      @mehwishjabeen526 2 месяца назад +1

      how much time it took to create the API?

    • @prathmeshkirve
      @prathmeshkirve Месяц назад

      usne city leha hai state nahi
      @@user-gu2sh6ty7x

    • @princeshukraan3099
      @princeshukraan3099 Месяц назад

      Bro,please help me out

    • @Sky_Carly
      @Sky_Carly 14 дней назад +3

      How long it took you to active the API ?? Can you please tell ?

  • @maheshsale
    @maheshsale 7 месяцев назад +31

    Just finished building this app. It was really an awesome experience for a beginner. Everything is explained step by step, systematically. Thank you for your efforts.

    • @Chandan-Singh10
      @Chandan-Singh10 7 месяцев назад

      Any error

    • @nazamwasi3357
      @nazamwasi3357 6 месяцев назад +3

      Bro i got error ,not getting details of city time stamp 22:32

    • @panktichaudhari
      @panktichaudhari 6 месяцев назад

      Hey are you getting temperature in Celsius? Because I'm not getting it after applying units=metric

    • @behappy1666
      @behappy1666 5 месяцев назад +2

      Bro weather images are not updating...

    • @RudraShejwal-jv2bf
      @RudraShejwal-jv2bf 4 месяца назад

      ​@@nazamwasi3357 same

  • @guy-was-taken
    @guy-was-taken 7 месяцев назад +2

    Thanks a lot you actually started my web dev journey!!!

  • @sirnicholas6177
    @sirnicholas6177 2 месяца назад +2

    You are my best youtuber now. I developed my first web app with your tutorial

  • @quinojuan2
    @quinojuan2 6 месяцев назад +20

    "That's it... practice, practice, practice." Thanks a lot. I'm planning view all your videos.

    • @VaibhavgiriGoswami-wx8ql
      @VaibhavgiriGoswami-wx8ql 3 месяца назад

      You sloved addEventListener problem I not able to click and change city information

  • @joeokat
    @joeokat Год назад +2

    Thanks, finally something i can relate, understand and practice for my vue projects.

  • @kevinvikan8115
    @kevinvikan8115 Год назад +248

    Great video, learning by practicing is so much better. Even if all you do is copying a few lines of code that you see in each lesson. It's much more effective than just taking notes.
    I know this because I tried everything and the only way I could learn (and retain what I learned) was when I started doing that.
    Once a friend suggested me a few books with interactive content, that made me practice what I learned at each chapter.
    Edit: For those asking about the books I mentioned, these are the best ones:
    "Javascript In Less than 50 Pages"
    "Head First Javascript Programming"
    If you are into learning Python, I love "Smarter Way to Learn Python".

    • @Qasimyousaf-zw5kw
      @Qasimyousaf-zw5kw 10 месяцев назад +3

      best

    • @maheshwarimandigam5464
      @maheshwarimandigam5464 7 месяцев назад +1

      "Could you please clarify where JavaScript is utilized in the project? Although it was mentioned that we would be building it with the help of JavaScript, it doesn't appear to have been incorporated

    • @AmanSingh-nf1kn
      @AmanSingh-nf1kn 7 месяцев назад +3

      i was literally searching for this comment , now i'm confident that i can learn through projects rather than watching tutorials only

    • @littlecurrybread
      @littlecurrybread 6 месяцев назад +2

      @@AmanSingh-nf1kn also try to add at least one feature or one thing that is just from you, thats helping me a lot. It tests my knowledge

    • @quinojuan2
      @quinojuan2 6 месяцев назад +1

      somebody has this book ""Javascript In Less than 50 Pages"" in PDF?

  • @clydeforland5944
    @clydeforland5944 7 месяцев назад +2

    Just finished this! Thank youu so much for great tutorials!

  • @axitpoojara
    @axitpoojara 6 месяцев назад +2

    its just amazing , very proper explanation also better than some paid courses . thanks a lot

  • @antonioskokiantonis7051
    @antonioskokiantonis7051 9 месяцев назад +1

    Really enjoy this video. Using API's is awesome, hope you'll make more projects based on this approach!

  • @chukwuemekandiukwu1220
    @chukwuemekandiukwu1220 Месяц назад +2

    You are the best teacher ever in the world. You simplify things to the ground.

  • @Krrishgames007
    @Krrishgames007 Месяц назад +4

    00:02 Create a weather app using HTML, CSS, and JavaScript.
    02:40 Automated webpage refresh after code changes
    08:37 Creating weather app using JavaScript
    12:07 Styling the weather details with CSS for better visibility.
    18:13 Setting up API key and URL for weather app
    21:48 How to display weather information in the browser console using JavaScript
    27:41 Creating a weather app using JavaScript and fetching the city information from an API.
    30:39 Updating weather information and images based on city input.
    36:20 Adding error message for invalid city name input
    39:05 Handling invalid city names and displaying error messages

  • @babarshabbir2554
    @babarshabbir2554 14 дней назад +1

    "Excellent tutorial! Clearly explained, easy to follow. Made creating a weather app with JavaScript a breeze."

  • @user-rn6yz7xd7v
    @user-rn6yz7xd7v 3 месяца назад

    Thank you very much. You explain so well and clearly. God bless you abundantly.

  • @abdullahbinmamun3803
    @abdullahbinmamun3803 6 месяцев назад

    Thanks a lot. You describe things very nicely. Appreciate your work.

  • @panidacharusathit8619
    @panidacharusathit8619 5 месяцев назад

    Fantastic tutorial and easy to follow along. Thank you so much.

  • @Daniel-fj9ux
    @Daniel-fj9ux 5 месяцев назад +4

    This video was so useful to me for practicing as a beginner, by doing my own version of this project i could learn and improve a lot. Thank you sir!

    • @alimkdm1543
      @alimkdm1543 4 месяца назад +1

      if you have made it can you give me the source code

  • @rushitjhaveri-lu2bn
    @rushitjhaveri-lu2bn 6 месяцев назад

    Great learning experience. Thank you for this video. Highly appreciate your efforts.

  • @Applecitylightkiwi
    @Applecitylightkiwi 7 месяцев назад +1

    tried this without watching only checked the api, really like the result of the video, but its way more fun to try it first

  • @angiethequeen2871
    @angiethequeen2871 9 месяцев назад

    This is amazing! I learned so much doing this! Thank you!!

  • @gmaiwun
    @gmaiwun 9 месяцев назад

    Fantastic exercise for a beginner. Thank you

  • @andihoxhaj3527
    @andihoxhaj3527 Год назад +2

    This was PERFECT , thank you for this it worked perfectly and it was easy to follow you up

    • @Zaynahazlanworld
      @Zaynahazlanworld 15 дней назад

      how does image comes? by default or it should b save in our pc?

  • @user-pd9sm7lf5l
    @user-pd9sm7lf5l 2 месяца назад +4

    Just finished building this app. It was really good experience for a beginner. Everything is explained step by step, systematically. Thank you

  • @konstantinreut2577
    @konstantinreut2577 6 месяцев назад

    Thank you so much for the lesson! It's great!

  • @Rameshtalkies7791
    @Rameshtalkies7791 10 месяцев назад +7

    A nice explanation and it looks like clear and very easy lecture for students a lot ..Really very thanks to you Avinash Sir.. I love the Way of Explanation

    • @maheshwarimandigam5464
      @maheshwarimandigam5464 7 месяцев назад

      "Could you please clarify where JavaScript is utilized in the project? Although it was mentioned that we would be building it with the help of JavaScript, it doesn't appear to have been incorporated

  • @chandrabhushansingh6886
    @chandrabhushansingh6886 8 месяцев назад +3

    All the projects are life savior for beginners, thank you 3000❣️

    • @Nitishyadavlog
      @Nitishyadavlog 4 месяца назад

      Hello. Can u understand me to how can I acess sir's pdf in which all images are there

    • @Manas361
      @Manas361 3 месяца назад

      @@Nitishyadavlog There is a given link of google drive .. from where you can download images

  • @meenupatel1256
    @meenupatel1256 4 месяца назад +1

    Amazing Project with straight forward explanation.

  • @mjkoo5320
    @mjkoo5320 Год назад

    cannot ask more. amazing and perfect!!!!

  • @NaveenReddy-vm3ps
    @NaveenReddy-vm3ps 6 месяцев назад

    Amazingly simple, simply amazing.

  • @Wifg123
    @Wifg123 8 месяцев назад +8

    Hey in part 34:00 when yall are adding the weather images you can add them like this ->
    if (data.weather[0].main != null) {
    weatherIcon.src = "images/" + data.weather[0].main + ".png";
    }

  • @lavanyasaibollamreddi9959
    @lavanyasaibollamreddi9959 21 час назад

    Thank you, Avinash! Your explanation thoroughly helped me understand the concepts covered here.

  • @babarshabbir2554
    @babarshabbir2554 14 дней назад

    "Excellent, easy-to-follow guide for creating a weather app with JavaScript! Highly recommend."

  • @babarshabbir2554
    @babarshabbir2554 8 дней назад

    "Excellent, easy-to-follow tutorial on creating a weather app with JavaScript! Highly recommend."

  • @umardarazofficials3529
    @umardarazofficials3529 9 месяцев назад

    thank you so much for using very simple words and no words to describe

  • @Noobgaminglk
    @Noobgaminglk 3 месяца назад +7

    For anyone getting 401 error in console replace the following code entirely with your current function
    async function checkWeather(){
    const response = await fetch(apiUrl + `&appid=${apiKey}`);
    var data = await response.json();
    console.log(data);
    }
    Ps: The problem with my code is that I used single quotes ( ' ) instead of backticks ( ` ). Hope this solved your problem.

    • @pushpkambo
      @pushpkambo 3 месяца назад

      Thank you, It corrected the errors I was getting.

    • @munchkin._.delights
      @munchkin._.delights 21 день назад

      im getting a fetch error its saying failed to fetch, i checked the URL its working great but I don't know its giving error on console

  • @clarindomarcos3177
    @clarindomarcos3177 Год назад +1

    Bro, u have an excellent didatic! U do shows up this so easily.

  • @aditya_prakash_official07
    @aditya_prakash_official07 Месяц назад +1

    I,ve just finish this project and i,ll definetly finish all the project which is present in playlist😍.

  • @gurvirsinghkhalsa614
    @gurvirsinghkhalsa614 10 месяцев назад +15

    This Tutorial was very amazing .... i have learned many new things from this weather tutorial app like how to use api keys, some interactive javascript functioning etc... IT LOOKS VERY AMAZING WHEN I HAD APPLIED *SHAKE ANIMATION* ON *INVALID CITY NAME* That i have learned from your last tutorial ... Thanks GREAT STACK & TEAM :) Keep It UP

  • @amazingbdcreative9556
    @amazingbdcreative9556 7 месяцев назад +1

    Thanks alot,, great great playlist. It’s helpful for beginner ❤

  • @NeverTooMuchLead
    @NeverTooMuchLead 10 месяцев назад +6

    you dont need all those if statements to change the icon based on condition, you can try this instead:
    let weatherCondition = data.weather[0].main.toLowerCase();
    weatherIcon.src = `images/${weatherCondition}.png`;

  • @LinhNguyen-nh8oq
    @LinhNguyen-nh8oq 6 месяцев назад

    Thanks, great tutorial, I learn about fetch API after this one.

  • @jeanpaulhonorekwitondailiz2141
    @jeanpaulhonorekwitondailiz2141 11 месяцев назад

    Thank you so much .I learn a lot from you.🎉My second app

  • @8x_x8W
    @8x_x8W 5 месяцев назад

    Very great and clear tutorial, thank you!

  • @Creative_skill_kdn
    @Creative_skill_kdn 24 дня назад +1

    Lots of thank you. My app is working now

  • @jluna231
    @jluna231 6 месяцев назад

    It all makes sense now its crazy. I understand everything that is going on.

  • @user-kb3zq9ck2u
    @user-kb3zq9ck2u 6 месяцев назад +1

    Thank you for the video! For me, as a beginner, it is a great way to learn more and develop skills.

    • @ramanismaeel
      @ramanismaeel 5 месяцев назад

      did you get the activation key

  • @tranquilvibes5892
    @tranquilvibes5892 9 месяцев назад +2

    Great video , Thanks
    Wanted to add another variable for time to show moon instead of the sun kindly could you share where you got the pictures so that I could look for ones with moons ,would really appreciate

  • @gurbanaarongulman2505
    @gurbanaarongulman2505 5 месяцев назад

    I absolutely love this man. Keep up the great work ! This is awesome. The way you explain everything along the way makes it 1000 times better!

    • @abhishekmishra3010
      @abhishekmishra3010 5 месяцев назад +1

      is your weather api working ?

    • @gurbanaarongulman2505
      @gurbanaarongulman2505 5 месяцев назад

      @@abhishekmishra3010 Yes ,perfectly well 👍

    • @abhishekmishra3010
      @abhishekmishra3010 5 месяцев назад

      @@gurbanaarongulman2505 bro can you plz share me your api link without putting your api key cuz mine is givng error

    • @harshitalalwani8127
      @harshitalalwani8127 5 месяцев назад

      my search icon isnt working what might be the issue?@@gurbanaarongulman2505

  • @jaiswalsourabh8027
    @jaiswalsourabh8027 9 месяцев назад

    u are truely fabulous sir it was best for me till now thanks a lot god bless u dear.

  • @user-rg7ec9cn7d
    @user-rg7ec9cn7d Месяц назад

    Great job! Precise and to the point.

  • @kirtipriyamvadatangirala5956
    @kirtipriyamvadatangirala5956 11 месяцев назад

    great video with a superb explanation. thank you sir!

  • @hotclasher2278
    @hotclasher2278 13 дней назад +1

    You are an awesome teacher, but when you said Germany is a city, it was too funny.

  • @nyokkongor3517
    @nyokkongor3517 11 месяцев назад +2

    nice project, though i couldn't get some lines of code , everything was perfect, simple language and i like how you approach at a concept

  • @abubakartv186
    @abubakartv186 5 месяцев назад

    very good tutorial we learnt a lot of new things from you thank you for your affectionating work.😀

  • @gulzatkoshbaeva2162
    @gulzatkoshbaeva2162 5 месяцев назад

    Thanks very clear, understandable.

  • @iamishtyaque
    @iamishtyaque Год назад

    Very Helpful video. was very easy to follow. Thanks sir you this kind of video

  • @troiks
    @troiks 5 дней назад

    I really like your chanel and your code along projects. Quick suggestion though, maybe talk about the logic you chose, why you did things a certain way as opposed to another, that would be of immense benefit to those of us who are learning

  • @tenc6491
    @tenc6491 Год назад

    Awesome as always! Thank you!

  • @tthamil
    @tthamil 3 месяца назад

    I liked this weather app taught me in depth, thanks

  • @codeAlongwith
    @codeAlongwith 9 месяцев назад +8

    Very good tutorial. I am wondering how we can set defaults so that it is the users current location and also how to add an error catcher for the async function?

  • @webdevelopment2004
    @webdevelopment2004 8 месяцев назад

    Thank you for this great course😃🥰

  • @jayeshshaha49
    @jayeshshaha49 5 месяцев назад

    Awesome tutorial. Learned so many new things

  • @Verbrecher3000
    @Verbrecher3000 11 месяцев назад

    Thank you very much for this Totorial its help me very much to programm with apis

  • @immensitysquared9615
    @immensitysquared9615 Год назад

    Thank you I was able to complete this tutorial

  • @maxlearningtech3423
    @maxlearningtech3423 5 месяцев назад +1

    Awesome tutorial💯
    Just finished buidling the Weather App
    I learnerd how to use InnerHTML with Javascript and alot of cool concepts.
    Thank you very much sir.💥💫

    • @abhishekmishra3010
      @abhishekmishra3010 5 месяцев назад +2

      @@JGxJAMES i am also getting an error are you also getting error 401 ?

  • @realnatureloveradda1811
    @realnatureloveradda1811 3 месяца назад

    Sir you are great 👍👍, you are boon for students like us

  • @Pgibeh5566
    @Pgibeh5566 6 месяцев назад

    thanks alot after many trials i was able to download the images

  • @MrFake02
    @MrFake02 11 месяцев назад

    Thank your for this wonderful teaching

  • @Mariaefete
    @Mariaefete 7 месяцев назад

    THANK YOU SO MUCH FOR YOU AMAZING JOB ❤

  • @user-wd3sp7oy9l
    @user-wd3sp7oy9l 11 месяцев назад

    Ammazing.
    We need more like this tutorial

  • @abdellatifoutegnit-wl7ge
    @abdellatifoutegnit-wl7ge 18 дней назад

    i learn a lot with you thanks may god bless you
    🤲

  • @rahimibadov2940
    @rahimibadov2940 10 месяцев назад

    perfect project and perfect speaking

  • @Rafaelonyoutube
    @Rafaelonyoutube 8 месяцев назад

    Thank you for your videos, very helpful always

  • @babynegi2931
    @babynegi2931 Год назад +1

    Thanku very much sir you explain it very easily

  • @punkboy4991
    @punkboy4991 11 месяцев назад

    Nicely Done , Helped me refine my Skills

  • @dadasajad8741
    @dadasajad8741 7 месяцев назад

    Thanks for this playlist brother.

  • @asrarahmed177
    @asrarahmed177 5 месяцев назад

    Thank you so much for the content - only a couple suggestions - I am not sure sometimes why you remove something, or add something. For example you said remove console log - but no reasoning given - or you add something without reason. Please give reason it will be very useful.

  • @fola_azeez
    @fola_azeez 8 месяцев назад

    This is amazing. Thank you so much.

  • @lfgraphics
    @lfgraphics Год назад

    thanks sir! it's a great project we want more projects using some API's and some jQuery or some little bit complex projects

  • @dilipkumar_116
    @dilipkumar_116 11 месяцев назад

    a simple and clear tutorial

  • @salehabdullah7316
    @salehabdullah7316 9 месяцев назад

    Thanks for this amazing tutorial can't way to watch the other tutorials.

  • @WARATEL_114_30
    @WARATEL_114_30 7 месяцев назад

    Great job. Thank you.

  • @therivickygaming3831
    @therivickygaming3831 7 месяцев назад

    Thanks for the wonderful explanation and video , and please explain the js with detailed information 😊

  • @yadlly
    @yadlly 5 месяцев назад

    thank you so much this is really helpful.

  • @anishtiwari9643
    @anishtiwari9643 3 месяца назад

    To be honest, I am compelled to write this - This video has been one of the best project videos I have ever seen. You deserve subscription. Keep up the good work...

    • @user-gu2sh6ty7x
      @user-gu2sh6ty7x 3 месяца назад

      Hye , can you please help me. I am not able to fetch the temperature of Himachal pardesh af some of the other district..

  • @ishakumari8477
    @ishakumari8477 8 месяцев назад

    It was a great tutorial. Thank you😊

  • @zillionairedreams1546
    @zillionairedreams1546 4 месяца назад

    Thank you very much for this masterpiece

  • @rahulrajmehra7532
    @rahulrajmehra7532 Год назад +3

    So simple yet very good and excellent explanation thank you!👍

    • @maheshwarimandigam5464
      @maheshwarimandigam5464 7 месяцев назад

      "Could you please clarify where JavaScript is utilized in the project? Although it was mentioned that we would be building it with the help of JavaScript, it doesn't appear to have been incorporated

    • @rahulrajmehra7532
      @rahulrajmehra7532 7 месяцев назад

      @@maheshwarimandigam5464 well it is simple beginners project where we are using javascript just to fetch API data and display that data using getelementbyId or querySelector

    • @rahulrajmehra7532
      @rahulrajmehra7532 7 месяцев назад

      @@maheshwarimandigam5464 are you beginner ?

    • @06-bhaveshrathod40
      @06-bhaveshrathod40 7 месяцев назад

      ​​@@maheshwarimandigam5464bro he did something that we don't no not in javascript but in css too

  • @kaverivenkatesh1753
    @kaverivenkatesh1753 6 месяцев назад

    Great video , great explanation bro, this will help for many people, thanks

  • @uditgupta9163
    @uditgupta9163 Месяц назад

    Thank you so much sir i have learn so much with you.....

  • @user-wk7vb6kg1f
    @user-wk7vb6kg1f 4 месяца назад

    Thank you so much.

  • @nouarchami9007
    @nouarchami9007 5 месяцев назад

    GOOOD VERY GOOOD NIIICE INTERRRESTING BRO THANKS THANKS THANKS A LOT....THANK YOUUUU.....

  • @rameenana
    @rameenana 6 месяцев назад

    Thanks man. This was useful.

  • @AmanYadav-vi4hn
    @AmanYadav-vi4hn 8 месяцев назад +7

    THIS WHOLE PLAYLIST IS A GIFT FOR FRESSHERS LIKE ME WHO WANTS TO LEARN SOMETHING NEW

  • @strugglingstudent3887
    @strugglingstudent3887 3 месяца назад

    Nice I done this project love you brother

  • @reemkhan3524
    @reemkhan3524 Месяц назад

    Thanks you everything worked out verywell

  • @mmhoq8828
    @mmhoq8828 7 месяцев назад +2

    সত্যিই খুবই চমৎকার একটি শিক্ষনীয় ভিডিও। বোঝানোর ক্ষমতা অসাধারণ-A very nice educational video indeed. The power of persuasion is extraordinary.