Access current weather data from APIs for any location on Earth including over 200,000 cities!
-
Search cities by its name
-
Units of measurement:
standard
,metric
andimperial
units are available -
Current local time and date
-
Temperatures and humidity
-
Wind speed and direction
-
Sunrise and sunset times
-
git clone https://github.com/phucprime/weather.git
-
cd weather
-
yarn install
-
Log-in to openweathermap.com
-
Create an API key
-
cp .env.example .env.local
-
Paste API key for
OPENWEATHER_API_KEY
variable
It will be used in
https://api.openweathermap.org/data/2.5/weather?q={cityName}&appid={API_KEY}
If you do not see some of the parameters in your API response it means that these weather phenomena are just not happened for the time of measurement for the city or location chosen. Only really measured or calculated data is displayed in API response.
yarn run dev
Any feature requests and pull requests are welcome!
APIs via Open Weather Map