|
1
|
|
|
<?php |
|
2
|
|
|
namespace Jenel\Mock; |
|
3
|
|
|
|
|
4
|
|
|
class DarkSkyMock |
|
5
|
|
|
{ |
|
6
|
|
|
/** |
|
7
|
|
|
* public function that mocks nominatim.openstretmap |
|
8
|
|
|
* will return Dalarna as default |
|
9
|
|
|
*/ |
|
10
|
|
|
public function getWeather() : array |
|
11
|
|
|
{ |
|
12
|
|
|
$weather = [ |
|
13
|
|
|
"latitude" => 61.06037785, |
|
14
|
|
|
"longitude" => 14.2150873169591, |
|
15
|
|
|
"timezone" => "Europe/Stockholm MOCK", |
|
16
|
|
|
"currently" => [ |
|
17
|
|
|
"time" => 1575886847, |
|
18
|
|
|
"summary" => "Overcast", |
|
19
|
|
|
"icon" => "cloudy", |
|
20
|
|
|
"precipIntensity" => 0.0377, |
|
21
|
|
|
"precipProbability" => 0.06, |
|
22
|
|
|
"precipType" => "snow", |
|
23
|
|
|
"precipAccumulation" => 0.0458, |
|
24
|
|
|
"temperature" => -2.92, |
|
25
|
|
|
"apparentTemperature" => -6.68, |
|
26
|
|
|
"dewPoint" => -5.08, |
|
27
|
|
|
"humidity" => 0.85, |
|
28
|
|
|
"pressure" => 982.6, |
|
29
|
|
|
"windSpeed" => 2.67, |
|
30
|
|
|
"windGust" => 6.18, |
|
31
|
|
|
"windBearing" => 326, |
|
32
|
|
|
"cloudCover" => 0.94, |
|
33
|
|
|
"uvIndex" => 0, |
|
34
|
|
|
"visibility" => 16.093, |
|
35
|
|
|
"ozone" => 265.1 |
|
36
|
|
|
], |
|
37
|
|
|
"daily" => [ |
|
38
|
|
|
"summary" => "Possible light snow on Wednesday and Saturday.", |
|
39
|
|
|
"icon" => "snow", |
|
40
|
|
|
"data" => [ |
|
41
|
|
|
[ |
|
42
|
|
|
"time" => 1575846000, |
|
43
|
|
|
"summary" => "Overcast throughout the day.", |
|
44
|
|
|
"icon" => "cloudy", |
|
45
|
|
|
"sunriseTime" => 1575878640, |
|
46
|
|
|
"sunsetTime" => 1575899400, |
|
47
|
|
|
"moonPhase" => 0.42, |
|
48
|
|
|
"precipIntensity" => 0.0165, |
|
49
|
|
|
"precipIntensityMax" => 0.0799, |
|
50
|
|
|
"precipIntensityMaxTime" => 1575881940, |
|
51
|
|
|
"precipProbability" => 0.2, |
|
52
|
|
|
"precipType" => "snow", |
|
53
|
|
|
"precipAccumulation" => 0.3, |
|
54
|
|
|
"temperatureHigh" => 0.97, |
|
55
|
|
|
"temperatureHighTime" => 1575871200, |
|
56
|
|
|
"temperatureLow" => -6.67, |
|
57
|
|
|
"temperatureLowTime" => 1575961200, |
|
58
|
|
|
"apparentTemperatureHigh" => -2.57, |
|
59
|
|
|
"apparentTemperatureHighTime" => 1575871200, |
|
60
|
|
|
"apparentTemperatureLow" => -11.61, |
|
61
|
|
|
"apparentTemperatureLowTime" => 1575934080, |
|
62
|
|
|
"dewPoint" => -4.84, |
|
63
|
|
|
"humidity" => 0.83, |
|
64
|
|
|
"pressure" => 984.7, |
|
65
|
|
|
"windSpeed" => 3.28, |
|
66
|
|
|
"windGust" => 16.97, |
|
67
|
|
|
"windGustTime" => 1575846000, |
|
68
|
|
|
"windBearing" => 308, |
|
69
|
|
|
"cloudCover" => 0.88, |
|
70
|
|
|
"uvIndex" => 0, |
|
71
|
|
|
"uvIndexTime" => 1575889020, |
|
72
|
|
|
"visibility" => 16.093, |
|
73
|
|
|
"ozone" => 271.8, |
|
74
|
|
|
"temperatureMin" => -6.53, |
|
75
|
|
|
"temperatureMinTime" => 1575932400, |
|
76
|
|
|
"temperatureMax" => 1.48, |
|
77
|
|
|
"temperatureMaxTime" => 1575866220, |
|
78
|
|
|
"apparentTemperatureMin" => -11.6, |
|
79
|
|
|
"apparentTemperatureMinTime" => 1575932400, |
|
80
|
|
|
"apparentTemperatureMax" => -2.28, |
|
81
|
|
|
"apparentTemperatureMaxTime" => 1575867600 |
|
82
|
|
|
], |
|
83
|
|
|
[ |
|
84
|
|
|
"time" => 1575932400, |
|
85
|
|
|
"summary" => "Windy and foggy overnight.", |
|
86
|
|
|
"icon" => "clear-day", |
|
87
|
|
|
"sunriseTime" => 1575965100, |
|
88
|
|
|
"sunsetTime" => 1575985740, |
|
89
|
|
|
"moonPhase" => 0.45, |
|
90
|
|
|
"precipIntensity" => 0.0167, |
|
91
|
|
|
"precipIntensityMax" => 0.135, |
|
92
|
|
|
"precipIntensityMaxTime" => 1576018800, |
|
93
|
|
|
"precipProbability" => 0.12, |
|
94
|
|
|
"precipType" => "snow", |
|
95
|
|
|
"precipAccumulation" => 0.5, |
|
96
|
|
|
"temperatureHigh" => -5.05, |
|
97
|
|
|
"temperatureHighTime" => 1576000800, |
|
98
|
|
|
"temperatureLow" => -5.6, |
|
99
|
|
|
"temperatureLowTime" => 1576000800, |
|
100
|
|
|
"apparentTemperatureHigh" => -7.17, |
|
101
|
|
|
"apparentTemperatureHighTime" => 1575984840, |
|
102
|
|
|
"apparentTemperatureLow" => -9.55, |
|
103
|
|
|
"apparentTemperatureLowTime" => 1576000800, |
|
104
|
|
|
"dewPoint" => -9.41, |
|
105
|
|
|
"humidity" => 0.77, |
|
106
|
|
|
"pressure" => 1010.3, |
|
107
|
|
|
"windSpeed" => 2.79, |
|
108
|
|
|
"windGust" => 17.09, |
|
109
|
|
|
"windGustTime" => 1575945840, |
|
110
|
|
|
"windBearing" => 250, |
|
111
|
|
|
"cloudCover" => 0.39, |
|
112
|
|
|
"uvIndex" => 0, |
|
113
|
|
|
"uvIndexTime" => 1575975420, |
|
114
|
|
|
"visibility" => 15.905, |
|
115
|
|
|
"ozone" => 268.5, |
|
116
|
|
|
"temperatureMin" => -8.23, |
|
117
|
|
|
"temperatureMinTime" => 1575971700, |
|
118
|
|
|
"temperatureMax" => -1.71, |
|
119
|
|
|
"temperatureMaxTime" => 1576018800, |
|
120
|
|
|
"apparentTemperatureMin" => -11.61, |
|
121
|
|
|
"apparentTemperatureMinTime" => 1575934080, |
|
122
|
|
|
"apparentTemperatureMax" => -7.17, |
|
123
|
|
|
"apparentTemperatureMaxTime" => 1575984840 |
|
124
|
|
|
], |
|
125
|
|
|
[ |
|
126
|
|
|
"time" => 1576018800, |
|
127
|
|
|
"summary" => "Possible light snow and windy in the morning.", |
|
128
|
|
|
"icon" => "snow", |
|
129
|
|
|
"sunriseTime" => 1576051620, |
|
130
|
|
|
"sunsetTime" => 1576072140, |
|
131
|
|
|
"moonPhase" => 0.49, |
|
132
|
|
|
"precipIntensity" => 0.1774, |
|
133
|
|
|
"precipIntensityMax" => 0.4564, |
|
134
|
|
|
"precipIntensityMaxTime" => 1576052100, |
|
135
|
|
|
"precipProbability" => 0.59, |
|
136
|
|
|
"precipType" => "snow", |
|
137
|
|
|
"precipAccumulation" => 2.7, |
|
138
|
|
|
"temperatureHigh" => 3.27, |
|
139
|
|
|
"temperatureHighTime" => 1576065540, |
|
140
|
|
|
"temperatureLow" => -0.19, |
|
141
|
|
|
"temperatureLowTime" => 1576105440, |
|
142
|
|
|
"apparentTemperatureHigh" => -0.75, |
|
143
|
|
|
"apparentTemperatureHighTime" => 1576066080, |
|
144
|
|
|
"apparentTemperatureLow" => -3.17, |
|
145
|
|
|
"apparentTemperatureLowTime" => 1576087200, |
|
146
|
|
|
"dewPoint" => -1.81, |
|
147
|
|
|
"humidity" => 0.86, |
|
148
|
|
|
"pressure" => 998.2, |
|
149
|
|
|
"windSpeed" => 4.64, |
|
150
|
|
|
"windGust" => 18.35, |
|
151
|
|
|
"windGustTime" => 1576027680, |
|
152
|
|
|
"windBearing" => 182, |
|
153
|
|
|
"cloudCover" => 0.82, |
|
154
|
|
|
"uvIndex" => 0, |
|
155
|
|
|
"uvIndexTime" => 1576061820, |
|
156
|
|
|
"visibility" => 9.655, |
|
157
|
|
|
"ozone" => 268.7, |
|
158
|
|
|
"temperatureMin" => -2.26, |
|
159
|
|
|
"temperatureMinTime" => 1576018800, |
|
160
|
|
|
"temperatureMax" => 3.27, |
|
161
|
|
|
"temperatureMaxTime" => 1576065540, |
|
162
|
|
|
"apparentTemperatureMin" => -7.91, |
|
163
|
|
|
"apparentTemperatureMinTime" => 1576018800, |
|
164
|
|
|
"apparentTemperatureMax" => -0.75, |
|
165
|
|
|
"apparentTemperatureMaxTime" => 1576066080 |
|
166
|
|
|
], |
|
167
|
|
|
[ |
|
168
|
|
|
"time" => 1576105200, |
|
169
|
|
|
"summary" => "Overcast throughout the day.", |
|
170
|
|
|
"icon" => "cloudy", |
|
171
|
|
|
"sunriseTime" => 1576138080, |
|
172
|
|
|
"sunsetTime" => 1576158480, |
|
173
|
|
|
"moonPhase" => 0.52, |
|
174
|
|
|
"precipIntensity" => 0.0194, |
|
175
|
|
|
"precipIntensityMax" => 0.0629, |
|
176
|
|
|
"precipIntensityMaxTime" => 1576105200, |
|
177
|
|
|
"precipProbability" => 0.34, |
|
178
|
|
|
"precipType" => "snow", |
|
179
|
|
|
"precipAccumulation" => 0.3, |
|
180
|
|
|
"temperatureHigh" => 0.89, |
|
181
|
|
|
"temperatureHighTime" => 1576130400, |
|
182
|
|
|
"temperatureLow" => -1.62, |
|
183
|
|
|
"temperatureLowTime" => 1576220400, |
|
184
|
|
|
"apparentTemperatureHigh" => -2.21, |
|
185
|
|
|
"apparentTemperatureHighTime" => 1576130400, |
|
186
|
|
|
"apparentTemperatureLow" => -5.1, |
|
187
|
|
|
"apparentTemperatureLowTime" => 1576217940, |
|
188
|
|
|
"dewPoint" => -1.62, |
|
189
|
|
|
"humidity" => 0.88, |
|
190
|
|
|
"pressure" => 997.1, |
|
191
|
|
|
"windSpeed" => 2.4, |
|
192
|
|
|
"windGust" => 9.69, |
|
193
|
|
|
"windGustTime" => 1576105200, |
|
194
|
|
|
"windBearing" => 182, |
|
195
|
|
|
"cloudCover" => 1, |
|
196
|
|
|
"uvIndex" => 0, |
|
197
|
|
|
"uvIndexTime" => 1576148220, |
|
198
|
|
|
"visibility" => 15.893, |
|
199
|
|
|
"ozone" => 297.8, |
|
200
|
|
|
"temperatureMin" => -0.93, |
|
201
|
|
|
"temperatureMinTime" => 1576191600, |
|
202
|
|
|
"temperatureMax" => 1.28, |
|
203
|
|
|
"temperatureMaxTime" => 1576121400, |
|
204
|
|
|
"apparentTemperatureMin" => -3.88, |
|
205
|
|
|
"apparentTemperatureMinTime" => 1576191600, |
|
206
|
|
|
"apparentTemperatureMax" => -1.88, |
|
207
|
|
|
"apparentTemperatureMaxTime" => 1576122300 |
|
208
|
|
|
], |
|
209
|
|
|
[ |
|
210
|
|
|
"time" => 1576191600, |
|
211
|
|
|
"summary" => "Foggy throughout the day.", |
|
212
|
|
|
"icon" => "fog", |
|
213
|
|
|
"sunriseTime" => 1576224600, |
|
214
|
|
|
"sunsetTime" => 1576244880, |
|
215
|
|
|
"moonPhase" => 0.56, |
|
216
|
|
|
"precipIntensity" => 0.1112, |
|
217
|
|
|
"precipIntensityMax" => 0.2848, |
|
218
|
|
|
"precipIntensityMaxTime" => 1576259040, |
|
219
|
|
|
"precipProbability" => 0.31, |
|
220
|
|
|
"precipType" => "snow", |
|
221
|
|
|
"precipAccumulation" => 2.6, |
|
222
|
|
|
"temperatureHigh" => -1.01, |
|
223
|
|
|
"temperatureHighTime" => 1576216800, |
|
224
|
|
|
"temperatureLow" => -2.04, |
|
225
|
|
|
"temperatureLowTime" => 1576271160, |
|
226
|
|
|
"apparentTemperatureHigh" => -4.83, |
|
227
|
|
|
"apparentTemperatureHighTime" => 1576260000, |
|
228
|
|
|
"apparentTemperatureLow" => -5.91, |
|
229
|
|
|
"apparentTemperatureLowTime" => 1576287600, |
|
230
|
|
|
"dewPoint" => -3.68, |
|
231
|
|
|
"humidity" => 0.85, |
|
232
|
|
|
"pressure" => 990.4, |
|
233
|
|
|
"windSpeed" => 2.94, |
|
234
|
|
|
"windGust" => 9.19, |
|
235
|
|
|
"windGustTime" => 1576278000, |
|
236
|
|
|
"windBearing" => 120, |
|
237
|
|
|
"cloudCover" => 0.99, |
|
238
|
|
|
"uvIndex" => 0, |
|
239
|
|
|
"uvIndexTime" => 1576234680, |
|
240
|
|
|
"visibility" => 5.651, |
|
241
|
|
|
"ozone" => 293.4, |
|
242
|
|
|
"temperatureMin" => -2.32, |
|
243
|
|
|
"temperatureMinTime" => 1576248600, |
|
244
|
|
|
"temperatureMax" => -0.38, |
|
245
|
|
|
"temperatureMaxTime" => 1576191600, |
|
246
|
|
|
"apparentTemperatureMin" => -6, |
|
247
|
|
|
"apparentTemperatureMinTime" => 1576240080, |
|
248
|
|
|
"apparentTemperatureMax" => -3.88, |
|
249
|
|
|
"apparentTemperatureMaxTime" => 1576191600 |
|
250
|
|
|
], |
|
251
|
|
|
[ |
|
252
|
|
|
"time" => 1576278000, |
|
253
|
|
|
"summary" => "Possible light snow in the afternoon.", |
|
254
|
|
|
"icon" => "snow", |
|
255
|
|
|
"sunriseTime" => 1576311060, |
|
256
|
|
|
"sunsetTime" => 1576331220, |
|
257
|
|
|
"moonPhase" => 0.59, |
|
258
|
|
|
"precipIntensity" => 0.2731, |
|
259
|
|
|
"precipIntensityMax" => 0.5003, |
|
260
|
|
|
"precipIntensityMaxTime" => 1576316280, |
|
261
|
|
|
"precipProbability" => 0.54, |
|
262
|
|
|
"precipType" => "snow", |
|
263
|
|
|
"precipAccumulation" => 6, |
|
264
|
|
|
"temperatureHigh" => 0.37, |
|
265
|
|
|
"temperatureHighTime" => 1576324740, |
|
266
|
|
|
"temperatureLow" => -3.38, |
|
267
|
|
|
"temperatureLowTime" => 1576393200, |
|
268
|
|
|
"apparentTemperatureHigh" => -2.36, |
|
269
|
|
|
"apparentTemperatureHighTime" => 1576325340, |
|
270
|
|
|
"apparentTemperatureLow" => -4.97, |
|
271
|
|
|
"apparentTemperatureLowTime" => 1576384680, |
|
272
|
|
|
"dewPoint" => -3.55, |
|
273
|
|
|
"humidity" => 0.84, |
|
274
|
|
|
"pressure" => 984.3, |
|
275
|
|
|
"windSpeed" => 2.45, |
|
276
|
|
|
"windGust" => 10.21, |
|
277
|
|
|
"windGustTime" => 1576288500, |
|
278
|
|
|
"windBearing" => 64, |
|
279
|
|
|
"cloudCover" => 0.98, |
|
280
|
|
|
"uvIndex" => 0, |
|
281
|
|
|
"uvIndexTime" => 1576321140, |
|
282
|
|
|
"visibility" => 0.63, |
|
283
|
|
|
"ozone" => 319.7, |
|
284
|
|
|
"temperatureMin" => -1.97, |
|
285
|
|
|
"temperatureMinTime" => 1576360680, |
|
286
|
|
|
"temperatureMax" => 0.37, |
|
287
|
|
|
"temperatureMaxTime" => 1576324740, |
|
288
|
|
|
"apparentTemperatureMin" => -5.91, |
|
289
|
|
|
"apparentTemperatureMinTime" => 1576287600, |
|
290
|
|
|
"apparentTemperatureMax" => -2.36, |
|
291
|
|
|
"apparentTemperatureMaxTime" => 1576325340 |
|
292
|
|
|
], |
|
293
|
|
|
[ |
|
294
|
|
|
"time" => 1576364400, |
|
295
|
|
|
"summary" => "Mostly cloudy throughout the day.", |
|
296
|
|
|
"icon" => "fog", |
|
297
|
|
|
"sunriseTime" => 1576397520, |
|
298
|
|
|
"sunsetTime" => 1576417620, |
|
299
|
|
|
"moonPhase" => 0.63, |
|
300
|
|
|
"precipIntensity" => 0.0323, |
|
301
|
|
|
"precipIntensityMax" => 0.212, |
|
302
|
|
|
"precipIntensityMaxTime" => 1576367400, |
|
303
|
|
|
"precipProbability" => 0.32, |
|
304
|
|
|
"precipType" => "snow", |
|
305
|
|
|
"precipAccumulation" => 0.8, |
|
306
|
|
|
"temperatureHigh" => -2.73, |
|
307
|
|
|
"temperatureHighTime" => 1576389600, |
|
308
|
|
|
"temperatureLow" => -6.73, |
|
309
|
|
|
"temperatureLowTime" => 1576479600, |
|
310
|
|
|
"apparentTemperatureHigh" => -2.9, |
|
311
|
|
|
"apparentTemperatureHighTime" => 1576390620, |
|
312
|
|
|
"apparentTemperatureLow" => -9.61, |
|
313
|
|
|
"apparentTemperatureLowTime" => 1576479600, |
|
314
|
|
|
"dewPoint" => -7.67, |
|
315
|
|
|
"humidity" => 0.76, |
|
316
|
|
|
"pressure" => 989.2, |
|
317
|
|
|
"windSpeed" => 1.44, |
|
318
|
|
|
"windGust" => 2.96, |
|
319
|
|
|
"windGustTime" => 1576364400, |
|
320
|
|
|
"windBearing" => 329, |
|
321
|
|
|
"cloudCover" => 0.63, |
|
322
|
|
|
"uvIndex" => 0, |
|
323
|
|
|
"uvIndexTime" => 1576407540, |
|
324
|
|
|
"visibility" => 14.725, |
|
325
|
|
|
"ozone" => 323.5, |
|
326
|
|
|
"temperatureMin" => -6.25, |
|
327
|
|
|
"temperatureMinTime" => 1576448520, |
|
328
|
|
|
"temperatureMax" => -1.38, |
|
329
|
|
|
"temperatureMaxTime" => 1576364400, |
|
330
|
|
|
"apparentTemperatureMin" => -8.52, |
|
331
|
|
|
"apparentTemperatureMinTime" => 1576446060, |
|
332
|
|
|
"apparentTemperatureMax" => -2.9, |
|
333
|
|
|
"apparentTemperatureMaxTime" => 1576390620 |
|
334
|
|
|
], |
|
335
|
|
|
[ |
|
336
|
|
|
"time" => 1576450800, |
|
337
|
|
|
"summary" => "Clear throughout the day.", |
|
338
|
|
|
"icon" => "clear-day", |
|
339
|
|
|
"sunriseTime" => 1576483980, |
|
340
|
|
|
"sunsetTime" => 1576504020, |
|
341
|
|
|
"moonPhase" => 0.66, |
|
342
|
|
|
"precipIntensity" => 0.0045, |
|
343
|
|
|
"precipIntensityMax" => 0.0099, |
|
344
|
|
|
"precipIntensityMaxTime" => 1576509420, |
|
345
|
|
|
"precipProbability" => 0.09, |
|
346
|
|
|
"precipType" => "snow", |
|
347
|
|
|
"precipAccumulation" => 0.2, |
|
348
|
|
|
"temperatureHigh" => -3.93, |
|
349
|
|
|
"temperatureHighTime" => 1576498500, |
|
350
|
|
|
"temperatureLow" => -6.02, |
|
351
|
|
|
"temperatureLowTime" => 1576531980, |
|
352
|
|
|
"apparentTemperatureHigh" => -5.52, |
|
353
|
|
|
"apparentTemperatureHighTime" => 1576509060, |
|
354
|
|
|
"apparentTemperatureLow" => -8.79, |
|
355
|
|
|
"apparentTemperatureLowTime" => 1576545060, |
|
356
|
|
|
"dewPoint" => -11.29, |
|
357
|
|
|
"humidity" => 0.65, |
|
358
|
|
|
"pressure" => 998.1, |
|
359
|
|
|
"windSpeed" => 1.35, |
|
360
|
|
|
"windGust" => 2.62, |
|
361
|
|
|
"windGustTime" => 1576481220, |
|
362
|
|
|
"windBearing" => 247, |
|
363
|
|
|
"cloudCover" => 0.35, |
|
364
|
|
|
"uvIndex" => 0, |
|
365
|
|
|
"uvIndexTime" => 1576493940, |
|
366
|
|
|
"visibility" => 16.093, |
|
367
|
|
|
"ozone" => 356.3, |
|
368
|
|
|
"temperatureMin" => -7.13, |
|
369
|
|
|
"temperatureMinTime" => 1576485480, |
|
370
|
|
|
"temperatureMax" => -3.93, |
|
371
|
|
|
"temperatureMaxTime" => 1576498500, |
|
372
|
|
|
"apparentTemperatureMin" => -9.99, |
|
373
|
|
|
"apparentTemperatureMinTime" => 1576485120, |
|
374
|
|
|
"apparentTemperatureMax" => -4.86, |
|
375
|
|
|
"apparentTemperatureMaxTime" => 1576464120 |
|
376
|
|
|
] |
|
377
|
|
|
] |
|
378
|
|
|
], |
|
379
|
|
|
"alerts" => [ |
|
380
|
|
|
[ |
|
381
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
382
|
|
|
"regions" => [ |
|
383
|
|
|
"Dalarna" |
|
384
|
|
|
], |
|
385
|
|
|
"severity" => "warning", |
|
386
|
|
|
"time" => 1575625393, |
|
387
|
|
|
"expires" => 1576057508, |
|
388
|
|
|
"description" => "When => Night towards Saturday until Saturday afternoon. Where => The southern part Intensity => Total amount 10-15 cm of fresh snow Comment => Most intense during late night and Saturday morning.\n", |
|
389
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
390
|
|
|
], |
|
391
|
|
|
[ |
|
392
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
393
|
|
|
"regions" => [ |
|
394
|
|
|
"Dalarna" |
|
395
|
|
|
], |
|
396
|
|
|
"severity" => "warning", |
|
397
|
|
|
"time" => 1575815108, |
|
398
|
|
|
"expires" => 1576247108, |
|
399
|
|
|
"description" => "When => Until late tonight Where => The whole area Intensity => 5-15 cm with the highest values in the northern part Comment => In the southern part, the snowfall turns into rain towards the evening whcih may freeze on on cold roads.\n", |
|
400
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
401
|
|
|
], |
|
402
|
|
|
[ |
|
403
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
404
|
|
|
"regions" => [ |
|
405
|
|
|
"Dalarna" |
|
406
|
|
|
], |
|
407
|
|
|
"severity" => "warning", |
|
408
|
|
|
"time" => 1575712028, |
|
409
|
|
|
"expires" => 1576144209, |
|
410
|
|
|
"description" => "When => Where => Intensity => Comment =>\n", |
|
411
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
412
|
|
|
], |
|
413
|
|
|
[ |
|
414
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
415
|
|
|
"regions" => [ |
|
416
|
|
|
"Dalarna" |
|
417
|
|
|
], |
|
418
|
|
|
"severity" => "warning", |
|
419
|
|
|
"time" => 1575712209, |
|
420
|
|
|
"expires" => 1576144209, |
|
421
|
|
|
"description" => "When => On Saturday Where => The southern part Intensity => - Comment => Rain or snow followed by freezing.\n", |
|
422
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
423
|
|
|
], |
|
424
|
|
|
[ |
|
425
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
426
|
|
|
"regions" => [ |
|
427
|
|
|
"Dalarna" |
|
428
|
|
|
], |
|
429
|
|
|
"severity" => "warning", |
|
430
|
|
|
"time" => 1575711290, |
|
431
|
|
|
"expires" => 1576143308, |
|
432
|
|
|
"description" => "When => From Sunday dinner snowfall and in the rest of Sunday Where => The whole area Intensity => 10-15 cm Comment =>\n", |
|
433
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
434
|
|
|
], |
|
435
|
|
|
[ |
|
436
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
437
|
|
|
"regions" => [ |
|
438
|
|
|
"Dalarna" |
|
439
|
|
|
], |
|
440
|
|
|
"severity" => "warning", |
|
441
|
|
|
"time" => 1575690907, |
|
442
|
|
|
"expires" => 1576122907, |
|
443
|
|
|
"description" => "When => Saturday morning Where => The southern part Intensity => - Comment => Freezing rain that can cause slippery conditions.\n", |
|
444
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
445
|
|
|
], |
|
446
|
|
|
[ |
|
447
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
448
|
|
|
"regions" => [ |
|
449
|
|
|
"Dalarna" |
|
450
|
|
|
], |
|
451
|
|
|
"severity" => "warning", |
|
452
|
|
|
"time" => 1575745510, |
|
453
|
|
|
"expires" => 1576177510, |
|
454
|
|
|
"description" => "When => Sunday Where => The whole area Intensity => 5-15 cm with the highest values in the northern part Comment => In the southern part, the snowfall turns into rain during the evening\n", |
|
455
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
456
|
|
|
], |
|
457
|
|
|
[ |
|
458
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
459
|
|
|
"regions" => [ |
|
460
|
|
|
"Dalarna" |
|
461
|
|
|
], |
|
462
|
|
|
"severity" => "warning", |
|
463
|
|
|
"time" => 1575625393, |
|
464
|
|
|
"expires" => 1576057508, |
|
465
|
|
|
"description" => "When => Tonight and night towards Saturday Where => The southern part Intensity => - Comment => Freezing rain that can cause slippery conditions.\n", |
|
466
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
467
|
|
|
], |
|
468
|
|
|
[ |
|
469
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
470
|
|
|
"regions" => [ |
|
471
|
|
|
"Dalarna" |
|
472
|
|
|
], |
|
473
|
|
|
"severity" => "warning", |
|
474
|
|
|
"time" => 1575593708, |
|
475
|
|
|
"expires" => 1576025708, |
|
476
|
|
|
"description" => "When => During night to Friday Where => In the northern part, from Siljan and north. Intensity => - Comment => Rain or snow-mixed rain on cold roads\n", |
|
477
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
478
|
|
|
], |
|
479
|
|
|
[ |
|
480
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
481
|
|
|
"regions" => [ |
|
482
|
|
|
"Dalarna" |
|
483
|
|
|
], |
|
484
|
|
|
"severity" => "warning", |
|
485
|
|
|
"time" => 1575571244, |
|
486
|
|
|
"expires" => 1576003244, |
|
487
|
|
|
"description" => "When => Until Friday morning Where => In the northern part, from Siljan and north. Intensity => - Comment => Rain or snow-mixed rain on cold roads\n", |
|
488
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
489
|
|
|
], |
|
490
|
|
|
[ |
|
491
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
492
|
|
|
"regions" => [ |
|
493
|
|
|
"Dalarna" |
|
494
|
|
|
], |
|
495
|
|
|
"severity" => "warning", |
|
496
|
|
|
"time" => 1575537378, |
|
497
|
|
|
"expires" => 1575969611, |
|
498
|
|
|
"description" => "When => From night to Friday Where => Northern parts Intensity => Comment => Rain or snow-mixed rain on cold roads\n", |
|
499
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
500
|
|
|
], |
|
501
|
|
|
[ |
|
502
|
|
|
"title" => "Dalarnas Län Utom Dalafjällen", |
|
503
|
|
|
"regions" => [ |
|
504
|
|
|
"Dalarna" |
|
505
|
|
|
], |
|
506
|
|
|
"severity" => "warning", |
|
507
|
|
|
"time" => 1575882353, |
|
508
|
|
|
"expires" => 1576314611, |
|
509
|
|
|
"description" => "When => During the afternoon Where => In the southern part Intensity => - Comment => Rain or wet snow followed by clear sky and freezing.\n", |
|
510
|
|
|
"uri" => "http =>//www.smhi.se/vadret/vadret-i-sverige/Varningar" |
|
511
|
|
|
] |
|
512
|
|
|
], |
|
513
|
|
|
"offset" => 1 |
|
514
|
|
|
]; |
|
515
|
|
|
|
|
516
|
|
|
$data = [ |
|
517
|
|
|
0 => $weather |
|
518
|
|
|
]; |
|
519
|
|
|
return $data; |
|
520
|
|
|
} |
|
521
|
|
|
} |
|
522
|
|
|
|
|
523
|
|
|
|
|
524
|
|
|
|
|
525
|
|
|
|
|
526
|
|
|
// $week = [ |
|
527
|
|
|
// "contentTitle" => "Forecast for today and next 7 days", |
|
528
|
|
|
// "weather" => [ |
|
529
|
|
|
// 0 => [ |
|
530
|
|
|
// "date" => "Wed 4 Dec 2019", |
|
531
|
|
|
// "sum" => "Mostly Cloudy", |
|
532
|
|
|
// "temp" => -0.1000000000000000055511151231257827021181583404541015625, |
|
533
|
|
|
// "icon" => "<i class=\"fas fa-cloud-sun\"></i>", |
|
534
|
|
|
// "position" => "Europe/Stockholm" |
|
535
|
|
|
// ], |
|
536
|
|
|
// 1 => [ |
|
537
|
|
|
// "date" => "Thu 5 Dec 2019", |
|
538
|
|
|
// "sum" => "Windy in the morning and afternoon.", |
|
539
|
|
|
// "temp" => 2.399999999999999911182158029987476766109466552734375, |
|
540
|
|
|
// "icon" => "<i class=\"fas fa-wind\"></i>", |
|
541
|
|
|
// "position" => "Europe/Stockholm" |
|
542
|
|
|
// ], |
|
543
|
|
|
// 2 => [ |
|
544
|
|
|
// "date" => "Fri 6 Dec 2019", |
|
545
|
|
|
// "sum" => "Light rain overnight.", |
|
546
|
|
|
// "temp" => -0.8000000000000000444089209850062616169452667236328125, |
|
547
|
|
|
// "icon" => "<i class=\"fas fa-cloud-rain\"></i>", |
|
548
|
|
|
// "position" => "Europe/Stockholm" |
|
549
|
|
|
// ], |
|
550
|
|
|
// 3 => [ |
|
551
|
|
|
// "date" => "Sat 7 Dec 2019", |
|
552
|
|
|
// "sum" => "Light snow in the morning and afternoon.", |
|
553
|
|
|
// "temp" => -1.8000000000000000444089209850062616169452667236328125, |
|
554
|
|
|
// "icon" => "<i class=\"fas fa-snowflake\"></i>", |
|
555
|
|
|
// "position" => "Europe/Stockholm" |
|
556
|
|
|
// ], |
|
557
|
|
|
// 4 => [ |
|
558
|
|
|
// "date" => "Sun 8 Dec 2019", |
|
559
|
|
|
// "sum" => "Clear throughout the day.", |
|
560
|
|
|
// "temp" => -7, |
|
561
|
|
|
// "icon" => "<i class=\"fas fa-sun\"> </i>", |
|
562
|
|
|
// "position" => "Europe/Stockholm" |
|
563
|
|
|
// ], |
|
564
|
|
|
// 5 => [ |
|
565
|
|
|
// "date" => "Mon 9 Dec 2019", |
|
566
|
|
|
// "sum" => "Overcast throughout the day.", |
|
567
|
|
|
// "temp" => -9.0999999999999996447286321199499070644378662109375, |
|
568
|
|
|
// "icon" => "<i class=\"fas fa-cloud\"></i>", |
|
569
|
|
|
// "position" => "Europe/Stockholm" |
|
570
|
|
|
// ], |
|
571
|
|
|
// 6 => [ |
|
572
|
|
|
// "date" => "Tue 10 Dec 2019", |
|
573
|
|
|
// "sum" => "Clear throughout the day.", |
|
574
|
|
|
// "temp" => -12.5999999999999996447286321199499070644378662109375, |
|
575
|
|
|
// "icon" => "<i class=\"fas fa-sun\"> </i>", |
|
576
|
|
|
// "position" => "Europe/Stockholm" |
|
577
|
|
|
// ] |
|
578
|
|
|
// ] |
|
579
|
|
|
// ]; |
|
580
|
|
|
|