themes: real weather by zip code for the bedroom

未关闭
#18,029 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
领域
api, cli

调研方向

The issue names no file or test, only the /bedroom command, the auto weather setting and the /bedroom weather reply. Before any code, the first check is the Census ZCTA file's copyright status, which the owner holds, so this is not ready to start. Done means a zip code is stored locally, auto maps a real api.weather.gov forecast to one of five weather states, and both fallback paths reply with the reason.

由索引模型根据 Issue 内容生成。

描述

needs-human

Parent

Refs #18020: themes: bedroom roadmap after the time, weather and sound round

Depends on

  • none: on the frontier now, but held for the owner (see Done when, first check)

Outcome

With a US zip code entered, the bedroom's auto weather shows the real weather at that place. Without one, auto stays random, as it is today.

Demo: enter a zip code, run /bedroom weather, and see the reply name the real conditions and the window match them.

Decisions

  • Real weather is opt-in: the user enters a US zip code. No IP lookup. US first.
  • auto weather is real once connected and random until then; random stays made-up.
  • Zip code to latitude and longitude comes from a table built from the Census ZCTA Gazetteer file and shipped with the plugin.
  • Forecasts come from api.weather.gov: no key, a User-Agent header is required, the rate limit is unpublished.
  • A zip code with no ZCTA row gets a not-found reply and random weather: Census says not every valid ZIP code has a ZCTA.

Key interfaces

None.

Done when

  • The Census file's copyright status is confirmed before the table ships: 17 U.S.C. 105 read on an official site, and the file's own readme read. No census.gov page read so far states it.
  • A setting and a /bedroom command take a zip code; the zip code is stored on the user's machine only.
  • auto weather maps the forecast to clear, overcast, rain, downpour or storm, and /bedroom weather says whether the weather is real or random.
  • A zip code with no table row, and a failed or slow forecast call, each fall back to random weather with a reply that says why.
  • Forecast calls are spaced so a session cannot flood api.weather.gov.
  • Winter conditions (snow, a blizzard) follow whatever the seasons work decides; until then they map to the nearest existing weather.

Out of scope

  • Weather outside the US.
  • Location by IP address or by any means other than a typed zip code.
  • New weather pictures or sounds.
主要语言
Shell
星标
22
派生
2
平均合并
2 小时
30 天内合并 PR
960

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。