{"id":24746546,"url":"https://github.com/bartlomiejsadza/weatherapp--pythonbackend","last_synced_at":"2026-04-15T10:32:54.294Z","repository":{"id":274062118,"uuid":"921767810","full_name":"BartlomiejSadza/WeatherApp--PythonBackend","owner":"BartlomiejSadza","description":"Weather app backend via. FastAPI framework","archived":false,"fork":false,"pushed_at":"2025-01-25T15:42:38.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T04:31:45.525Z","etag":null,"topics":["fastapi","python"],"latest_commit_sha":null,"homepage":"https://proud-water-05321801e.5.azurestaticapps.net/","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/BartlomiejSadza.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":"2025-01-24T15:23:51.000Z","updated_at":"2025-01-25T16:55:46.000Z","dependencies_parsed_at":"2025-01-28T04:31:46.577Z","dependency_job_id":null,"html_url":"https://github.com/BartlomiejSadza/WeatherApp--PythonBackend","commit_stats":null,"previous_names":["bartlomiejsadza/p-bckend","bartlomiejsadza/weatherapp--pythonbackend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2FWeatherApp--PythonBackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2FWeatherApp--PythonBackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2FWeatherApp--PythonBackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2FWeatherApp--PythonBackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BartlomiejSadza","download_url":"https://codeload.github.com/BartlomiejSadza/WeatherApp--PythonBackend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245041944,"owners_count":20551484,"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":["fastapi","python"],"created_at":"2025-01-28T04:29:11.831Z","updated_at":"2026-04-15T10:32:54.204Z","avatar_url":"https://github.com/BartlomiejSadza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Forecast and Solar Energy Prediction Application\n\nThis repository contains the solution for the recruitment task provided by Codibly IT Academy. The application is built with the following stack:\n\n- **Backend**: Python + Flask\n- **Frontend**: React + TypeScript + Next.js\n\n## Project Overview\n\nThe application provides weather forecasts for the next 7 days and estimates solar energy production based on the forecasted weather conditions.\n\n## Backend\n\n### Features\n\n- **Two API Endpoints**:\n\n  1. **7-day Weather Forecast**:\n     - Returns:\n       - Date\n       - Weather code\n       - Minimum and maximum temperatures\n       - Estimated energy production in kWh\n  2. **Weekly Summary**:\n     - Returns:\n       - Average pressure\n       - Average daily sun exposure time\n       - Extreme temperatures of the week\n       - General weather summary (e.g., \"Rainy week\" or \"Dry week\")\n\n- **Calculation**:\n\n  - Solar energy production:\n    ```\n    Energy [kWh] = Power [kW] x Sun Exposure Time [h] x Panel Efficiency\n    ```\n    - Power = 2.5 kW\n    - Efficiency = 20%\n\n- **Validation**:\n\n  - Validates latitude and longitude inputs.\n  - Handles errors from external API.\n\n- **Data Integration**:\n  - Fetches weather data from the [Open-Meteo API](https://open-meteo.com/).\n\n## Frontend\n\n### Features\n\n- **Weather Table**:\n\n  - Displays:\n    - Date (DD/MM/YYYY)\n    - Weather icon\n    - Minimum and maximum temperatures\n    - Estimated energy production (kWh)\n\n- **Footer Summary**:\n\n  - Displays:\n    - Weekly extreme temperatures\n    - Average pressure\n    - Average sun exposure time\n    - General weather summary\n\n- **Extras**:\n  - Automatically detects user location.\n  - Responsiveness and Dark Mode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartlomiejsadza%2Fweatherapp--pythonbackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartlomiejsadza%2Fweatherapp--pythonbackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartlomiejsadza%2Fweatherapp--pythonbackend/lists"}