# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ansiweather>
- **版本:** 1.19.0
- **来源摘要:** Weather in your terminal, with ANSI colors and Unicode symbols
- **主页:** <https://github.com/fcambus/ansiweather>
- **仓库:** <https://github.com/fcambus/ansiweather>
- **上游文档:** <https://github.com/fcambus/ansiweather#readme>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/fcambus/ansiweather/archive/refs/tags/1.19.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- ansiweather (cli)
- ansiweather (别名)

## macOS 提供的库

- bc-gh
- jq

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.19.0
- 本地数据: OK
- 上游仓库: https://github.com/fcambus/ansiweather
- 检测到的最新版本: 1.19.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ansiweather
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [bottom](https://www.automicvault.com/zh-hans/pkg/brew/bottom/) - Shares av.db curated category or tags: cli, monitoring, system, terminal.
- [gotop](https://www.automicvault.com/zh-hans/pkg/brew/gotop/) - Shares av.db curated category or tags: cli, monitoring, system, terminal.
- [gtop](https://www.automicvault.com/zh-hans/pkg/brew/gtop/) - Shares av.db curated category or tags: cli, monitoring, system, terminal.
- [htop](https://www.automicvault.com/zh-hans/pkg/brew/htop/) - Shares av.db curated category or tags: cli, monitoring, system, terminal.
- [hwatch](https://www.automicvault.com/zh-hans/pkg/brew/hwatch/) - Shares av.db curated category or tags: cli, monitoring, system, terminal.
- [pv](https://www.automicvault.com/zh-hans/pkg/brew/pv/) - Shares av.db curated category or tags: cli, monitoring, system, terminal.
- [viddy](https://www.automicvault.com/zh-hans/pkg/brew/viddy/) - Shares av.db curated category or tags: cli, monitoring, system, terminal.
- [asitop](https://www.automicvault.com/zh-hans/pkg/brew/asitop/) - Shares av.db curated category or tags: cli, monitoring, system.

## Combined YAML source

View the package source record on GitHub. [combined/ansiweather.yml](https://github.com/automic-vault/db/blob/main/combined/ansiweather.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
