This is a simple weather app that displays the current weather conditions based on the user's location or a selected city. The app uses the OpenWeatherMap API to fetch weather data.
- Display the current temperature, weather description, and location.
- Toggle between Celsius and Fahrenheit for temperature units.
- Allow the user to search for weather conditions in a specific city.
- Display an icon representing the current weather condition.
- Open the
index.html
file in a web browser. - Allow the browser to access your location if you want to see the weather based on your current location.
- Enter a city name in the input field and click the "Get Weather" button to see the weather conditions for that city.
- Click the "Current Location Weather" button to see the weather conditions based on your current location.
- Click on the temperature value to toggle between Celsius and Fahrenheit.
- Skycons: A lightweight JavaScript library for displaying weather icons.
- Font Awesome: A popular icon font library for displaying icons.
- The app uses the OpenWeatherMap API, which requires an API key. You can sign up for a free API key at https://openweathermap.org/api.
- The app uses the Geolocation API to get the user's location. Make sure to allow the browser to access your location if prompted.
- The app uses the Fetch API to make HTTP requests to the OpenWeatherMap API.
- The app uses CSS Flexbox for layout and styling.
- The app uses JavaScript to handle user interactions and update the weather information on the page.
- If you get any error in temparature readings , "refresh the window".