nishant-rajput / my-city-weather

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ')

About


Languages

Language:JavaScript 50.5%Language:CSS 31.6%Language:HTML 17.9%