Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Workspace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
65
Merge Requests
65
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Plasma Workspace
Commits
a9c537db
Commit
a9c537db
authored
Dec 23, 2018
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[weather dataengine] noaa: use https over http
parent
075629b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dataengines/weather/ions/noaa/ion_noaa.cpp
dataengines/weather/ions/noaa/ion_noaa.cpp
+3
-3
No files found.
dataengines/weather/ions/noaa/ion_noaa.cpp
View file @
a9c537db
...
...
@@ -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
(
"http
s
://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
* <http
s
://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
(
"http
s://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"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment