KWeatherCore

kweathercore

Introduction

Get weather forecast and alerts anywhere on the earth easy. LibKWeather provides you a highly abstracted library for things related to weather.

Main Components

Minimal Example

#include <KWeatherCore/WeatherForecastSource>
using namespace KWeatherCore;
//...
// Get the weatherforecast of Paris
auto m_pendingForecast = m_source.requestData(48.86, 2.34);
connect(m_pendingForecast, &PendingWeatherForecast::finished, [m_pendingForecast]{auto m_weatherData = m_pendingForecast->value();
m_pendingForecast->deleteLater();});
connect(m_pendingForecast, &PendingWeatherForecast::networkError, []{qDebug() << "network error";});
//...
The WeatherForecastSource class is intended for query weather information about a location.
PendingWeatherForecast * requestData(double latitude, double longitude)
requestData
Author(s)
Han Young <hanyo.nosp@m.ung@.nosp@m.proto.nosp@m.nmai.nosp@m.l.com>
Devin Lin <espid.nosp@m.ev@g.nosp@m.mail..nosp@m.com>
License(s)
GPLv2