Skip to content

OpenWeather's One Call 3.0 API change #29

@grm1209

Description

@grm1209

OpenWeather's One Call 3.0 API changed element "timezone_offset" to "timezone". The changes to OpenWeather.cpp are:

62,62c61,62
< String url = "https://api.openweathermap.org/data/3.0/onecall?lat=" + latitude + "&lon=" + longitude + "&exclude=minutely" + exclude + "&units=" + units + "&lang=" + language + "&appid=" + api_key;

String url = "https://api.openweathermap.org/data/2.5/onecall?lat=" + latitude + "&lon=" + longitude + "&exclude=minutely" + exclude + "&units=" + units + "&lang=" + language + "&appid=" + api_key;
519c518
< if (currentKey == "timezone") timezone = value;


if (currentKey == "timezone_offset") timezone = value;

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