{"id":22703675,"url":"https://github.com/adam014/weatherapp","last_synced_at":"2025-03-29T20:11:14.996Z","repository":{"id":267307656,"uuid":"898644713","full_name":"Adam014/weatherapp","owner":"Adam014","description":"Weather App in C#.","archived":false,"fork":false,"pushed_at":"2024-12-09T15:47:24.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T20:41:51.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Adam014.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-04T19:07:37.000Z","updated_at":"2024-12-09T15:47:36.000Z","dependencies_parsed_at":"2024-12-09T16:35:18.220Z","dependency_job_id":"73a185b3-9872-4d35-b1cc-94ee1806ad38","html_url":"https://github.com/Adam014/weatherapp","commit_stats":null,"previous_names":["adam014/weatherapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam014%2Fweatherapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam014%2Fweatherapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam014%2Fweatherapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adam014%2Fweatherapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adam014","download_url":"https://codeload.github.com/Adam014/weatherapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237438,"owners_count":20745348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T08:12:15.652Z","updated_at":"2025-03-29T20:11:14.978Z","avatar_url":"https://github.com/Adam014.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeatherApp 🌦️\n\n A sleek desktop weather application built with C# and WinForms. The app fetches weather data for cities, displays the data in an organized grid, and allows users to save favorite cities for quick access.\n\n ## Features 🎯\n- Fetch Weather Data: Fetch real-time weather data for any city.\n- Save Favorite Cities: Save cities for quick access.\n- Temperature Units: Switch between Celsius, Fahrenheit, and Kelvin.\n- Last Updated: View when the data was last updated.\n- Delete Cities: Remove cities from your favorites list.\n- Responsive UI: Elegant and intuitive design with a focus on usability.\n\n## Prerequisites 📋\nBefore running the application, ensure you have:\n1. .NET Framework: Version 4.7.2 or higher.\n2. SQLite: Used as the local database.\n3. API Key: Obtain a key from OpenWeather API and set the following environment variables.\n    - RAPID_API_KEY: Your API key.\n    - RAPID_API_HOST: Your API host.\n\n## Getting Started 🚀\n\nClone the Repository\n```bash\ngit clone https://github.com/yourusername/weatherapp.git\ncd weatherapp\n```\n### Install Dependencies\n\nNo external libraries are required. Ensure you have a compatible .NET framework installed.\n\n### Set Environment Variables\nCreate a .env file in the root of the project and the file will have this format:\n\n```.env\nRAPID_API_KEY={YOUR_API_KEY}\nRAPID_API_HOST=open-weather13.p.rapidapi.com\n```\n\n### Run the Application\n1. Open the solution (`weatherapp.sln`) in Visual Studio.\n2. Build the solution.\n3. Run the application.\n\n## Application Usage 🖥️\n\n### Main Features\n\n  1. Fetch Weather:\n      -  Enter a city name in the input field.\n      -  Press Get Weather to fetch data.\n  2. Save City:\n      -  Cities are automatically saved to the database upon fetching weather data.\n  3. Switch Temperature Units:\n      -  Use the dropdown to switch between Celsius, Fahrenheit, and Kelvin.\n  4. Manage Favorites:\n      -  Click on a city in the side panel to view its weather data.\n      -  Use the Delete button to remove a city from favorites.\n  5. Last Updated:\n      -  The timestamp of the last weather update is displayed at the top.\n\n## Folder Structure 📂\n\n```plaintext\nweatherapp/\n├── weatherapp/\n│   ├── Models/\n│   │   ├── WeatherData.cs\n│   ├── Services/\n│   │   ├── ── Helpers/\n│   │   │      ├── AppIconHelper.cs\n│   │   │      ├── DateTimeHelper.cs\n│   │   │      ├── MessageHelper.cs\n│   │   │      ├── WeatherCardHelper.cs\n│   │   │      ├── WeatherDataDisplayHelper.cs\n│   │   │      └── WeatherDescriptionHelper.cs\n│   │   ├── DatabaseService.cs\n│   │   └── WeatherService.cs\n│   ├── Form1.cs\n│   │   └── Form1.Designer.cs\n```\n\n## Documentation 📖\n  1. Form1.cs:\n  \n      - Manages the main application UI and event handling.\n      - Key methods:\n          -  FetchWeatherButton_Click: Fetches weather data for a city.\n          -  LoadCityList: Loads saved cities from the database.\n          -  DisplayWeatherForCity: Displays weather data for a selected city.\n  \n  2. DatabaseService.cs:\n  \n      - Handles all database operations.\n      - Key methods:\n          -  SaveWeatherData: Inserts or updates weather data in the database.\n          -  GetSavedCities: Retrieves a list of saved cities.\n          -  eleteCity: Deletes a city from the database.\n  \n  3. WeatherService.cs:\n  \n      - Interacts with the weather API and manages data validation.\n      - Key methods:\n          -  GetWeatherAsync: Fetches weather data for a city.\n          -  IsCityInDatabase: Checks if a city is already saved.\n  \n  4. WeatherDataDisplayHelper.cs:\n  \n      - Displays weather data in a grid format.\n      - Key methods:\n          - DisplayWeatherData: Populates the grid with weather data cards.\n  \n  5. WeatherCardHelper.cs:\n  \n      - Dynamically creates and updates UI elements.\n      - Key method:\n          -  AddCardToPanel: Adds a reusable card to a UI panel.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam014%2Fweatherapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam014%2Fweatherapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam014%2Fweatherapp/lists"}