← 返回
数据分析 Key 中文

KnowAir Historical 明气历史天气

Get historical weather data up to 72 hours back via the Caiyun Weather API. Returns past temperature, weather conditions, precipitation, wind, humidity, appa...
通过彩云天气API获取最近72小时的历史天气数据,返回过去的温度、天气状况、降水、风速、湿度、体感温度等。
shuowang-ai
数据分析 clawhub v1.0.0 1 版本 99793.8 Key: 需要
★ 0
Stars
📥 484
下载
💾 10
安装
1
版本
#latest

概述

KnowAir Historical — Past Weather Data

Query historical weather data for up to 72 hours back using the Caiyun Weather API.

Prerequisites

  1. A valid Caiyun Weather API token set as CAIYUN_TOKEN environment variable, or stored in ~/.config/knowair/token.
  2. Coordinates (longitude, latitude) for the target location.

Quick Start

python3 scripts/query_historical.py --lng 116.3176 --lat 39.9760 --hours 24

Workflow

  1. Resolve coordinates — convert city name to coordinates if needed.
  2. Run the script:

```bash

python3 scripts/query_historical.py --lng --lat --hours

```

  1. Present results — summarize temperature range, weather changes, and notable events in the past period.

Options

FlagDescriptionDefault
----------------------------
--lngLongitude (-180 to 180)Required
--latLatitude (-90 to 90)Required
--hoursHours to look back (1-72)24
--langOutput language: en or zhen

Defaults

  • Hours back: 24
  • Language: en

Failure Handling

  • Missing token → exit code 2 with setup instructions.
  • API error → exit code 1 with error details.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 03:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

KnowAir Forecast 明气预报

shuowang-ai
通过彩云天气API,根据经纬度获取最长360小时的逐小时及15天的逐日天气预报。返回温度趋势、天气状况等信息。
★ 0 📥 494
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,027
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,883