{"id":18073345,"url":"https://github.com/cesarnog/weather-app","last_synced_at":"2025-04-05T18:16:41.018Z","repository":{"id":226961306,"uuid":"770056138","full_name":"CesarNog/weather-app","owner":"CesarNog","description":"Weather App created in Python","archived":false,"fork":false,"pushed_at":"2024-03-18T12:31:23.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-11T15:29:46.444Z","etag":null,"topics":["python","weather-app"],"latest_commit_sha":null,"homepage":"","language":"Python","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/CesarNog.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}},"created_at":"2024-03-10T19:48:46.000Z","updated_at":"2024-03-10T20:17:05.000Z","dependencies_parsed_at":"2024-03-10T20:47:56.648Z","dependency_job_id":"f55a8462-22bc-4a22-9820-036ab0c2120a","html_url":"https://github.com/CesarNog/weather-app","commit_stats":null,"previous_names":["cesarnog/weather-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarNog%2Fweather-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarNog%2Fweather-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarNog%2Fweather-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarNog%2Fweather-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CesarNog","download_url":"https://codeload.github.com/CesarNog/weather-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378141,"owners_count":20929296,"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":["python","weather-app"],"created_at":"2024-10-31T10:06:24.384Z","updated_at":"2025-04-05T18:16:40.991Z","avatar_url":"https://github.com/CesarNog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Weather App with FastAPI\nThis Weather App is a simple FastAPI application that provides real-time weather information for Lisbon, Portugal. It uses the WeatherAPI to fetch current weather data, focusing on temperature and rain predictions for the next three days.\n\n## Features\n- Get the predicted temperature in Lisbon for the next three days.\n- Check if it will rain in Lisbon in the next three days.\n\n## Live API Endpoints\nThe application is hosted and can be accessed at the following live endpoints:\n- Temperature Forecast: [https://weather-app-rzdp.onrender.com/temperature](https://weather-app-rzdp.onrender.com/temperature)\n- Rain Forecast: [https://weather-app-rzdp.onrender.com/rain](https://weather-app-rzdp.onrender.com/rain)\n\n## API Documentation\nExplore the API documentation using the Swagger UI:\n- [Swagger UI Documentation](https://weather-app-rzdp.onrender.com/docs)\n\n## Setup\n\n### Requirements\n- Python 3.8+\n- An API key from [WeatherAPI](https://www.weatherapi.com/)\n\n### Installation\n1. Clone the repository:\n\n   ```\n   git clone https://your-repository-url/weather-app.git\n   cd weather-app\n   ```\n\n2. Install the required packages:\n   ```\n   pip install -r requirements.txt\n   ```\n\n3. Set up your WeatherAPI API key:\n   Create a `.env` file in the root directory and add your API key like this:\n\n   ```\n   WEATHER_API_KEY=your_api_key_here\n   ```\n\n## Running the Application\n1. Start the FastAPI server:\n\n   ```\n   uvicorn app.main:app --reload\n   ```\n\n   The `--reload` flag enables auto-reload so the server will restart after code changes. This is useful for development, but should be removed in a production environment.\n\n2. Access the application:\n   Open your web browser and go to [http://127.0.0.1:8000](http://127.0.0.1:8000). You will see the FastAPI automatic documentation where you can test the endpoints.\n\n## Endpoints\n- `GET /temperature`: Returns the predicted temperature in Lisbon for the next three days. The temperature can be returned in either Celsius or Fahrenheit, based on the provided query parameter.\n- `GET /rain`: Indicates whether it will rain in Lisbon in the next three days with a descriptive message.\n\n## Running Tests\n\n```\nexport PYTHONPATH=$PYTHONPATH:/path/to/weather_app_project\n```\n\nTo run the tests, ensure you are in the project's root directory and execute:\n\n```\npytest\n```\n\n## Contributing\nContributions are welcome! Please feel free to submit a pull request.\n\n## License\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarnog%2Fweather-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesarnog%2Fweather-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarnog%2Fweather-app/lists"}