@@ -9,15 +9,22 @@ Console Weather project is a simple application project to check weather in cons
99- Show current Wind Speed and Direction
1010- Show Air Pressure, Humidity and Cloud Cover
1111- Show Weather Alerts (if exists)
12+ - Show Weather Forecast (for a next day)
1213
1314
1415
1516## Installation
1617
1718If you installed [ .NET 7.0 or newer] ( https://dotnet.microsoft.com/en-us/download ) , just simply paste this command into console:
1819``` bash
19- dotnet tool install --global console-weather --version 1.1 .0
20+ dotnet tool install --global console-weather --version 1.2 .0
2021```
22+
23+ If you want to update, just type:
24+ ``` bash
25+ dotnet tool update --global console-weather
26+ ```
27+
2128If you running app first time, it will ask you for the [ Weather API] ( https://www.weatherapi.com/ ) :
2229```
2330Error: API returned status code Forbidden
@@ -39,31 +46,47 @@ To get weather info from a specified city, type:
3946weather -c " City Name"
4047```
4148
49+ To get weather information without alerts, type:
50+ ``` bash
51+ weather --no-alerts
52+ ```
53+
54+ To get forecast for the next day, type:
55+ ``` bash
56+ weather -f
57+ ```
58+
59+ Full command list:
60+ ``` bash
61+ -c, --city < city> Get city name
62+ --no-alerts Hide weather alerts [default: False]
63+ -f, --forecast Show weather forecast [default: False]
64+ --version Show version information
65+ -? , -h, --help Show help and usage information
66+ ```
67+
4268
4369## Demo
4470
4571Example input:
46- ``` bash
47- weather -c " London "
72+ ```
73+ weather -c "Kansas City" --no-alerts
4874```
4975
5076Example output:
5177```
52- Weather for London, United Kingdom (last update: 2023-04-15 16:00):
53-
54- Teperature: 14,0°C (feels like: 13,7°C)
55- Weather Condition: Partly cloudy
56- Wind Speed: 13,0kmp (WNW)
57- Air Pressure: 1021,0 mbar
58- Humidity: 59%
59- Cloud Cover: 25%
60-
61- Weather Alerts:
62- <none>
78+ The current weather for Kansas City in United States of America is Sunny
79+ The temperature is 16,1°C, but feels like: 16,1°C
80+
81+ Current Wind speed is 16,9 kmp SSW
82+ Current Air Pressure is 1020,0 mbar
83+ Current Humidity is 33%
84+ Current Cloud Cover is 0%
85+ Last update: 2023-04-24 12:30
6386```
6487## Acknowledgements
6588
66- - [ NuGet Package page ] ( https://www.nuget.org/packages/console-weather/ )
89+ - [ NuGet Page ] ( https://www.nuget.org/packages/console-weather/ )
6790
6891
6992## License and support
@@ -75,3 +98,7 @@ For any project-related cases, please contact me on Discord: pazurkota#1001
7598## Lessons Learned
7699
77100This project basically was created to learn how to work with the API (in this case, weather API) and creating CLI apps using C#
101+
102+
103+
104+
0 commit comments