├── README.md
├── icons
├── clear.svg
├── cloud.svg
├── haze.svg
├── rain.svg
├── snow.svg
└── storm.svg
├── index.html
├── script.js
└── style.css
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Weather App in JavaScript
3 |
4 | In this app, you can get the weather details of a particular city by entering the city name. You can also get your current location weather details by clicking on the "Get Device Location" button. You'll get many weather details including temperature in celsius, weather conditions, location, feels like, and humidity.
5 |
6 | 
7 |
8 | [View Live Demo](https://codingnepalweb.com/demos/weather-app-in-javascript/)
9 |
10 | [Watch it on YouTube](https://youtu.be/c1r-NqYkFPc)
11 |
12 | ## Usage
13 |
14 | Paste your API key to the appid parameter of the given URLs. These URLs are in line.no 27 & 33 of script.js file. You can get an API key from [here](https://openweathermap.org/api) for free and view my [blog](https://www.codingnepalweb.com/build-weather-app-html-javascript/) for detailed information.
15 |
16 | ```javascript
17 | api = `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=metric&appid=your_api_key`;
18 | ```
19 | ```javascript
20 | api = `https://api.openweathermap.org/data/2.5/weather?lat=${latitude}&lon=${longitude}&units=metric&appid=your_api_key`;
21 | ```
22 |
23 | ## Related
24 |
25 | Here are some related projects
26 |
27 | [Get User Location in JavaScript](https://www.youtube.com/watch?v=J-lUOFXxG_0)
28 |
29 | [Currency Converter in JavaScript](https://www.youtube.com/watch?v=UY7F37KHyI8)
30 |
31 | [Create Todo List App in JavaScript](https://www.youtube.com/watch?v=2QIMUBilooc)
32 |
33 | ## Feedback
34 |
35 | If you have any feedback, please reach out to me at contact@codingnepalweb.com
36 |
--------------------------------------------------------------------------------
/icons/clear.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
106 |
--------------------------------------------------------------------------------
/icons/cloud.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/icons/haze.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/icons/rain.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/icons/snow.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/icons/storm.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |