# 使用 Homebrew, apt 安装 ansiweather

查看 ansiweather 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:ansiweather
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ansiweather
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install ansiweather
```

  证据: Debian stable package indexes: ansiweather from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:ansiweather
- **软件包管理器:** Homebrew
- **版本:** 1.19.1
- **来源摘要:** Weather in your terminal, with ANSI colors and Unicode symbols
- **主页:** <https://github.com/fcambus/ansiweather>
- **仓库:** <https://github.com/fcambus/ansiweather>
- **最后更新:** 2026-07-24T17:35:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ansiweather (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.19.1
## 项目历史与用法

AnsiWeather is a POSIX shell script that displays current weather and forecasts in a terminal using ANSI colors and optional Unicode symbols. It fetches data from the OpenWeatherMap API and formats it with small Unix dependencies such as curl or wget, jq, and bc.

### 项目历史

The official changelog records AnsiWeather 1.00 as the initial release on 19 October 2013. Early releases added configuration files, automatic location support, wind and forecast display, daylight data, and then removed or tightened automatic behavior as API and portability needs changed.

By 2015, AnsiWeather had moved toward explicit user configuration: OpenWeatherMap API key support was added, automatic location helper behavior was removed, and the default location was changed. Later releases focused on shell portability, HTTPS API calls, delimiter changes, XDG-related configuration behavior, and display options such as UV index and feels-like temperature.

### 采用历史

The README lists packages for OpenBSD, NetBSD, FreeBSD, Debian, Ubuntu, Homebrew, Haiku, and Gentoo. That package spread reflects a tool that fits neatly into Unix package systems: one script, common dependencies, a man-page-like README, and no daemon.

AnsiWeather is adopted mostly as a terminal utility rather than as a library. Its users are shell prompt tinkerers, status bar authors, and people who want weather output scriptable enough for cron, tmux, screenshots, or login messages.

### 使用方式

Users run ansiweather with options such as -l for location, -u for unit system, -f or -F for forecast mode, -k for OpenWeatherMap API key, and toggles for colors, symbols, wind, humidity, pressure, daylight, UV index, and feels-like temperature.

The default config file is ~/.ansiweatherrc, and ANSIWEATHERRC can point to another file. Because the OpenWeatherMap API key can be supplied with -k or stored in that configuration file, the same documented path is both a configuration location and a likely credentials location.

### 为什么软件包爱好者会关心

AnsiWeather is a compact example of the packageable shell-script app: simple source, explicit external commands, readable config, distro package links, and enough API churn handling to show why tiny CLIs still need maintenance.

It also captures a familiar terminal era: colored output, Unicode symbols, curl pipelines, jq parsing, and personal status displays, all before needing a richer TUI or desktop widget.

### 时间线

- 2013: AnsiWeather 1.00 initial release.
- 2015: Config file support, forecast features, daylight data, and OpenWeatherMap API key support appear.
- 2016: Plain sh portability work and BSD 2-Clause relicensing.
- 2019: Weather API calls switch to HTTPS.
- 2020: Config delimiter behavior changes and parsing portability improves.
- 2021: Feels-like temperature display is added.
- 2023: AnsiWeather 1.19.0 refines examples, config sample, and locale handling.

### Related projects

- OpenWeatherMap provides the weather API used by AnsiWeather.
- jq and bc are documented runtime dependencies for JSON parsing and arithmetic.

### 来源

- <https://github.com/fcambus/ansiweather#readme>
- <https://raw.githubusercontent.com/fcambus/ansiweather/master/ChangeLog>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.ansiweatherrc, $ANSIWEATHERRC

## Credential files

- Unix: ~/.ansiweatherrc, $ANSIWEATHERRC
## 其他软件包管理器记录

- Debian apt - ansiweather - 1.19.0-1: normalized package name match | Debian stable package indexes: ansiweather from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Weather in your terminal, with ANSI colors and Unicode symbols | https://github.com/fcambus/ansiweather
- Ubuntu apt - ansiweather - 1.19.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ansiweather from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Weather in your terminal, with ANSI colors and Unicode symbols | https://github.com/fcambus/ansiweather


## Combined YAML source

View the package source record on GitHub. [combined/ansiweather.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ansiweather.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
