The utility for retrieving current weather data from the OpenWeather service.
$ go get github.com/svetlana-rezvaya/go-weather
$ 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).
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 %
The MIT License (MIT)
Copyright © 2022 svetlana-rezvaya