← 返回命令列表

Linux command

ansiweather 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Get

ansiweather -l [London,UK]

Example

ansiweather -l [Paris,FR] -f [5]

Example

ansiweather -l [Tokyo,JP] -u metric

Example

ansiweather -l [New York,US] -u imperial

Example

ansiweather -l [Berlin,DE] -w true -h true

Example

ansiweather -l [Berlin,DE] -F

Example

ansiweather -l [Berlin,DE] -i true

说明

ansiweather is a shell script that displays current weather conditions in your terminal using ANSI colors and Unicode symbols. It fetches data from OpenWeatherMap API and formats it for terminal display. The tool provides a quick, colorful weather overview without leaving the command line.

参数

-l _location_
Location (City,CountryCode format)
-u _units_
Units: metric (Celsius) or imperial (Fahrenheit)
-f _days_
Forecast days (1-5)
-F
Toggle forecast mode for the next five days.
-a _bool_
Toggle ANSI colors display (true/false).
-s _bool_
Toggle Unicode symbols display (true/false).
-k _key_
Specify OpenWeatherMap API key.
-d _bool_
Toggle daylight data display: sunrise/sunset (true/false).
-w _bool_
Toggle wind data display (true/false).
-p _bool_
Toggle pressure data display (true/false).
-h _bool_
Toggle humidity data display (true/false).
-i _bool_
Toggle UV index display (true/false).
-v
Display version information.

FAQ

What is the ansiweather command used for?

ansiweather is a shell script that displays current weather conditions in your terminal using ANSI colors and Unicode symbols. It fetches data from OpenWeatherMap API and formats it for terminal display. The tool provides a quick, colorful weather overview without leaving the command line.

How do I run a basic ansiweather example?

Run `ansiweather -l [London,UK]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l _location_ do in ansiweather?

Location (City,CountryCode format)