-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openweathermap input uses 3h rain value instead of 1h #6583
Comments
And now that it's been >3h since I last checked in, the openweathermap API is still only showing If the upstream source doesn't seem to be providing the |
This seems to be something of a known issue, though not predictable when calling the API, and the rain values in general seem to be a bit flaky judging from the OpenWeatherMap support forum. The plugin should probably be flexible enough to use |
The OpenWeatherMap API doesn't reliably return "3h" rain values, so we examine the response for "1h" (preferred) or "3h" values as it seems to depend on the particular weather station used which value will be returned (see https://openweathermap.desk.com/customer/en/portal/questions/17663899-rain-1h-3h-are-mutually-exclusive-?new=17663899). Closes influxdata#6583
The OpenWeatherMap API doesn't reliably return "3h" rain values, so we examine the response for "1h" (preferred) or "3h" values as it seems to depend on the particular weather station used which value will be returned (see https://openweathermap.desk.com/customer/en/portal/questions/17663899-rain-1h-3h-are-mutually-exclusive-?new=17663899). Closes influxdata#6583
The OpenWeatherMap API doesn't reliably return "3h" rain values, so we examine the response for "1h" (preferred) or "3h" values as it seems to depend on the particular weather station used which value will be returned (see https://openweathermap.desk.com/customer/en/portal/questions/17663899-rain-1h-3h-are-mutually-exclusive-?new=17663899). Closes influxdata#6583
The OpenWeatherMap API doesn't reliably return "3h" rain values, so we examine the response for "1h" (preferred) or "3h" values as it seems to depend on the particular weather station used which value will be returned (see https://openweathermap.desk.com/customer/en/portal/questions/17663899-rain-1h-3h-are-mutually-exclusive-?new=17663899). Closes influxdata#6583
Relevant telegraf.conf:
System info:
Telegraf 1.12.4
Raspbian Linux, kenrel 4.19.66
Steps to reproduce:
It's raining at my location right now. Temperature, humidity, and other values are refreshed every 10m by the plugin. The sample plugin configuration says that API data is updated every 10 minutes, though the openweathermap site merely indicates "<2 hours".
A call to the API shows this:
Because the plugin references the 3h value which isn't present at the moment in the API, my graphs do not show that it is currently raining.
Expected behavior:
I'd like my data points to reflect current rain values as much as possible.
Actual behavior:
Current rain values aren't shown as the API isn't returning a "3h" average.
The text was updated successfully, but these errors were encountered: