{"id":19509034,"url":"https://github.com/pazurkota/console-weather","last_synced_at":"2025-04-26T03:31:50.372Z","repository":{"id":153139240,"uuid":"625477389","full_name":"pazurkota/console-weather","owner":"pazurkota","description":"Simple CLI App to check weather written in C#","archived":false,"fork":false,"pushed_at":"2023-09-02T09:26:15.000Z","size":999,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T19:28:04.853Z","etag":null,"topics":["air-quality","api","cli","csharp","dotnet","learning","learning-by-doing","newtonsoft-json","restsharp","weather","weather-app","weather-forecast"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pazurkota.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-09T08:22:54.000Z","updated_at":"2023-06-18T21:22:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"70065fa9-8679-4a54-ae93-bf09992e2f89","html_url":"https://github.com/pazurkota/console-weather","commit_stats":{"total_commits":168,"total_committers":2,"mean_commits":84.0,"dds":"0.10119047619047616","last_synced_commit":"97ef138d0b9737af8101c2cfb07f34437ab4275e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pazurkota%2Fconsole-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pazurkota%2Fconsole-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pazurkota%2Fconsole-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pazurkota%2Fconsole-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pazurkota","download_url":"https://codeload.github.com/pazurkota/console-weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250926821,"owners_count":21509044,"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":["air-quality","api","cli","csharp","dotnet","learning","learning-by-doing","newtonsoft-json","restsharp","weather","weather-app","weather-forecast"],"created_at":"2024-11-10T23:10:44.248Z","updated_at":"2025-04-26T03:31:49.998Z","avatar_url":"https://github.com/pazurkota.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⛅ Console Weather project\n\n\n![Release](https://img.shields.io/github/v/release/pazurkota/console-weather?include_prereleases\u0026style=for-the-badge\u0026logo=github)\n![Repo Size](https://img.shields.io/github/repo-size/pazurkota/console-weather?logo=git\u0026style=for-the-badge)\n![Downloads](https://img.shields.io/nuget/dt/console-weather?style=for-the-badge\u0026logo=nuget)\n![License](https://img.shields.io/github/license/pazurkota/console-weather?style=for-the-badge)\n\nConsole Weather project is a simple application project to check weather in console. You can get it on [NuGet](https://www.nuget.org/packages/console-weather/) page\n\n\n\n![App Screenshot](Images/readme_image.png)\n\n\n## Features\n\n- Show Temperature and Weather Condition\n- Show current Wind Speed and Direction\n- Show Air Pressure, Humidity and Cloud Cover\n- Show Weather Alerts\n- Show Weather Forecast for a next day\n- Show Air Quality\n- Show Weather Icons\n\n## Installation\n\nIf you installed [.NET 7.0 or newer](https://dotnet.microsoft.com/en-us/download), just simply paste this command into console:\n```console\n$ dotnet tool install --global console-weather --version 1.7.1\n```\n\nIf you want to update, just type:\n```console\n$ dotnet tool update --global console-weather\n```\n## Usage\n\n### Commands:\n```console\n# To use aplication, type:\n$ weather\n\n# To get weather info from a specified city, type:\n$ weather -c \"Warsaw\"\n\n# To get weather information without alerts, type:\n$ weather --no-alerts\n\n# To get forecast for the next day, type:\n$ weather -f\n\n# To use specific units, type:\n$ weather -u Si\n\n# To get air quality data, type:\n$ weather -a\n\n# To show weather without icons, type:\n$ weather --dont-show-icons\n\n# To show astronomical data, type:\n$ weather --astronomy\n\n# To show hourly weather forecast, type:\n$ weather --hourly-weather\n```\n\n### Default settings:\nThis project uses default settings that are stored in `config.json` file. You can change them by editing this file:\n```json\n{\n  \"api-key\": \"api-key\",\n  \"default-city\": \"Sydney\",\n  \"dont-show-alerts\": false,\n  \"show-forecast\": false,\n  \"units\": \"EU\",\n  \"air-quality\": true,\n  \"dont-show-icons\": false,\n  \"show-astronomy\": false,\n  \"show-hourly-weather\": false\n}\n```\n\n- `\"default-city\"` - default city that will be used if you don't specify it in command\n- `\"dont-show-alerts\"` - if set to `true`, weather alerts won't be shown\n- `\"show-forecast\"` - if set to `true`, weather forecast will be shown\n- `\"units\"` - units that will be used to show weather data. Possible values: `eu`, `si`, `us`, `uk`\n- `\"air-quality\"` - if set to `true`, air quality data will be shown\n- `\"dont-show-icons\"` - if set to `true`, weather icons won't be shown\n- `\"show-astronomy\"` - if set to `true`, astronomical data will be shown\n- `\"show-hourly-weather\"` - if set to `true`, hourly weather forecast (for 5 hours) will be shown\n\n\u003e **Note**: These settings is not required. You can use application without them.\n\nThe config file is kept in:\n- Windows: `C:\\Users\\USERNAME\\Documents\\weather_data\\config.json`\n- MacOS: `/Users/USERNAME/Documents/weather_data/config.json`\n- Linux: `/home/USERNAME/Documents/weather_data/config.json`\n\n\n## Demo\n```console\n$ weather -c \"Kansas City\" --no-alerts -f -a\n\n                :::\n        .:      ===     .:.\n       .===.    ===    .==-\n         ==-           ==-\n  .:.        .::---::.            ...\n .====:   .-===========-    ..............\n    :-   -===--------====:....           ....\n        ===------------=-...               ...\n.....  :===-------::::.....                 ...\n====-  :==------:.........                   ...\n       .===---:...                           ...\n        -===-:...                            .....\n   :-=:  :=-:...                                ....\n  ===:.   ....                                    ...\n         ...                                      ...\n        ...                                       ...\n         ...                                     ....\n         ....                                   ....\n           .......................................\n\nCURRENT WEATHER:\nCurrent weather for Kansas City in United States of America is Partly cloudy\nThe temperature is 22,2°C, but feels like 24,6°C\n\nCurrent Wind Speed: 11,2 kph (E)\nCurrent Air Pressure: 1011,0 mbar\nCurrent Visibility: 14,0 kilometers\nCurrent Precipitation: 0,0 mm\nCurrent Humidity: 71%\nCurrent Cloud Cover: 25%\nCurrent UV Index: 4,0 (Moderate)\n\nFORECAST:\nTomorrow it will be Partly cloudy\nTemperature Range: 13,8°C - 26,2°C (average: 19,9°C)\nMaximum Wind Speed: 13,7 kph\nAverage Visibility: 10,0 kilometers\nMaximum Precipitation: 0,0 mm\nUV Index: 5,0 (Moderate)\nChance of rain/snow: 0% / 0%\n\nAIR QUALITY:\nCarbon Monoxide: 337,10 ug/m3\nNitrogen Dioxide: 13,0 ug/m3\nOzone: 37,90 ug/m3\nSulphur Dioxide: 2,30 ug/m3\nFine Particles Matter: 13,10 ug/m3\nCoarse Particles Matter: 13,5 ug/m3\nUS Epa Index: 1 (Good)\n\nLast Update: 2023-06-08 09:00\n```\n## Contributing\n\nContributions are always welcome!\n\nSee [contributing](https://github.com/pazurkota/console-weather/blob/master/CONTRIBUTING.md) for ways to get started.\n\nPlease look also at the [Code Of Conduct](https://github.com/pazurkota/console-weather/blob/master/CODE_OF_CONDUCT.md)\n\n\n## Acknowledgements\n\n#### Used frameworks:\n- [Newtonsoft.Json](https://www.newtonsoft.com/json)\n- [RestSharp](https://restsharp.dev)\n- [System.CommandLine](https://learn.microsoft.com/en-us/dotnet/standard/commandline/)\n\n#### API and Icons:\n- [Weather API](https://www.weatherapi.com/)\n- [ASCII Converter](https://ascii-generator.site)\n\n\n## Lessons Learned\n\nThis project basically was created to learn how to work with the API (in this case, weather API) and creating CLI apps using C#\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpazurkota%2Fconsole-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpazurkota%2Fconsole-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpazurkota%2Fconsole-weather/lists"}