[weather dataengine] noaa: use https over http

parent 075629b9
......@@ -179,7 +179,7 @@ bool NOAAIon::updateIonSource(const QString& source)
// Parses city list and gets the correct city based on ID number
void NOAAIon::getXMLSetup() const
{
const QUrl url(QStringLiteral("http://www.weather.gov/data/current_obs/index.xml"));
const QUrl url(QStringLiteral("https://www.weather.gov/data/current_obs/index.xml"));
KIO::TransferJob* getJob = KIO::get(url, KIO::NoReload, KIO::HideProgressInfo);
......@@ -667,7 +667,7 @@ void NOAAIon::updateWeather(const QString& source)
/**
* Determine the condition icon based on the list of possible NOAA weather conditions as defined at
* <http://www.weather.gov/xml/current_obs/weather.php> and
* <https://www.weather.gov/xml/current_obs/weather.php> and
* <https://graphical.weather.gov/xml/mdl/XML/Design/MDL_XML_Design.htm#_Toc141760782>
* Since the number of NOAA weather conditions need to be fitted into the narowly defined groups in IonInterface::ConditionIcons, we
* try to group the NOAA conditions as best as we can based on their priorities/severity.
......@@ -775,7 +775,7 @@ void NOAAIon::getForecast(const QString& source)
/* Assuming that we have the latitude and longitude data at this point, get the 7-day
* forecast.
*/
const QUrl url(QLatin1String("http://www.weather.gov/forecasts/xml/sample_products/browser_interface/"
const QUrl url(QLatin1String("https://graphical.weather.gov/xml/sample_products/browser_interface/"
"ndfdBrowserClientByDay.php?lat=") + QString::number(lat) +
QLatin1String("&lon=") + QString::number(lon) +
QLatin1String("&format=24+hourly&numDays=7"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment