{"id":23243821,"url":"https://github.com/bartlomiejsadza/backend--weatherapp","last_synced_at":"2026-05-02T17:36:15.676Z","repository":{"id":263897290,"uuid":"891718368","full_name":"BartlomiejSadza/backend--weatherApp","owner":"BartlomiejSadza","description":"Weather Forecast and Solar Energy Prediction Application","archived":false,"fork":false,"pushed_at":"2024-11-29T18:00:06.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T23:26:21.916Z","etag":null,"topics":["backend","expressjs","typescript"],"latest_commit_sha":null,"homepage":"https://proud-water-05321801e.5.azurestaticapps.net","language":"TypeScript","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":"2024-11-20T20:42:32.000Z","updated_at":"2024-11-29T18:06:27.000Z","dependencies_parsed_at":"2024-11-20T22:23:51.783Z","dependency_job_id":"419c068a-93e5-413e-85f2-091f40c20c71","html_url":"https://github.com/BartlomiejSadza/backend--weatherApp","commit_stats":null,"previous_names":["bartlomiejsadza/backend--weatherapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BartlomiejSadza/backend--weatherApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2Fbackend--weatherApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2Fbackend--weatherApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2Fbackend--weatherApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2Fbackend--weatherApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BartlomiejSadza","download_url":"https://codeload.github.com/BartlomiejSadza/backend--weatherApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BartlomiejSadza%2Fbackend--weatherApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278686638,"owners_count":26028325,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["backend","expressjs","typescript"],"created_at":"2024-12-19T06:18:10.196Z","updated_at":"2025-10-06T21:50:50.472Z","avatar_url":"https://github.com/BartlomiejSadza.png","language":"TypeScript","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**: TypeScript + Express\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  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  - 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  - 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\n## Frontend\n\n### Features\n\n- **Weather Table**:\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  - 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%2Fbackend--weatherapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartlomiejsadza%2Fbackend--weatherapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartlomiejsadza%2Fbackend--weatherapp/lists"}