-
Changing the temperature measuremnt radio button to a slider
-
Converting Wind Direction from degrees to SSE, N, etc.
-
Dynamically changing backgrounds corresponding to weather data and time of day.
{
"coord": {"lon": -122.08,"lat": 37.39},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "clear sky",
"icon": "01d"
}
],
"base": "stations",
"main": {
"temp": 282.55,
"feels_like": 281.86,
"temp_min": 280.37,
"temp_max": 284.26,
"pressure": 1023,
"humidity": 100
},
.....
}
-
React js - https://react.dev/
-
Create React App https://github.com/facebook/create-react-app
-
Create React App's built in environment variables to protect the API from being loaded to this respository.
-
Axios js for the API call.- https://github.com/axios/axios
-
Material-UI for styling. -https://material-ui.com/
After forking and cloning the master branch:
- Run 'npm install' in your command line, to install the dependencies.
- In CurrentWeather.js, paste your API key between the single quotes in the const api_key.
- Head over to Open Weather Map and get started. Make sure the API call url hasn't changed. If it has, change the const weather_url accordingly.
API-https://openweathermap.org/guide
They have an excellent free plan. Just make an account, subscribe to a data set, and generate your api key. I recommend starting with Current Weather data set - https://openweathermap.org/current. Documentations is on that page.