influxdata/telegraf

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

已關閉

#18,077 建立於 2025年12月2日

 (4 則留言) (0 個反應) (1 位負責人)Go (5,838 個分叉)batch import
bughelp wantedsize/m

倉庫指標

星標
 (17,764 顆星)
PR 合併指標
 (平均合併 2天 12小時) (30 天內合併 136 個 PR)

描述

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

貢獻者指南