influxdata/telegraf

[inputs.openweathermap] Error in plugin: wrong/changed API endpoint for fetch type weather

クローズ

#18,077 opened on 2025/12/02

 (4 件のコメント) (0 件のリアクション) (1 人の担当者)Go (5,831 件のフォーク)batch import
bughelp wantedsize/m

Repository metrics

Stars
 (17,731 個のスター)
PR merge metrics
 (平均マージ 2d 12h) (30d で 136 merged PRs)

説明

Relevant telegraf.conf

[[inputs.openweathermap]]
  ## OpenWeatherMap API key.
  app_id = "..."

  ## City ID's to collect weather data from.
  city_id = ["..."]

  # lang = "en"

  ## APIs to fetch; can contain "weather" or "forecast".
  fetch = ["weather"]

Logs from Telegraf

[inputs.openweathermap] Error in plugin: querying "https://api.openweathermap.org/data/2.5/group?APPID=...&id=...&lang=en&units=metric" failed: https://api.openweathermap.org/data/2.5/group?APPID=...&id=...&lang=en&units=metric returned HTTP status 401 Unauthorized

System info

Docker Container Telegraf 1.36.4

Docker

No response

Steps to reproduce

Try https://openweathermap.org/current They probably changed the API on August 29, 2025.

Expected behavior

Valid request

Actual behavior

File openweathermap.go line 220 should be weather instead of group

Additional info

No response

コントリビューターガイド