Open syunjiang126 opened 1 month ago
This API is available. https://api.open-meteo.com/v1/forecast For example, we can create an API request.
QUrl api_url(QStringLiteral("https://api.open-meteo.com/v1/forecast"));
QUrlQuery query;
query.addQueryItem("latitude", QString::number(latitude));
query.addQueryItem("longitude", QString::number(longitude));
query.addQueryItem("hourly", "temperature_2m,cloudcover,windspeed_10m,winddirection_10m,windgusts_10m");
query.addQueryItem("daily", "precipitation_sum");
query.addQueryItem("timezone", "Europe%2FMoscow");
api_url.setQuery(query);
QNetworkRequest request(api_url);
However, purchases may be required for instant updates.
Could we add a weather display feature that integrates flight route planning with real-time weather forecasts, displaying weather phenomena in the flight route area in real time, just like WSV3?