Awesome Weather Widget - Version 1.5.8

Version Description

  • Language fixes and improvements
  • OpenWeatherMap attribution added as per licensing requirements
  • High and Low temperature fix
Download this release

Release Info

Developer halgatewood
Plugin Icon 128x128 Awesome Weather Widget
Version 1.5.8
Comparing to
See all releases

Code changes from version 1.5.7 to 1.5.8

awesome-weather.css CHANGED
@@ -95,3 +95,4 @@
95
 
96
  /* ERROR */
97
  div.awesome-weather-error { color: #ed7469; font-weight: bold; display: block; padding: 10px; text-align: center; border: solid 1px #ed7469; text-transform: uppercase; }
 
95
 
96
  /* ERROR */
97
  div.awesome-weather-error { color: #ed7469; font-weight: bold; display: block; padding: 10px; text-align: center; border: solid 1px #ed7469; text-transform: uppercase; }
98
+ .awesome-weather-attribution { text-align: center; font-size: 8px; font-weight: bold; font-family: sans-serif; padding: 5px; }
awesome-weather.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://halgatewood.com/awesome-weather
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: https://www.halgatewood.com
8
- Version: 1.5.7
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
@@ -66,6 +66,8 @@ function awesome_weather_logic( $atts )
66
  {
67
  global $awesome_weather_sizes;
68
 
 
 
69
  $rtn = "";
70
  $weather_data = array();
71
  $location = isset($atts['location']) ? $atts['location'] : false;
@@ -101,7 +103,7 @@ function awesome_weather_logic( $atts )
101
 
102
 
103
  // DISPLAY SYMBOL
104
- $units_display_symbol = apply_filters('awesome_weather_units_display', "°" );
105
  if( isset($atts['units_display_symbol']) ) $units_display_symbol = $atts['units_display_symbol'];
106
 
107
 
@@ -179,26 +181,23 @@ function awesome_weather_logic( $atts )
179
 
180
 
181
  // FORECAST
182
- if( $days_to_show != "hide" )
 
 
 
183
  {
184
- $forecast_ping = "http://api.openweathermap.org/data/2.5/forecast/daily?" . $api_query . "&lang=" . $locale . "&units=" . $units ."&cnt=7" . $appid_string;
185
- $forecast_ping_get = wp_remote_get( $forecast_ping );
186
-
187
- if( is_wp_error( $forecast_ping_get ) )
188
- {
189
- return awesome_weather_error( $forecast_ping_get->get_error_message() );
190
- }
191
-
192
- $forecast_data = json_decode( $forecast_ping_get['body'] );
193
-
194
- if( isset($forecast_data->cod) AND $forecast_data->cod == 404 )
195
- {
196
- return awesome_weather_error( $forecast_data->message );
197
- }
198
- else
199
- {
200
- $weather_data['forecast'] = $forecast_data;
201
- }
202
  }
203
 
204
  if($weather_data['now'] OR $weather_data['forecast'])
@@ -217,8 +216,20 @@ function awesome_weather_logic( $atts )
217
  // TODAYS TEMPS
218
  $today = $weather_data['now'];
219
  $today_temp = isset($today->main->temp) ? round($today->main->temp) : false;
220
- $today_high = isset($today->main->temp_max) ? round($today->main->temp_max) : false;
221
- $today_low = isset($today->main->temp_min) ? round($today->main->temp_min) : false;
 
 
 
 
 
 
 
 
 
 
 
 
222
 
223
 
224
  // TEXT COLOR
@@ -371,11 +382,12 @@ function awesome_weather_logic( $atts )
371
  {
372
  $rtn .= "<div class=\"awesome-weather-forecast awe_days_{$days_to_show} awecf\">";
373
  $c = 1;
374
- $dt_today = date( 'Ymd', current_time( 'timestamp', 0 ) );
375
  $forecast = $weather_data['forecast'];
376
  $days_to_show = (int) $days_to_show;
377
  $days_of_week = apply_filters( 'awesome_weather_days_of_week', array( __('Sun' ,'awesome-weather'), __('Mon' ,'awesome-weather'), __('Tue' ,'awesome-weather'), __('Wed' ,'awesome-weather'), __('Thu' ,'awesome-weather'), __('Fri' ,'awesome-weather'), __('Sat' ,'awesome-weather') ) );
378
 
 
 
379
  foreach( (array) $forecast->list as $forecast )
380
  {
381
  if( $dt_today >= date('Ymd', $forecast->dt)) continue;
@@ -408,6 +420,7 @@ function awesome_weather_logic( $atts )
408
  }
409
 
410
  $rtn .= "</div> <!-- /.awesome-weather-wrap -->";
 
411
  return $rtn;
412
  }
413
 
5
  Description: A weather widget that actually looks cool
6
  Author: Hal Gatewood
7
  Author URI: https://www.halgatewood.com
8
+ Version: 1.5.8
9
  Text Domain: awesome-weather
10
  Domain Path: /languages
11
 
66
  {
67
  global $awesome_weather_sizes;
68
 
69
+ $dt_today = date( 'Ymd', current_time( 'timestamp', 0 ) );
70
+
71
  $rtn = "";
72
  $weather_data = array();
73
  $location = isset($atts['location']) ? $atts['location'] : false;
103
 
104
 
105
  // DISPLAY SYMBOL
106
+ $units_display_symbol = apply_filters('awesome_weather_units_display', '&deg;' );
107
  if( isset($atts['units_display_symbol']) ) $units_display_symbol = $atts['units_display_symbol'];
108
 
109
 
181
 
182
 
183
  // FORECAST
184
+ $forecast_ping = "http://api.openweathermap.org/data/2.5/forecast/daily?" . $api_query . "&lang=" . $locale . "&units=" . $units ."&cnt=7" . $appid_string;
185
+ $forecast_ping_get = wp_remote_get( $forecast_ping );
186
+
187
+ if( is_wp_error( $forecast_ping_get ) )
188
  {
189
+ return awesome_weather_error( $forecast_ping_get->get_error_message() );
190
+ }
191
+
192
+ $forecast_data = json_decode( $forecast_ping_get['body'] );
193
+
194
+ if( isset($forecast_data->cod) AND $forecast_data->cod == 404 )
195
+ {
196
+ return awesome_weather_error( $forecast_data->message );
197
+ }
198
+ else
199
+ {
200
+ $weather_data['forecast'] = $forecast_data;
 
 
 
 
 
 
201
  }
202
 
203
  if($weather_data['now'] OR $weather_data['forecast'])
216
  // TODAYS TEMPS
217
  $today = $weather_data['now'];
218
  $today_temp = isset($today->main->temp) ? round($today->main->temp) : false;
219
+
220
+
221
+ // GET TODAY FROM FORECAST IF AVAILABLE
222
+ if( isset($weather_data['forecast']) AND isset($weather_data['forecast']->list) AND isset($weather_data['forecast']->list[0]) )
223
+ {
224
+ $forecast_today = $weather_data['forecast']->list[0];
225
+ $today_high = round($forecast_today->temp->max);
226
+ $today_low = round($forecast_today->temp->min);
227
+ }
228
+ else
229
+ {
230
+ $today_high = isset($today->main->temp_max) ? round($today->main->temp_max) : false;
231
+ $today_low = isset($today->main->temp_min) ? round($today->main->temp_min) : false;
232
+ }
233
 
234
 
235
  // TEXT COLOR
382
  {
383
  $rtn .= "<div class=\"awesome-weather-forecast awe_days_{$days_to_show} awecf\">";
384
  $c = 1;
 
385
  $forecast = $weather_data['forecast'];
386
  $days_to_show = (int) $days_to_show;
387
  $days_of_week = apply_filters( 'awesome_weather_days_of_week', array( __('Sun' ,'awesome-weather'), __('Mon' ,'awesome-weather'), __('Tue' ,'awesome-weather'), __('Wed' ,'awesome-weather'), __('Thu' ,'awesome-weather'), __('Fri' ,'awesome-weather'), __('Sat' ,'awesome-weather') ) );
388
 
389
+ if(!isset($forecast->list)) $forecast->list = array();
390
+
391
  foreach( (array) $forecast->list as $forecast )
392
  {
393
  if( $dt_today >= date('Ymd', $forecast->dt)) continue;
420
  }
421
 
422
  $rtn .= "</div> <!-- /.awesome-weather-wrap -->";
423
+ $rtn .= "<div class=\"awesome-weather-attribution\">" . __('Weather from', 'awesome-weather') . " OpenWeatherMap</div>";
424
  return $rtn;
425
  }
426
 
languages/awesome-weather.pot CHANGED
@@ -1,308 +1,323 @@
1
- # Copyright (C) 2016 Awesome Weather Widget
2
- # This file is distributed under the same license as the Awesome Weather Widget package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Awesome Weather Widget 1.5.7\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
7
- "POT-Creation-Date: 2016-01-09 07:34:17+00:00\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
14
-
15
- #: awesome-weather-settings.php:13
16
- msgid "Awesome Weather Widget"
17
- msgstr ""
18
-
19
- #: awesome-weather-settings.php:17
20
- msgid "Weather Widget Cache Cleared"
21
- msgstr ""
22
-
23
- #: awesome-weather-settings.php:28
24
- msgid "Clear all Awesome Weather Widget Cache"
25
- msgstr ""
26
-
27
- #: awesome-weather-settings.php:42
28
- msgid "Settings"
29
- msgstr ""
30
-
31
- #: awesome-weather-settings.php:46
32
- msgid "API Key Required"
33
- msgstr ""
34
-
35
- #: awesome-weather-settings.php:51
36
- msgid "Donate"
37
- msgstr ""
38
-
39
- #: awesome-weather-settings.php:54
40
- msgid "Upgrade"
41
- msgstr ""
42
-
43
- #: awesome-weather-settings.php:69
44
- msgid "OpenWeatherMaps APPID"
45
- msgstr ""
46
-
47
- #: awesome-weather-settings.php:70
48
- msgid "Error Handling"
49
- msgstr ""
50
-
51
- #: awesome-weather-settings.php:106
52
- msgid "Defined in wp-config"
53
- msgstr ""
54
-
55
- #: awesome-weather-settings.php:113 widget.php:97
56
- msgid "As of October 2015, OpenWeatherMap requires an APP ID key to access their weather data."
57
- msgstr ""
58
-
59
- #: awesome-weather-settings.php:115 widget.php:99
60
- msgid "Get your APPID"
61
- msgstr ""
62
-
63
- #: awesome-weather-settings.php:126
64
- msgid "Hidden in Source"
65
- msgstr ""
66
-
67
- #: awesome-weather-settings.php:127
68
- msgid "Display if Admin"
69
- msgstr ""
70
-
71
- #: awesome-weather-settings.php:128
72
- msgid "Display for Anyone"
73
- msgstr ""
74
-
75
- #: awesome-weather-settings.php:131
76
- msgid "What should the plugin do when there is an error?"
77
- msgstr ""
78
-
79
- #: awesome-weather.php:75
80
- msgid "C"
81
- msgstr ""
82
-
83
- #: awesome-weather.php:75
84
- msgid "F"
85
- msgstr ""
86
-
87
- #: awesome-weather.php:271
88
- msgid "N"
89
- msgstr ""
90
-
91
- #: awesome-weather.php:271
92
- msgid "NNE"
93
- msgstr ""
94
-
95
- #: awesome-weather.php:271
96
- msgid "NE"
97
- msgstr ""
98
-
99
- #: awesome-weather.php:271
100
- msgid "ENE"
101
- msgstr ""
102
-
103
- #: awesome-weather.php:271
104
- msgid "E"
105
- msgstr ""
106
-
107
- #: awesome-weather.php:271
108
- msgid "ESE"
109
- msgstr ""
110
-
111
- #: awesome-weather.php:271
112
- msgid "SE"
113
- msgstr ""
114
-
115
- #: awesome-weather.php:271
116
- msgid "SSE"
117
- msgstr ""
118
-
119
- #: awesome-weather.php:271
120
- msgid "S"
121
- msgstr ""
122
-
123
- #: awesome-weather.php:271
124
- msgid "SSW"
125
- msgstr ""
126
-
127
- #: awesome-weather.php:271
128
- msgid "SW"
129
- msgstr ""
130
-
131
- #: awesome-weather.php:271
132
- msgid "WSW"
133
- msgstr ""
134
-
135
- #: awesome-weather.php:271
136
- msgid "W"
137
- msgstr ""
138
-
139
- #: awesome-weather.php:271
140
- msgid "WNW"
141
- msgstr ""
142
-
143
- #: awesome-weather.php:271
144
- msgid "NW"
145
- msgstr ""
146
-
147
- #: awesome-weather.php:271
148
- msgid "NNW"
149
- msgstr ""
150
-
151
- #: awesome-weather.php:355
152
- msgid "mph"
153
- msgstr ""
154
-
155
- #: awesome-weather.php:355
156
- msgid "m/s"
157
- msgstr ""
158
-
159
- #: awesome-weather.php:364
160
- msgid "humidity:"
161
- msgstr ""
162
-
163
- #: awesome-weather.php:365
164
- msgid "wind:"
165
- msgstr ""
166
-
167
- #: awesome-weather.php:366
168
- msgid "H"
169
- msgstr ""
170
-
171
- #: awesome-weather.php:366
172
- msgid "L"
173
- msgstr ""
174
-
175
- #: awesome-weather.php:377
176
- msgid "Sun"
177
- msgstr ""
178
-
179
- #: awesome-weather.php:377
180
- msgid "Mon"
181
- msgstr ""
182
-
183
- #: awesome-weather.php:377
184
- msgid "Tue"
185
- msgstr ""
186
-
187
- #: awesome-weather.php:377
188
- msgid "Wed"
189
- msgstr ""
190
-
191
- #: awesome-weather.php:377
192
- msgid "Thu"
193
- msgstr ""
194
-
195
- #: awesome-weather.php:377
196
- msgid "Fri"
197
- msgstr ""
198
-
199
- #: awesome-weather.php:377
200
- msgid "Sat"
201
- msgstr ""
202
-
203
- #: awesome-weather.php:397
204
- msgid "extended forecast"
205
- msgstr ""
206
-
207
- #: awesome-weather.php:420
208
- msgid "No weather information available"
209
- msgstr ""
210
-
211
- #: awesome-weather.php:455
212
- msgid "No city found in OpenWeatherMap."
213
- msgstr ""
214
-
215
- #: awesome-weather.php:456
216
- msgid "Only one location found. The ID has been set automatically above."
217
- msgstr ""
218
-
219
- #: awesome-weather.php:457
220
- msgid "Please confirm your city: &nbsp;"
221
- msgstr ""
222
-
223
- #: widget.php:101
224
- msgid "and add it to the new settings page."
225
- msgstr ""
226
-
227
- #: widget.php:108
228
- msgid "Search for Your Location:"
229
- msgstr ""
230
-
231
- #: widget.php:109
232
- msgid "(i.e: London or New York City)"
233
- msgstr ""
234
-
235
- #: widget.php:116
236
- msgid "OpenWeatherMap City ID:"
237
- msgstr ""
238
-
239
- #: widget.php:117
240
- msgid "(use the field above to find the ID for your city)"
241
- msgstr ""
242
-
243
- #: widget.php:130
244
- msgid "Override Title:"
245
- msgstr ""
246
-
247
- #: widget.php:135
248
- msgid "Units:"
249
- msgstr ""
250
-
251
- #: widget.php:149
252
- msgid "Size:"
253
- msgstr ""
254
-
255
- #: widget.php:158
256
- msgid "Forecast:"
257
- msgstr ""
258
-
259
- #: widget.php:172
260
- msgid "Background Image:"
261
- msgstr ""
262
-
263
- #: widget.php:178
264
- msgid "Use Different Background Images Based on Weather"
265
- msgstr ""
266
-
267
- #: widget.php:182
268
- msgid "Custom Background Color:"
269
- msgstr ""
270
-
271
- #: widget.php:183
272
- msgid "overrides color changing"
273
- msgstr ""
274
-
275
- #: widget.php:188
276
- msgid "Text Color"
277
- msgstr ""
278
-
279
- #: widget.php:207
280
- msgid "Hide Current Condition Stats"
281
- msgstr ""
282
-
283
- #: widget.php:213
284
- msgid "Link to OpenWeatherMap"
285
- msgstr ""
286
-
287
- #: widget.php:217
288
- msgid "Widget Title: (optional)"
289
- msgstr ""
290
- #. Plugin Name of the plugin/theme
291
- msgid "Awesome Weather Widget"
292
- msgstr ""
293
-
294
- #. Plugin URI of the plugin/theme
295
- msgid "https://halgatewood.com/awesome-weather"
296
- msgstr ""
297
-
298
- #. Description of the plugin/theme
299
- msgid "A weather widget that actually looks cool"
300
- msgstr ""
301
-
302
- #. Author of the plugin/theme
303
- msgid "Hal Gatewood"
304
- msgstr ""
305
-
306
- #. Author URI of the plugin/theme
307
- msgid "https://www.halgatewood.com"
308
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Loco Gettext template
2
+ #, fuzzy
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Awesome Weather Widget 1.5.7\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/awesome-weather\n"
7
+ "POT-Creation-Date: 2016-01-09 07:34:17+00:00\n"
8
+ "POT-Revision-Date: Tue Feb 09 2016 12:16:40 GMT-0600 (CST)\n"
9
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
11
+ "Language-Team: LANGUAGE <LL@li.org>\n"
12
+ "Language: \n"
13
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-Basepath: .\n"
19
+ "X-Poedit-SearchPath-0: ..\n"
20
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
21
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
22
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
23
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
24
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
25
+ "X-Generator: Loco - https://localise.biz/"
26
+
27
+ #: ../awesome-weather-settings.php:13
28
+ msgid "Awesome Weather Widget"
29
+ msgstr ""
30
+
31
+ #: ../awesome-weather-settings.php:17
32
+ msgid "Weather Widget Cache Cleared"
33
+ msgstr ""
34
+
35
+ #: ../awesome-weather-settings.php:28
36
+ msgid "Clear all Awesome Weather Widget Cache"
37
+ msgstr ""
38
+
39
+ #: ../awesome-weather-settings.php:42
40
+ msgid "Settings"
41
+ msgstr ""
42
+
43
+ #: ../awesome-weather-settings.php:46
44
+ msgid "API Key Required"
45
+ msgstr ""
46
+
47
+ #: ../awesome-weather-settings.php:51
48
+ msgid "Donate"
49
+ msgstr ""
50
+
51
+ #: ../awesome-weather-settings.php:54
52
+ msgid "Upgrade"
53
+ msgstr ""
54
+
55
+ #: ../awesome-weather-settings.php:69
56
+ msgid "OpenWeatherMaps APPID"
57
+ msgstr ""
58
+
59
+ #: ../awesome-weather-settings.php:70
60
+ msgid "Error Handling"
61
+ msgstr ""
62
+
63
+ #: ../awesome-weather-settings.php:106
64
+ msgid "Defined in wp-config"
65
+ msgstr ""
66
+
67
+ #: ../awesome-weather-settings.php:113 ../widget.php:97
68
+ msgid ""
69
+ "As of October 2015, OpenWeatherMap requires an APP ID key to access their "
70
+ "weather data."
71
+ msgstr ""
72
+
73
+ #: ../awesome-weather-settings.php:115 ../widget.php:99
74
+ msgid "Get your APPID"
75
+ msgstr ""
76
+
77
+ #: ../awesome-weather-settings.php:126
78
+ msgid "Hidden in Source"
79
+ msgstr ""
80
+
81
+ #: ../awesome-weather-settings.php:127
82
+ msgid "Display if Admin"
83
+ msgstr ""
84
+
85
+ #: ../awesome-weather-settings.php:128
86
+ msgid "Display for Anyone"
87
+ msgstr ""
88
+
89
+ #: ../awesome-weather-settings.php:131
90
+ msgid "What should the plugin do when there is an error?"
91
+ msgstr ""
92
+
93
+ #. Plugin URI of the plugin/theme
94
+ msgid "https://halgatewood.com/awesome-weather"
95
+ msgstr ""
96
+
97
+ #. Description of the plugin/theme
98
+ msgid "A weather widget that actually looks cool"
99
+ msgstr ""
100
+
101
+ #. Author of the plugin/theme
102
+ msgid "Hal Gatewood"
103
+ msgstr ""
104
+
105
+ #. Author URI of the plugin/theme
106
+ msgid "https://www.halgatewood.com"
107
+ msgstr ""
108
+
109
+ #: ../awesome-weather.php:75
110
+ msgid "C"
111
+ msgstr ""
112
+
113
+ #: ../awesome-weather.php:75
114
+ msgid "F"
115
+ msgstr ""
116
+
117
+ #: ../awesome-weather.php:280
118
+ msgid "N"
119
+ msgstr ""
120
+
121
+ #: ../awesome-weather.php:280
122
+ msgid "NNE"
123
+ msgstr ""
124
+
125
+ #: ../awesome-weather.php:280
126
+ msgid "NE"
127
+ msgstr ""
128
+
129
+ #: ../awesome-weather.php:280
130
+ msgid "ENE"
131
+ msgstr ""
132
+
133
+ #: ../awesome-weather.php:280
134
+ msgid "E"
135
+ msgstr ""
136
+
137
+ #: ../awesome-weather.php:280
138
+ msgid "ESE"
139
+ msgstr ""
140
+
141
+ #: ../awesome-weather.php:280
142
+ msgid "SE"
143
+ msgstr ""
144
+
145
+ #: ../awesome-weather.php:280
146
+ msgid "SSE"
147
+ msgstr ""
148
+
149
+ #: ../awesome-weather.php:280
150
+ msgid "S"
151
+ msgstr ""
152
+
153
+ #: ../awesome-weather.php:280
154
+ msgid "SSW"
155
+ msgstr ""
156
+
157
+ #: ../awesome-weather.php:280
158
+ msgid "SW"
159
+ msgstr ""
160
+
161
+ #: ../awesome-weather.php:280
162
+ msgid "WSW"
163
+ msgstr ""
164
+
165
+ #: ../awesome-weather.php:280
166
+ msgid "W"
167
+ msgstr ""
168
+
169
+ #: ../awesome-weather.php:280
170
+ msgid "WNW"
171
+ msgstr ""
172
+
173
+ #: ../awesome-weather.php:280
174
+ msgid "NW"
175
+ msgstr ""
176
+
177
+ #: ../awesome-weather.php:280
178
+ msgid "NNW"
179
+ msgstr ""
180
+
181
+ #: ../awesome-weather.php:364
182
+ msgid "mph"
183
+ msgstr ""
184
+
185
+ #: ../awesome-weather.php:364
186
+ msgid "m/s"
187
+ msgstr ""
188
+
189
+ #: ../awesome-weather.php:373
190
+ msgid "humidity:"
191
+ msgstr ""
192
+
193
+ #: ../awesome-weather.php:374
194
+ msgid "wind:"
195
+ msgstr ""
196
+
197
+ #: ../awesome-weather.php:375
198
+ msgid "H"
199
+ msgstr ""
200
+
201
+ #: ../awesome-weather.php:375
202
+ msgid "L"
203
+ msgstr ""
204
+
205
+ #: ../awesome-weather.php:386
206
+ msgid "Sun"
207
+ msgstr ""
208
+
209
+ #: ../awesome-weather.php:386
210
+ msgid "Mon"
211
+ msgstr ""
212
+
213
+ #: ../awesome-weather.php:386
214
+ msgid "Tue"
215
+ msgstr ""
216
+
217
+ #: ../awesome-weather.php:386
218
+ msgid "Wed"
219
+ msgstr ""
220
+
221
+ #: ../awesome-weather.php:386
222
+ msgid "Thu"
223
+ msgstr ""
224
+
225
+ #: ../awesome-weather.php:386
226
+ msgid "Fri"
227
+ msgstr ""
228
+
229
+ #: ../awesome-weather.php:386
230
+ msgid "Sat"
231
+ msgstr ""
232
+
233
+ #: ../awesome-weather.php:408
234
+ msgid "extended forecast"
235
+ msgstr ""
236
+
237
+ #: ../awesome-weather.php:422
238
+ msgid "Weather from"
239
+ msgstr ""
240
+
241
+ #: ../awesome-weather.php:432
242
+ msgid "No weather information available"
243
+ msgstr ""
244
+
245
+ #: ../awesome-weather.php:467
246
+ msgid "No city found in OpenWeatherMap."
247
+ msgstr ""
248
+
249
+ #: ../awesome-weather.php:468
250
+ msgid "Only one location found. The ID has been set automatically above."
251
+ msgstr ""
252
+
253
+ #: ../awesome-weather.php:469
254
+ msgid "Please confirm your city: &nbsp;"
255
+ msgstr ""
256
+
257
+ #: ../widget.php:101
258
+ msgid "and add it to the new settings page."
259
+ msgstr ""
260
+
261
+ #: ../widget.php:108
262
+ msgid "Search for Your Location:"
263
+ msgstr ""
264
+
265
+ #: ../widget.php:109
266
+ msgid "(i.e: London or New York City)"
267
+ msgstr ""
268
+
269
+ #: ../widget.php:116
270
+ msgid "OpenWeatherMap City ID:"
271
+ msgstr ""
272
+
273
+ #: ../widget.php:117
274
+ msgid "(use the field above to find the ID for your city)"
275
+ msgstr ""
276
+
277
+ #: ../widget.php:130
278
+ msgid "Override Title:"
279
+ msgstr ""
280
+
281
+ #: ../widget.php:135
282
+ msgid "Units:"
283
+ msgstr ""
284
+
285
+ #: ../widget.php:149
286
+ msgid "Size:"
287
+ msgstr ""
288
+
289
+ #: ../widget.php:158
290
+ msgid "Forecast:"
291
+ msgstr ""
292
+
293
+ #: ../widget.php:172
294
+ msgid "Background Image:"
295
+ msgstr ""
296
+
297
+ #: ../widget.php:178
298
+ msgid "Use Different Background Images Based on Weather"
299
+ msgstr ""
300
+
301
+ #: ../widget.php:182
302
+ msgid "Custom Background Color:"
303
+ msgstr ""
304
+
305
+ #: ../widget.php:183
306
+ msgid "overrides color changing"
307
+ msgstr ""
308
+
309
+ #: ../widget.php:188
310
+ msgid "Text Color"
311
+ msgstr ""
312
+
313
+ #: ../widget.php:207
314
+ msgid "Hide Current Condition Stats"
315
+ msgstr ""
316
+
317
+ #: ../widget.php:213
318
+ msgid "Link to OpenWeatherMap"
319
+ msgstr ""
320
+
321
+ #: ../widget.php:217
322
+ msgid "Widget Title: (optional)"
323
+ msgstr ""
readme.txt CHANGED
@@ -1,6 +1,6 @@
1
- === Plugin Name ===
2
  Contributors: halgatewood
3
- Donate link: http://halgatewood.com/donate/
4
  Tags: widgets, sidebar, shortcode, openweathermap, weather, weather widget, forecast, global, temp, local weather,local forecast
5
  Requires at least: 3.5
6
  Tested up to: 4.4
@@ -22,8 +22,12 @@ Once you have the API Key you can simply add it in 'Settings' -> 'Awesome Weathe
22
  [View the API Key Help Document](https://halgatewood.com/docs/plugins/awesome-weather-widget/register-for-an-openweathermap-api-key-appid)
23
 
24
 
25
- Use the built in widget with all of its marvelous settings or add it to a page or theme with the shortcode: (all settings shown)
26
 
 
 
 
 
27
  `[awesome-weather location="Montreal" units="F" owm_city_id="6077243" size="tall" override_title="MTL" forecast_days="3" hide_stats="1" background="http://urltoanimage.jpg" custom_bg_color="#cccccc" inline_style="width: 200px; margin: 20px; float: left;" background_by_weather="1" text_color="#000" locale="fr"]`
28
 
29
  = Settings =
@@ -67,6 +71,8 @@ Use the built in widget with all of its marvelous settings or add it to a page o
67
  1. Add your API Key to the settings field in 'Settings' -> 'Awesome Weather' (added in version 1.5.3)
68
  1. Use shortcode or widget to display awesome weather on your awesome site
69
 
 
 
70
 
71
  == Screenshots ==
72
 
@@ -179,7 +185,12 @@ Changed API endpoints. Might not find weather without update.
179
 
180
  == Changelog ==
181
 
182
- = 1.5.7
 
 
 
 
 
183
  * Wording changes to help improve user experience, thus new updated .pot file
184
  * Bug fix for AWESOME_WEATHER_APPID constant, wasn't always being used.
185
  * Changed awesome-weather-widget.js to awesome-weather-widget-admin.js
1
+ === Awesome Weather Widget ===
2
  Contributors: halgatewood
3
+ Donate link: https://halgatewood.com/donate/
4
  Tags: widgets, sidebar, shortcode, openweathermap, weather, weather widget, forecast, global, temp, local weather,local forecast
5
  Requires at least: 3.5
6
  Tested up to: 4.4
22
  [View the API Key Help Document](https://halgatewood.com/docs/plugins/awesome-weather-widget/register-for-an-openweathermap-api-key-appid)
23
 
24
 
25
+ Use the built in widget with all of its marvelous settings or add it to a page or theme with the shortcode:
26
 
27
+ Easiest:
28
+ `[awesome-weather location="Oklahoma City"]`
29
+
30
+ All Available Parameters:
31
  `[awesome-weather location="Montreal" units="F" owm_city_id="6077243" size="tall" override_title="MTL" forecast_days="3" hide_stats="1" background="http://urltoanimage.jpg" custom_bg_color="#cccccc" inline_style="width: 200px; margin: 20px; float: left;" background_by_weather="1" text_color="#000" locale="fr"]`
32
 
33
  = Settings =
71
  1. Add your API Key to the settings field in 'Settings' -> 'Awesome Weather' (added in version 1.5.3)
72
  1. Use shortcode or widget to display awesome weather on your awesome site
73
 
74
+ The easiest shortcode setting is just: `[awesome-weather location="Oklahoma City"]`
75
+
76
 
77
  == Screenshots ==
78
 
185
 
186
  == Changelog ==
187
 
188
+ = 1.5.8 =
189
+ * Language fixes and improvements
190
+ * OpenWeatherMap attribution added as per licensing requirements
191
+ * High and Low temperature fix
192
+
193
+ = 1.5.7 =
194
  * Wording changes to help improve user experience, thus new updated .pot file
195
  * Bug fix for AWESOME_WEATHER_APPID constant, wasn't always being used.
196
  * Changed awesome-weather-widget.js to awesome-weather-widget-admin.js