Skip to content

kulmanferdi/cliw

Repository files navigation

CLIW

Console line interface weather app, fetching weather information from WeatherStack Free API.

Requirements

  • DOTNET 9.0: Usually comes with your IDE or you can install it manually.

    download

  • 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
    

Environment

Create a .env file into /your_project/bin/Debug/net9.0 folder. Then enter the lines below.

API key

Register on weatherstack.com to get your API key.

API_KEY=your_api_key

Base URL

Put the base url into the .env file.

BASE_URL=https://api.weatherstack.com

Default location

Be sure to define a default location in the .env file, which will be shown whenever an invalid location is provided.

DEFAULT_LOCATION="Budapest, Hungary"

Text output

We use the default location below, that's why we didn't enter anything.

example output

Razor output

To be implemented.

Premium features

  • Location lookup/autocomplete is available from the Standard subscription level.
  • Forecast is only available for Professional Plan and higher tier subscriptions.

Check pricing

Contribution

If you would like to contribute to the project, you can find the documentation here.

About

Weather app to request weather data from WeatherStack API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages