Skip to content

KeyError due to pressure_trend + other keys missing from better_forecast API response #50

@jdandrea

Description

@jdandrea

Filing this here in case others are noticing the same issue. This appears to be a WeatherFlow issue, however if they're mid-changing their API for some reason it may be necessary to adjust on the weatherflow4py end too. Hopefully this is just a hiccup.

The issue: pressure_trend and five other previously expected key/value pairs have gone missing from my current_conditions response in the past 24 hours or so, leading to a KeyError (redacted API call for reference, called in WeatherFlowRestAPI).

In addition to pressure_trend, also missing from my current_conditions are these:

  • solar_radiation
  • time
  • uv
  • wet_bulb_globe_temperature
  • wet_bulb_temperature

They're all documented so they shouldn't be missing in the response IMO. I've also filed a support request with WeatherFlow to see if anything odd is happening on their end.

The following are also missing, however they appear to be considered optional because they have default values and are also only supported when making a point/coordinate request anyway.

  • brightness
  • station_pressure
  • delta_t
  • dew_point
  • lightning_strike_count_last_1hr
  • lightning_strike_count_last_3hr
  • lightning_strike_last_distance
  • lightning_strike_last_distance_msg
  • lightning_strike_last_epoch
  • precip_accum_local_day
  • precip_accum_local_yesterday
  • precip_minutes_local_day
  • precip_minutes_local_yesterday
  • air_density
  • is_precip_local_yesterday_rain_check

Note that, in accordance with the API, a station ID is being passed in and not a point/coordinate, so pressure_trend ought to be returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions