meteocat 1.1.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +16 -2
- package/custom_components/meteocat/__init__.py +23 -1
- package/custom_components/meteocat/config_flow.py +56 -35
- package/custom_components/meteocat/const.py +21 -2
- package/custom_components/meteocat/coordinator.py +455 -0
- package/custom_components/meteocat/manifest.json +1 -1
- package/custom_components/meteocat/options_flow.py +104 -25
- package/custom_components/meteocat/sensor.py +340 -3
- package/custom_components/meteocat/strings.json +447 -2
- package/custom_components/meteocat/translations/ca.json +448 -3
- package/custom_components/meteocat/translations/en.json +447 -3
- package/custom_components/meteocat/translations/es.json +447 -2
- package/custom_components/meteocat/version.py +1 -1
- package/filetree.txt +1 -0
- package/images/api_limits.png +0 -0
- package/images/dynamic_sensors.png +0 -0
- package/images/pick_station.png +0 -0
- package/package.json +1 -1
- package/pyproject.toml +1 -1
|
@@ -7,11 +7,21 @@
|
|
|
7
7
|
},
|
|
8
8
|
"select_municipi": {
|
|
9
9
|
"description": "Select a municipality from the list.",
|
|
10
|
-
"title": "Municipality Selection"
|
|
10
|
+
"title": "Municipality Selection",
|
|
11
|
+
"data": {
|
|
12
|
+
"municipi": "Municipality"
|
|
13
|
+
}
|
|
11
14
|
},
|
|
12
15
|
"select_station": {
|
|
13
16
|
"description": "Select a station.",
|
|
14
|
-
"title": "Station Selection"
|
|
17
|
+
"title": "Station Selection",
|
|
18
|
+
"data": {
|
|
19
|
+
"station": "Stations"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"set_api_limits": {
|
|
23
|
+
"description": "Set the API limits for XEMA and PREDICTIONS.",
|
|
24
|
+
"title": "API limits"
|
|
15
25
|
}
|
|
16
26
|
},
|
|
17
27
|
"error": {
|
|
@@ -23,6 +33,38 @@
|
|
|
23
33
|
"unknown_error": "An unknown error occurred."
|
|
24
34
|
}
|
|
25
35
|
},
|
|
36
|
+
"options": {
|
|
37
|
+
"step":{
|
|
38
|
+
"init": {
|
|
39
|
+
"description": "Setup the API Key and the limits for XEMA and PREDICTIONS.",
|
|
40
|
+
"title": "Setup options",
|
|
41
|
+
"data": {
|
|
42
|
+
"option": "Options"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"update_api_and_limits": {
|
|
46
|
+
"description": "Setup the API Key and the limits for XEMA and PREDICTIONS.",
|
|
47
|
+
"title": "API Key and limits"
|
|
48
|
+
},
|
|
49
|
+
"update_limits_only": {
|
|
50
|
+
"description": "Setup the limits for XEMA and PREDICTIONS.",
|
|
51
|
+
"title": "API limits"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"error": {
|
|
55
|
+
"cannot_connect": "Cannot connect. Error when checking the new API Key.",
|
|
56
|
+
"unknown": "Unknown error when checking the new API Key.",
|
|
57
|
+
"invalid_limit": "Invalid limit. The limit must be a positive number."
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"selector": {
|
|
61
|
+
"option": {
|
|
62
|
+
"options": {
|
|
63
|
+
"update_api_and_limits": "Update API Key and limits.",
|
|
64
|
+
"update_limits_only": "Update API limits."
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
26
68
|
"entity": {
|
|
27
69
|
"sensor": {
|
|
28
70
|
"wind_speed": {
|
|
@@ -170,8 +212,410 @@
|
|
|
170
212
|
"name": "Date"
|
|
171
213
|
}
|
|
172
214
|
}
|
|
215
|
+
},
|
|
216
|
+
"alert_file_status": {
|
|
217
|
+
"name": "Alert File",
|
|
218
|
+
"state": {
|
|
219
|
+
"updated": "Updated",
|
|
220
|
+
"obsolete": "Obsolete"
|
|
221
|
+
},
|
|
222
|
+
"state_attributes": {
|
|
223
|
+
"update_date": {
|
|
224
|
+
"name": "Date"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"alerts": {
|
|
229
|
+
"name": "Alerts",
|
|
230
|
+
"state_attributes": {
|
|
231
|
+
"alert_1": {
|
|
232
|
+
"name": "Alert 1",
|
|
233
|
+
"state": {
|
|
234
|
+
"violent_weather": "Violent weather",
|
|
235
|
+
"rain_intensity": "Rain intensity",
|
|
236
|
+
"rain_amount": "Rain amount",
|
|
237
|
+
"snow_amount_24": "Snow amount in 24 hours",
|
|
238
|
+
"wind": "Wind",
|
|
239
|
+
"sea_state": "Sea state",
|
|
240
|
+
"cold": "Cold",
|
|
241
|
+
"heat": "Heat",
|
|
242
|
+
"night_heat": "Night heat"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"alert_2": {
|
|
246
|
+
"name": "Alert 2",
|
|
247
|
+
"state": {
|
|
248
|
+
"violent_weather": "Violent weather",
|
|
249
|
+
"rain_intensity": "Rain intensity",
|
|
250
|
+
"rain_amount": "Rain amount",
|
|
251
|
+
"snow_amount_24": "Snow amount in 24 hours",
|
|
252
|
+
"wind": "Wind",
|
|
253
|
+
"sea_state": "Sea state",
|
|
254
|
+
"cold": "Cold",
|
|
255
|
+
"heat": "Heat",
|
|
256
|
+
"night_heat": "Night heat"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"alert_3": {
|
|
260
|
+
"name": "Alert 3",
|
|
261
|
+
"state": {
|
|
262
|
+
"violent_weather": "Violent weather",
|
|
263
|
+
"rain_intensity": "Rain intensity",
|
|
264
|
+
"rain_amount": "Rain amount",
|
|
265
|
+
"snow_amount_24": "Snow amount in 24 hours",
|
|
266
|
+
"wind": "Wind",
|
|
267
|
+
"sea_state": "Sea state",
|
|
268
|
+
"cold": "Cold",
|
|
269
|
+
"heat": "Heat",
|
|
270
|
+
"night_heat": "Night heat"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"alert_4": {
|
|
274
|
+
"name": "Alert 4",
|
|
275
|
+
"state": {
|
|
276
|
+
"violent_weather": "Violent weather",
|
|
277
|
+
"rain_intensity": "Rain intensity",
|
|
278
|
+
"rain_amount": "Rain amount",
|
|
279
|
+
"snow_amount_24": "Snow amount in 24 hours",
|
|
280
|
+
"wind": "Wind",
|
|
281
|
+
"sea_state": "Sea state",
|
|
282
|
+
"cold": "Cold",
|
|
283
|
+
"heat": "Heat",
|
|
284
|
+
"night_heat": "Night heat"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"alert_5": {
|
|
288
|
+
"name": "Alert 5",
|
|
289
|
+
"state": {
|
|
290
|
+
"violent_weather": "Violent weather",
|
|
291
|
+
"rain_intensity": "Rain intensity",
|
|
292
|
+
"rain_amount": "Rain amount",
|
|
293
|
+
"snow_amount_24": "Snow amount in 24 hours",
|
|
294
|
+
"wind": "Wind",
|
|
295
|
+
"sea_state": "Sea state",
|
|
296
|
+
"cold": "Cold",
|
|
297
|
+
"heat": "Heat",
|
|
298
|
+
"night_heat": "Night heat"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"alert_wind": {
|
|
304
|
+
"name": "Alert Wind",
|
|
305
|
+
"state": {
|
|
306
|
+
"opened": "Opened",
|
|
307
|
+
"closed": "Closed"
|
|
308
|
+
},
|
|
309
|
+
"state_attributes": {
|
|
310
|
+
"inicio": {
|
|
311
|
+
"name": "Starts"
|
|
312
|
+
},
|
|
313
|
+
"fin": {
|
|
314
|
+
"name": "Ends"
|
|
315
|
+
},
|
|
316
|
+
"fecha": {
|
|
317
|
+
"name": "Date"
|
|
318
|
+
},
|
|
319
|
+
"periodo": {
|
|
320
|
+
"name": "Period"
|
|
321
|
+
},
|
|
322
|
+
"comentario": {
|
|
323
|
+
"name": "Comment"
|
|
324
|
+
},
|
|
325
|
+
"umbral": {
|
|
326
|
+
"name": "Threshold",
|
|
327
|
+
"state": {
|
|
328
|
+
"wind_gusts_25": "Wind gusts > 25 m/s",
|
|
329
|
+
"microburst": "Microburst",
|
|
330
|
+
"tornadoes": "Tornadoes or waterspouts",
|
|
331
|
+
"wind_40": "Max. wind speed > 40 m/s",
|
|
332
|
+
"wind_35": "Max. wind speed > 35 m/s",
|
|
333
|
+
"wind_30": "Max. wind speed > 30 m/s",
|
|
334
|
+
"wind_25": "Max. wind speed > 25 m/s",
|
|
335
|
+
"wind_20": "Max. wind speed > 20 m/s"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"peligro": {
|
|
339
|
+
"name": "Danger"
|
|
340
|
+
},
|
|
341
|
+
"nivel": {
|
|
342
|
+
"name": "Level"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"alert_rain_intensity": {
|
|
347
|
+
"name": "Alert Rain Intensity",
|
|
348
|
+
"state": {
|
|
349
|
+
"opened": "Opened",
|
|
350
|
+
"closed": "Closed"
|
|
351
|
+
},
|
|
352
|
+
"state_attributes": {
|
|
353
|
+
"inicio": {
|
|
354
|
+
"name": "Starts"
|
|
355
|
+
},
|
|
356
|
+
"fin": {
|
|
357
|
+
"name": "Ends"
|
|
358
|
+
},
|
|
359
|
+
"fecha": {
|
|
360
|
+
"name": "Date"
|
|
361
|
+
},
|
|
362
|
+
"periodo": {
|
|
363
|
+
"name": "Period"
|
|
364
|
+
},
|
|
365
|
+
"comentario": {
|
|
366
|
+
"name": "Comment"
|
|
367
|
+
},
|
|
368
|
+
"umbral": {
|
|
369
|
+
"name": "Threshold",
|
|
370
|
+
"state": {
|
|
371
|
+
"hail_2_cm": "Hail with diameter > 2 cm",
|
|
372
|
+
"microburst": "Microburst",
|
|
373
|
+
"intensity_40_30": "Intensity > 40 mm / 30 minutes",
|
|
374
|
+
"intensity_20_30": "Intensity > 20 mm / 30 minutes"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"peligro": {
|
|
378
|
+
"name": "Danger"
|
|
379
|
+
},
|
|
380
|
+
"nivel": {
|
|
381
|
+
"name": "Level"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"alert_rain": {
|
|
386
|
+
"name": "Alert Rain",
|
|
387
|
+
"state": {
|
|
388
|
+
"opened": "Opened",
|
|
389
|
+
"closed": "Closed"
|
|
390
|
+
},
|
|
391
|
+
"state_attributes": {
|
|
392
|
+
"inicio": {
|
|
393
|
+
"name": "Starts"
|
|
394
|
+
},
|
|
395
|
+
"fin": {
|
|
396
|
+
"name": "Ends"
|
|
397
|
+
},
|
|
398
|
+
"fecha": {
|
|
399
|
+
"name": "Date"
|
|
400
|
+
},
|
|
401
|
+
"periodo": {
|
|
402
|
+
"name": "Period"
|
|
403
|
+
},
|
|
404
|
+
"comentario": {
|
|
405
|
+
"name": "Comment"
|
|
406
|
+
},
|
|
407
|
+
"umbral": {
|
|
408
|
+
"name": "Threshold",
|
|
409
|
+
"state": {
|
|
410
|
+
"microburst": "Microburst",
|
|
411
|
+
"rain_200_24": "Amount > 200 mm /24 hours",
|
|
412
|
+
"rain_100_24": "Amount > 100 mm /24 hours"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"peligro": {
|
|
416
|
+
"name": "Danger"
|
|
417
|
+
},
|
|
418
|
+
"nivel": {
|
|
419
|
+
"name": "Level"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"alert_sea": {
|
|
424
|
+
"name": "Alert Sea",
|
|
425
|
+
"state": {
|
|
426
|
+
"opened": "Opened",
|
|
427
|
+
"closed": "Closed"
|
|
428
|
+
},
|
|
429
|
+
"state_attributes": {
|
|
430
|
+
"inicio": {
|
|
431
|
+
"name": "Starts"
|
|
432
|
+
},
|
|
433
|
+
"fin": {
|
|
434
|
+
"name": "Ends"
|
|
435
|
+
},
|
|
436
|
+
"fecha": {
|
|
437
|
+
"name": "Date"
|
|
438
|
+
},
|
|
439
|
+
"periodo": {
|
|
440
|
+
"name": "Period"
|
|
441
|
+
},
|
|
442
|
+
"comentario": {
|
|
443
|
+
"name": "Comment"
|
|
444
|
+
},
|
|
445
|
+
"umbral": {
|
|
446
|
+
"name": "Threshold",
|
|
447
|
+
"state": {
|
|
448
|
+
"microburst": "Microburst",
|
|
449
|
+
"tornadoes": "Tornadoes or waterspouts",
|
|
450
|
+
"waves_4": "Waves > 4.00 meters (rough sea)",
|
|
451
|
+
"waves_2_50": "Waves > 2.50 meters (tidal)"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"peligro": {
|
|
455
|
+
"name": "Danger"
|
|
456
|
+
},
|
|
457
|
+
"nivel": {
|
|
458
|
+
"name": "Level"
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"alert_cold": {
|
|
463
|
+
"name": "Alert Cold",
|
|
464
|
+
"state": {
|
|
465
|
+
"opened": "Opened",
|
|
466
|
+
"closed": "Closed"
|
|
467
|
+
},
|
|
468
|
+
"state_attributes": {
|
|
469
|
+
"inicio": {
|
|
470
|
+
"name": "Starts"
|
|
471
|
+
},
|
|
472
|
+
"fin": {
|
|
473
|
+
"name": "Ends"
|
|
474
|
+
},
|
|
475
|
+
"fecha": {
|
|
476
|
+
"name": "Date"
|
|
477
|
+
},
|
|
478
|
+
"periodo": {
|
|
479
|
+
"name": "Period"
|
|
480
|
+
},
|
|
481
|
+
"comentario": {
|
|
482
|
+
"name": "Comment"
|
|
483
|
+
},
|
|
484
|
+
"umbral": {
|
|
485
|
+
"name": "Threshold",
|
|
486
|
+
"state": {
|
|
487
|
+
"cold_very_intense": "Very intense cold",
|
|
488
|
+
"cold_intense": "Intense cold"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"peligro": {
|
|
492
|
+
"name": "Danger"
|
|
493
|
+
},
|
|
494
|
+
"nivel": {
|
|
495
|
+
"name": "Level"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"alert_warm": {
|
|
500
|
+
"name": "Alert Warm",
|
|
501
|
+
"state": {
|
|
502
|
+
"opened": "Opened",
|
|
503
|
+
"closed": "Closed"
|
|
504
|
+
},
|
|
505
|
+
"state_attributes": {
|
|
506
|
+
"inicio": {
|
|
507
|
+
"name": "Starts"
|
|
508
|
+
},
|
|
509
|
+
"fin": {
|
|
510
|
+
"name": "Ends"
|
|
511
|
+
},
|
|
512
|
+
"fecha": {
|
|
513
|
+
"name": "Date"
|
|
514
|
+
},
|
|
515
|
+
"periodo": {
|
|
516
|
+
"name": "Period"
|
|
517
|
+
},
|
|
518
|
+
"comentario": {
|
|
519
|
+
"name": "Comment"
|
|
520
|
+
},
|
|
521
|
+
"umbral": {
|
|
522
|
+
"name": "Threshold",
|
|
523
|
+
"state": {
|
|
524
|
+
"heat_very_intense": "Very intense hot",
|
|
525
|
+
"heat_intense": "Intense heat"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"peligro": {
|
|
529
|
+
"name": "Danger"
|
|
530
|
+
},
|
|
531
|
+
"nivel": {
|
|
532
|
+
"name": "Level"
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"alert_warm_night": {
|
|
537
|
+
"name": "Alert Warm Night",
|
|
538
|
+
"state": {
|
|
539
|
+
"opened": "Opened",
|
|
540
|
+
"closed": "Closed"
|
|
541
|
+
},
|
|
542
|
+
"state_attributes": {
|
|
543
|
+
"inicio": {
|
|
544
|
+
"name": "Starts"
|
|
545
|
+
},
|
|
546
|
+
"fin": {
|
|
547
|
+
"name": "Ends"
|
|
548
|
+
},
|
|
549
|
+
"fecha": {
|
|
550
|
+
"name": "Date"
|
|
551
|
+
},
|
|
552
|
+
"periodo": {
|
|
553
|
+
"name": "Period"
|
|
554
|
+
},
|
|
555
|
+
"comentario": {
|
|
556
|
+
"name": "Comment"
|
|
557
|
+
},
|
|
558
|
+
"umbral": {
|
|
559
|
+
"name": "Threshold",
|
|
560
|
+
"state": {
|
|
561
|
+
"heat_night_very_intense": "Very intense night heat",
|
|
562
|
+
"heat_night_intense": "Intense night heat"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"peligro": {
|
|
566
|
+
"name": "Danger"
|
|
567
|
+
},
|
|
568
|
+
"nivel": {
|
|
569
|
+
"name": "Level"
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"alert_snow": {
|
|
574
|
+
"name": "Alert Snow",
|
|
575
|
+
"state": {
|
|
576
|
+
"opened": "Opened",
|
|
577
|
+
"closed": "Closed"
|
|
578
|
+
},
|
|
579
|
+
"state_attributes": {
|
|
580
|
+
"inicio": {
|
|
581
|
+
"name": "Starts"
|
|
582
|
+
},
|
|
583
|
+
"fin": {
|
|
584
|
+
"name": "Ends"
|
|
585
|
+
},
|
|
586
|
+
"fecha": {
|
|
587
|
+
"name": "Date"
|
|
588
|
+
},
|
|
589
|
+
"periodo": {
|
|
590
|
+
"name": "Period"
|
|
591
|
+
},
|
|
592
|
+
"comentario": {
|
|
593
|
+
"name": "Comment"
|
|
594
|
+
},
|
|
595
|
+
"umbral": {
|
|
596
|
+
"name": "Threshold",
|
|
597
|
+
"state": {
|
|
598
|
+
"hail_2_cm": "Hail with diameter > 2 cm",
|
|
599
|
+
"thickness_50_at_1000": "thickness > 50 cm at altitudes above 1000 meters up to 1500 meters",
|
|
600
|
+
"thickness_30_at_800": "thickness > 30 cm at altitudes above 800 meters up to 1000 meters",
|
|
601
|
+
"thickness_20_at_600": "thickness > 20 cm at altitudes above 600 meters up to 800 meters",
|
|
602
|
+
"thickness_20_at_1000": "thickness > 20 cm at altitudes above 1000 meters up to 1500 meters",
|
|
603
|
+
"thickness_15_at_300": "thickness > 15 cm at altitudes above 300 meters up to 600 meters",
|
|
604
|
+
"thickness_10_at_800": "thickness > 10 cm at altitudes above 800 meters up to 1000 meters",
|
|
605
|
+
"thickness_5_at_300": "thickness > 5 cm at altitudes below 300 meters",
|
|
606
|
+
"thickness_5_at_600": "thickness > 5 cm at altitudes above 600 meters up to 800 meters",
|
|
607
|
+
"thickness_2_at_300": "thickness > 2 cm at altitudes above 300 meters up to 600 meters",
|
|
608
|
+
"thickness_0_at_300": "thickness ≥ 0 cm at altitudes below 300 meters"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"peligro": {
|
|
612
|
+
"name": "Danger"
|
|
613
|
+
},
|
|
614
|
+
"nivel": {
|
|
615
|
+
"name": "Level"
|
|
616
|
+
}
|
|
617
|
+
}
|
|
173
618
|
}
|
|
174
619
|
}
|
|
175
620
|
}
|
|
176
621
|
}
|
|
177
|
-
|