Skip to content

Switch to OWM One Call API

Isaac Melan requested to merge isaac.melan/ur-gameserver:owm-one-call into master

The swap to the One Call API requires accessing the API using a latitude and longitude for lookup, instead of a city ID. Thus, we've changed a few things:

  1. Updated the API call to only use the One Call API, including for the current weather and daily forecast.
  2. Removed the unused lookup to ground_level pressure, as it is not available in the One Call API.
  3. Added both city_lat and city_lon variables to look up the weather, as city_id is no longer available.
  4. Added the corresponding latitude and longitude variables to hubs.json. These were pulled directly from the existing OWM API.

Merge request reports