Skip to content

nishant-rajput/my-city-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published