Spaces:
Configuration error
A newer version of the Streamlit SDK is available: 1.56.0
license: apache-2.0
title: Weather_App
sdk: streamlit
emoji: 🚀
colorFrom: blue
colorTo: blue
"# Streamlit_weather" Weather Forecast App The Weather Forecast App is a web-based application built using Streamlit. It provides users with up-to-date weather information and forecasts for a given location. The app leverages APIs from PositionStack and Open-Meteo to retrieve geocoding data and weather forecasts, respectively.
Features Location Input: Users can enter a location of their choice to get weather information. Current Weather: Display current weather information including temperature, weather code, windspeed, and wind direction. Hourly Forecast: Present an interactive table with hourly forecasts for temperature, relative humidity, and windspeed. Temperature and Humidity Visualization: Visualize temperature and relative humidity trends over the forecasted hours using line charts. Windspeed Visualization: Display a bar chart representing windspeed values for each hour in the forecast. Correlation Chart: Explore the correlation between temperature, relative humidity, and windspeed using a heatmap. Live Weather Updates: Continuously update the current temperature and windspeed every 10 seconds. Data Export: Export forecast data to CSV and JSON formats. Getting Started To run the Weather Forecast App locally, follow these steps:
Clone the repository: git clone https://github.com/roy232355/Streamlit_weather.git Navigate to the project directory: for eg: cd weather-forecast-app Install the required dependencies: pip install -r requirements.txt Set up your API credentials: Obtain an API key from PositionStack and Open-Meteo. Rename the .env.example file to .env. Replace the placeholder values in the .env file with your API keys. Run the app: streamlit run app.py Open your web browser and visit http://localhost:8501 to access the app. Deployment The Weather Forecast App can be deployed to various hosting platforms. Here are some deployment options:
Heroku: Follow the Heroku deployment guide to deploy the app to Heroku. Streamlit Sharing: Use Streamlit Sharing to deploy the app directly from your GitHub repository. Docker: Build a Docker image of the app and deploy it to a containerization platform. Make sure to update the API credentials in your deployment environment to keep them secure.
Contributing Contributions to the Weather Forecast App are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
License The Weather Forecast App is licensed under the MIT License.