Skip to content

svetlana-rezvaya/go-weather

Repository files navigation

go-weather

Go Report Card Build Status codecov

The utility for retrieving current weather data from the OpenWeather service.

Installation

$ go get github.com/svetlana-rezvaya/go-weather

Usage

$ go-weather -h | -help | --help
$ go-weather [options]

Options:

  • -h, -help, --help — show the help message and exit;
  • -city STRING — city name (default: New York);
  • -ascii-art — display as ASCII art (based on the github.com/schachmat/wego package).

Output Example

Displaying as plain text:

Location: New York, US
Weather description: clear sky
Temperature: -5.87 °C
Temperature feels like: -5.87 °C
Wind direction: 297°
Wind speed: 1.62 km/h
Wind gust speed: 4.82 km/h
Visibility: 10000 m
Precipitation volume: 0.00 mm/h
Pressure: 1028 hPa
Humidity: 61 %

Displaying as ASCII art (based on the github.com/schachmat/wego package):

Weather for New York, US

     \   /     clear sky
      .-.      -5 (-5) °C
   ‒ (   ) ‒   ↘ 1 – 4 km/h
      `-᾿      10 km
     /   \     0.0 mm/h
               1028 hPa
               61 %

License

The MIT License (MIT)

Copyright © 2022 svetlana-rezvaya

About

The utility for retrieving current weather data from the OpenWeather service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages