WeatherCli 1.1.0

A simple tool that allows you to get weather data using the OpenWeatherMap API. Displays the current Weather in your terminal.

dotnet tool install --global WeatherCli --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local WeatherCli --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=WeatherCli&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package WeatherCli --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Installation

Download .NET Core 3.1 SDK.
Once installed, run this command:

dotnet tool install -g weathercli

Get a free API key here.

Usage

Current weather command

Usage: weather current [options] <CityName>

Arguments:
  CityName      You can call by city name or city name, state code and country code

Options:
  -d|--default  Sets a default city name
  -k|--apikey   Sets an OpenWeatherMap API key

Example using the current weather command:

weather current sofia -k YOUR_API_KEY

Example of successful response:

Sofia
Mist -2°C
Feels like -5°C. mist
Wind 1.0m/s N, 1021hPa, Humidity: 92%
Visibility: 2.8km

Optionally, you can omit the API key.
In order to do that, you have to set the environment variable.

How to do it in Windows:

For the current process:

set OPENWEATHERMAP_APIKEY=YOUR_API_KEY

For the user:

setx OPENWEATHERMAP_APIKEY YOUR_API_KEY

Installation

Download .NET Core 3.1 SDK.
Once installed, run this command:

dotnet tool install -g weathercli

Get a free API key here.

Usage

Current weather command

Usage: weather current [options] <CityName>

Arguments:
  CityName      You can call by city name or city name, state code and country code

Options:
  -d|--default  Sets a default city name
  -k|--apikey   Sets an OpenWeatherMap API key

Example using the current weather command:

weather current sofia -k YOUR_API_KEY

Example of successful response:

Sofia
Mist -2°C
Feels like -5°C. mist
Wind 1.0m/s N, 1021hPa, Humidity: 92%
Visibility: 2.8km

Optionally, you can omit the API key.
In order to do that, you have to set the environment variable.

How to do it in Windows:

For the current process:

set OPENWEATHERMAP_APIKEY=YOUR_API_KEY

For the user:

setx OPENWEATHERMAP_APIKEY YOUR_API_KEY

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.1.0 132 12/2/2020
1.0.0 103 12/1/2020