Feature Request: Support OpenWeather City ID as an Alternative to Coordinates

未关闭
#684 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
57/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
csharp
领域
backend

调研方向

Start by locating the weather configuration and the code that builds the OpenWeather request; the issue names WeatherLatLong and the /data/2.5/weather endpoint but no files or tests. Check how existing configuration is documented and tested. Done when an optional WeatherCityId selects the ID-based request while existing coordinate-based configurations continue to work.

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

描述

enhancement
Description

It would be great if ImmichFrame could support configuring the weather location using an OpenWeather City ID in addition to the existing latitude/longitude option.

Use Case

When using coordinates, the OpenWeather API sometimes returns the name of a nearby town instead of the actual municipality where the coordinates are located. Although the weather data itself is correct, the displayed location name can be misleading.

Details

For example:

Coordinates: 47.7628, 19.5409
Actual location: Erdőtarcsa, Hungary
OpenWeather response: "name": "Héhalom"
Using the OpenWeather City ID (for example, 7284908 for Erdőtarcsa) would ensure that the intended location name is displayed consistently.

Proposed solution

Add an optional configuration value, for example:

WeatherCityId: 7284908

If WeatherCityId is set, ImmichFrame could query:

/data/2.5/weather?id=

Otherwise, it would continue using the existing coordinate-based request (WeatherLatLong), maintaining full backward compatibility.

This would provide users with a reliable way to display the correct location name while preserving the current behavior for existing configurations.

Thanks for considering this feature!

Pre-Submission Checklist
  • This is a feature request and not a bug report

  • I have checked for related issues and checked the documentation

主要语言
C#
星标
2.4k
派生
121
平均合并
18 天 20 小时
30 天内合并 PR
1

环境准备

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

从这里开始

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

immichFrame/ImmichFrame 的其他 Issue

查看 immichFrame/ImmichFrame 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

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