- Head to Open Weather to Sign up
- Head here to find your api-key.
- Download this json file and search you city name in it to find your City ID.
- Open Weather.js
- Head to line with code:
fetch('https://api.openweathermap.org/data/2.5/weather?id=1261481&appid=d19b217fed0cd976b0612b2f0c323503')
- Edit the below command, by adding your api-key and city-id and replace above line from the code with it.
fetch('https://api.openweathermap.org/data/2.5/weather?id= CITY-ID &appid= API-KEY ')