Console line interface weather app, fetching weather information from WeatherStack Free API.
-
DOTNET 9.0: Usually comes with your IDE or you can install it manually.
-
NuGet packages: In order to run this project, you need to install the following packages.
dotnet add package DotNetEnv dotnet add package Serilog.AspNetCore dotnet add package Serilog.Sinks.Console dotnet add package Microsoft.AspNetCore.Components dotnet add package Microsoft.AspNetCore.Components.Web dotnet add package Spectre.Console.Cli dotnet add package RazorConsole.Core
Create a .env file into /your_project/bin/Debug/net9.0 folder. Then enter the lines below.
Register on weatherstack.com to get your API key.
API_KEY=your_api_keyPut the base url into the .env file.
BASE_URL=https://api.weatherstack.comBe sure to define a default location in the .env file, which will be shown whenever an invalid location is provided.
DEFAULT_LOCATION="Budapest, Hungary"We use the default location below, that's why we didn't enter anything.
To be implemented.
- Location lookup/autocomplete is available from the Standard subscription level.
- Forecast is only available for Professional Plan and higher tier subscriptions.
Check pricing
If you would like to contribute to the project, you can find the documentation here.
