Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Panel Plugins
xfce4-weather-plugin
Commits
97601ab2
Commit
97601ab2
authored
Jun 28, 2020
by
OlivierDuchateau
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to the 2.0 API
parent
af009015
Pipeline
#1136
passed with stages
in 1 minute and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
panel-plugin/weather.c
panel-plugin/weather.c
+1
-1
panel-plugin/weather.h
panel-plugin/weather.h
+1
-1
No files found.
panel-plugin/weather.c
View file @
97601ab2
...
@@ -656,7 +656,7 @@ update_handler(plugin_data *data)
...
@@ -656,7 +656,7 @@ update_handler(plugin_data *data)
/* build url */
/* build url */
url
=
g_strdup_printf
(
"https://api.met.no"
url
=
g_strdup_printf
(
"https://api.met.no"
"/weatherapi/locationforecast/%s/"
"/weatherapi/locationforecast/%s/"
"?lat=%s&lon=%s&
msl
=%d"
,
"
classic
?lat=%s&lon=%s&
altitude
=%d"
,
api_version
,
api_version
,
data
->
lat
,
data
->
lon
,
data
->
msl
);
data
->
lat
,
data
->
lon
,
data
->
msl
);
...
...
panel-plugin/weather.h
View file @
97601ab2
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define MAX_FORECAST_DAYS 10
#define MAX_FORECAST_DAYS 10
#define DEFAULT_FORECAST_DAYS 5
#define DEFAULT_FORECAST_DAYS 5
#define MAX_SCROLLBOX_LINES 10
#define MAX_SCROLLBOX_LINES 10
#define FORECAST_API "
1.9
"
#define FORECAST_API "
2.0
"
G_BEGIN_DECLS
G_BEGIN_DECLS
...
...
Romain Bouvier
@skunnyk
mentioned in issue
#18 (closed)
·
Jul 05, 2020
mentioned in issue
#18 (closed)
mentioned in issue #18
Toggle commit list
Romain Bouvier
@skunnyk
mentioned in issue
#21 (closed)
·
Jul 22, 2020
mentioned in issue
#21 (closed)
mentioned in issue #21
Toggle commit list
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