Skip to content
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

Flying with weather show #11664

Open
syunjiang126 opened this issue Jul 8, 2024 · 1 comment
Open

Flying with weather show #11664

syunjiang126 opened this issue Jul 8, 2024 · 1 comment

Comments

@syunjiang126
Copy link

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?

@flavves
Copy link

flavves commented Jul 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants