Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 710 Bytes

README.md

File metadata and controls

14 lines (13 loc) · 710 Bytes

Steps To edit, to display your city weather:

  1. Head to Open Weather to Sign up
  2. Head here to find your api-key.
  3. Download this json file and search you city name in it to find your City ID.
  4. Open Weather.js
  5. Head to line with code:
fetch('https://api.openweathermap.org/data/2.5/weather?id=1261481&appid=d19b217fed0cd976b0612b2f0c323503')
  1. 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 ')