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": "Seleccione el municipio de la lista.",
|
|
10
|
-
"title": "Selección de municipio"
|
|
10
|
+
"title": "Selección de municipio",
|
|
11
|
+
"data": {
|
|
12
|
+
"municipi": "Municipio"
|
|
13
|
+
}
|
|
11
14
|
},
|
|
12
15
|
"select_station": {
|
|
13
16
|
"description": "Seleccione la estación de la lista.",
|
|
14
|
-
"title": "Selección de estación"
|
|
17
|
+
"title": "Selección de estación",
|
|
18
|
+
"data": {
|
|
19
|
+
"station": "Estaciones"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"set_api_limits": {
|
|
23
|
+
"description": "Define los límites del plan de la API para XEMA y PREDICCIONES.",
|
|
24
|
+
"title": "API límites"
|
|
15
25
|
}
|
|
16
26
|
},
|
|
17
27
|
"error": {
|
|
@@ -23,6 +33,38 @@
|
|
|
23
33
|
"unknown_error": "Error desconocido."
|
|
24
34
|
}
|
|
25
35
|
},
|
|
36
|
+
"options": {
|
|
37
|
+
"step":{
|
|
38
|
+
"init": {
|
|
39
|
+
"description": "Configura el API Key y los límites de la API para XEMA y PREDICCIONES.",
|
|
40
|
+
"title": "Opciones de configuración",
|
|
41
|
+
"data": {
|
|
42
|
+
"option": "Opciones"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"update_api_and_limits": {
|
|
46
|
+
"description": "Configura el API Key y los límites para XEMA y PREDICCIONES.",
|
|
47
|
+
"title": "API Key y límites"
|
|
48
|
+
},
|
|
49
|
+
"update_limits_only": {
|
|
50
|
+
"description": "Configura los límites para XEMA y PREDICCIONES.",
|
|
51
|
+
"title": "Límites de la API"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"error": {
|
|
55
|
+
"cannot_connect": "Error de conexión. Error al comprobar la nueva API Key.",
|
|
56
|
+
"unknown": "Error desconocido al comprobar la nueva API Key.",
|
|
57
|
+
"invalid_limit": "Límite no válido. El límite debe ser un número positivo."
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"selector": {
|
|
61
|
+
"option": {
|
|
62
|
+
"options": {
|
|
63
|
+
"update_api_and_limits": "Actualizar API Key y límites.",
|
|
64
|
+
"update_limits_only": "Actualizar API límites."
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
26
68
|
"entity": {
|
|
27
69
|
"sensor": {
|
|
28
70
|
"wind_speed": {
|
|
@@ -170,6 +212,409 @@
|
|
|
170
212
|
"name": "Fecha"
|
|
171
213
|
}
|
|
172
214
|
}
|
|
215
|
+
},
|
|
216
|
+
"alert_file_status": {
|
|
217
|
+
"name": "Archivo Alerta",
|
|
218
|
+
"state": {
|
|
219
|
+
"updated": "Actualizado",
|
|
220
|
+
"obsolete": "Obsoleto"
|
|
221
|
+
},
|
|
222
|
+
"state_attributes": {
|
|
223
|
+
"update_date": {
|
|
224
|
+
"name": "Fecha"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"alerts": {
|
|
229
|
+
"name": "Alertas",
|
|
230
|
+
"state_attributes": {
|
|
231
|
+
"alert_1": {
|
|
232
|
+
"name": "Alerta 1",
|
|
233
|
+
"state": {
|
|
234
|
+
"violent_weather": "Tiempo violento",
|
|
235
|
+
"rain_intensity": "Intensidad de lluvia",
|
|
236
|
+
"rain_amount": "Acumulación de lluvia",
|
|
237
|
+
"snow_amount_24": "Nieve acumulada en 24 horas",
|
|
238
|
+
"wind": "Viento",
|
|
239
|
+
"sea_state": "Estado del mar",
|
|
240
|
+
"cold": "Frío",
|
|
241
|
+
"heat": "Calor",
|
|
242
|
+
"night_heat": "Calor nocturno"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"alert_2": {
|
|
246
|
+
"name": "Alerta 2",
|
|
247
|
+
"state": {
|
|
248
|
+
"violent_weather": "Tiempo violento",
|
|
249
|
+
"rain_intensity": "Intensidad de lluvia",
|
|
250
|
+
"rain_amount": "Acumulación de lluvia",
|
|
251
|
+
"snow_amount_24": "Nieve acumulada en 24 horas",
|
|
252
|
+
"wind": "Viento",
|
|
253
|
+
"sea_state": "Estado del mar",
|
|
254
|
+
"cold": "Frío",
|
|
255
|
+
"heat": "Calor",
|
|
256
|
+
"night_heat": "Calor nocturno"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"alert_3": {
|
|
260
|
+
"name": "Alerta 3",
|
|
261
|
+
"state": {
|
|
262
|
+
"violent_weather": "Tiempo violento",
|
|
263
|
+
"rain_intensity": "Intensidad de lluvia",
|
|
264
|
+
"rain_amount": "Acumulación de lluvia",
|
|
265
|
+
"snow_amount_24": "Nieve acumulada en 24 horas",
|
|
266
|
+
"wind": "Viento",
|
|
267
|
+
"sea_state": "Estado del mar",
|
|
268
|
+
"cold": "Frío",
|
|
269
|
+
"heat": "Calor",
|
|
270
|
+
"night_heat": "Calor nocturno"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"alert_4": {
|
|
274
|
+
"name": "Alerta 4",
|
|
275
|
+
"state": {
|
|
276
|
+
"violent_weather": "Tiempo violento",
|
|
277
|
+
"rain_intensity": "Intensidad de lluvia",
|
|
278
|
+
"rain_amount": "Acumulación de lluvia",
|
|
279
|
+
"snow_amount_24": "Nieve acumulada en 24 horas",
|
|
280
|
+
"wind": "Viento",
|
|
281
|
+
"sea_state": "Estado del mar",
|
|
282
|
+
"cold": "Frío",
|
|
283
|
+
"heat": "Calor",
|
|
284
|
+
"night_heat": "Calor nocturno"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"alert_5": {
|
|
288
|
+
"name": "Alerta 5",
|
|
289
|
+
"state": {
|
|
290
|
+
"violent_weather": "Tiempo violento",
|
|
291
|
+
"rain_intensity": "Intensidad de lluvia",
|
|
292
|
+
"rain_amount": "Acumulación de lluvia",
|
|
293
|
+
"snow_amount_24": "Nieve acumulada en 24 horas",
|
|
294
|
+
"wind": "Viento",
|
|
295
|
+
"sea_state": "Estado del mar",
|
|
296
|
+
"cold": "Frío",
|
|
297
|
+
"heat": "Calor",
|
|
298
|
+
"night_heat": "Calor nocturno"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"alert_wind": {
|
|
304
|
+
"name": "Alerta Viento",
|
|
305
|
+
"state": {
|
|
306
|
+
"opened": "Abierto",
|
|
307
|
+
"closed": "Cerrado"
|
|
308
|
+
},
|
|
309
|
+
"state_attributes": {
|
|
310
|
+
"inicio": {
|
|
311
|
+
"name": "Inicio"
|
|
312
|
+
},
|
|
313
|
+
"fin": {
|
|
314
|
+
"name": "Final"
|
|
315
|
+
},
|
|
316
|
+
"fecha": {
|
|
317
|
+
"name": "Fecha"
|
|
318
|
+
},
|
|
319
|
+
"periodo": {
|
|
320
|
+
"name": "Periodo"
|
|
321
|
+
},
|
|
322
|
+
"comentario": {
|
|
323
|
+
"name": "Comentario"
|
|
324
|
+
},
|
|
325
|
+
"umbral": {
|
|
326
|
+
"name": "Umbral",
|
|
327
|
+
"state": {
|
|
328
|
+
"wind_gusts_25": "Rachas de viento > 25 m/s",
|
|
329
|
+
"microburst": "Reventón",
|
|
330
|
+
"tornadoes": "Tornados o mangas marinas",
|
|
331
|
+
"wind_40": "Racha máxima > 40 m/s",
|
|
332
|
+
"wind_35": "Racha máxima > 35 m/s",
|
|
333
|
+
"wind_30": "Racha máxima > 30 m/s",
|
|
334
|
+
"wind_25": "Racha máxima > 25 m/s",
|
|
335
|
+
"wind_20": "Racha máxima > 20 m/s"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"peligro": {
|
|
339
|
+
"name": "Peligro"
|
|
340
|
+
},
|
|
341
|
+
"nivel": {
|
|
342
|
+
"name": "Nivel"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"alert_rain_intensity": {
|
|
347
|
+
"name": "Alerta Intensidad Lluvia",
|
|
348
|
+
"state": {
|
|
349
|
+
"opened": "Abierto",
|
|
350
|
+
"closed": "Cerrado"
|
|
351
|
+
},
|
|
352
|
+
"state_attributes": {
|
|
353
|
+
"inicio": {
|
|
354
|
+
"name": "Inicio"
|
|
355
|
+
},
|
|
356
|
+
"fin": {
|
|
357
|
+
"name": "Final"
|
|
358
|
+
},
|
|
359
|
+
"fecha": {
|
|
360
|
+
"name": "Fecha"
|
|
361
|
+
},
|
|
362
|
+
"periodo": {
|
|
363
|
+
"name": "Periodo"
|
|
364
|
+
},
|
|
365
|
+
"comentario": {
|
|
366
|
+
"name": "Comentario"
|
|
367
|
+
},
|
|
368
|
+
"umbral": {
|
|
369
|
+
"name": "Umbral",
|
|
370
|
+
"state": {
|
|
371
|
+
"hail_2_cm": "Granizo de diámetro > 2 cm",
|
|
372
|
+
"microburst": "Reventón",
|
|
373
|
+
"intensity_40_30": "Intensidad > 40 mm / 30 minutos",
|
|
374
|
+
"intensity_20_30": "Intensidad > 20 mm / 30 minutos"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"peligro": {
|
|
378
|
+
"name": "Peligro"
|
|
379
|
+
},
|
|
380
|
+
"nivel": {
|
|
381
|
+
"name": "Nivel"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"alert_rain": {
|
|
386
|
+
"name": "Alerta Lluvia",
|
|
387
|
+
"state": {
|
|
388
|
+
"opened": "Abierto",
|
|
389
|
+
"closed": "Cerrado"
|
|
390
|
+
},
|
|
391
|
+
"state_attributes": {
|
|
392
|
+
"inicio": {
|
|
393
|
+
"name": "Inicio"
|
|
394
|
+
},
|
|
395
|
+
"fin": {
|
|
396
|
+
"name": "Final"
|
|
397
|
+
},
|
|
398
|
+
"fecha": {
|
|
399
|
+
"name": "Fecha"
|
|
400
|
+
},
|
|
401
|
+
"periodo": {
|
|
402
|
+
"name": "Periodo"
|
|
403
|
+
},
|
|
404
|
+
"comentario": {
|
|
405
|
+
"name": "Comentario"
|
|
406
|
+
},
|
|
407
|
+
"umbral": {
|
|
408
|
+
"name": "Umbral",
|
|
409
|
+
"state": {
|
|
410
|
+
"microburst": "Reventón",
|
|
411
|
+
"rain_200_24": "Acumulada > 200 mm /24 horas",
|
|
412
|
+
"rain_100_24": "Acumulada > 100 mm /24 horas"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"peligro": {
|
|
416
|
+
"name": "Peligro"
|
|
417
|
+
},
|
|
418
|
+
"nivel": {
|
|
419
|
+
"name": "Nivel"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"alert_sea": {
|
|
424
|
+
"name": "Alerta Mar",
|
|
425
|
+
"state": {
|
|
426
|
+
"opened": "Abierto",
|
|
427
|
+
"closed": "Cerrado"
|
|
428
|
+
},
|
|
429
|
+
"state_attributes": {
|
|
430
|
+
"inicio": {
|
|
431
|
+
"name": "Inicio"
|
|
432
|
+
},
|
|
433
|
+
"fin": {
|
|
434
|
+
"name": "Final"
|
|
435
|
+
},
|
|
436
|
+
"fecha": {
|
|
437
|
+
"name": "Fecha"
|
|
438
|
+
},
|
|
439
|
+
"periodo": {
|
|
440
|
+
"name": "Periodo"
|
|
441
|
+
},
|
|
442
|
+
"comentario": {
|
|
443
|
+
"name": "Comentario"
|
|
444
|
+
},
|
|
445
|
+
"umbral": {
|
|
446
|
+
"name": "Umbral",
|
|
447
|
+
"state": {
|
|
448
|
+
"microburst": "Reventón",
|
|
449
|
+
"tornadoes": "Tornados o mangas marinas",
|
|
450
|
+
"waves_4": "Olas > 4.00 metros (mar brava)",
|
|
451
|
+
"waves_2_50": "Olas > 2.50 metros (mar temporal)"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"peligro": {
|
|
455
|
+
"name": "Peligro"
|
|
456
|
+
},
|
|
457
|
+
"nivel": {
|
|
458
|
+
"name": "Nivel"
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"alert_cold": {
|
|
463
|
+
"name": "Alerta Frío",
|
|
464
|
+
"state": {
|
|
465
|
+
"opened": "Abierto",
|
|
466
|
+
"closed": "Cerrado"
|
|
467
|
+
},
|
|
468
|
+
"state_attributes": {
|
|
469
|
+
"inicio": {
|
|
470
|
+
"name": "Inicio"
|
|
471
|
+
},
|
|
472
|
+
"fin": {
|
|
473
|
+
"name": "Final"
|
|
474
|
+
},
|
|
475
|
+
"fecha": {
|
|
476
|
+
"name": "Fecha"
|
|
477
|
+
},
|
|
478
|
+
"periodo": {
|
|
479
|
+
"name": "Periodo"
|
|
480
|
+
},
|
|
481
|
+
"comentario": {
|
|
482
|
+
"name": "Comentario"
|
|
483
|
+
},
|
|
484
|
+
"umbral": {
|
|
485
|
+
"name": "Umbral",
|
|
486
|
+
"state": {
|
|
487
|
+
"cold_very_intense": "Frío muy intenso",
|
|
488
|
+
"cold_intense": "Frío intenso"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"peligro": {
|
|
492
|
+
"name": "Peligro"
|
|
493
|
+
},
|
|
494
|
+
"nivel": {
|
|
495
|
+
"name": "Nivel"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"alert_warm": {
|
|
500
|
+
"name": "Alerta Calor",
|
|
501
|
+
"state": {
|
|
502
|
+
"opened": "Abierto",
|
|
503
|
+
"closed": "Cerrado"
|
|
504
|
+
},
|
|
505
|
+
"state_attributes": {
|
|
506
|
+
"inicio": {
|
|
507
|
+
"name": "Inicio"
|
|
508
|
+
},
|
|
509
|
+
"fin": {
|
|
510
|
+
"name": "Final"
|
|
511
|
+
},
|
|
512
|
+
"fecha": {
|
|
513
|
+
"name": "Fecha"
|
|
514
|
+
},
|
|
515
|
+
"periodo": {
|
|
516
|
+
"name": "Periodo"
|
|
517
|
+
},
|
|
518
|
+
"comentario": {
|
|
519
|
+
"name": "Comentario"
|
|
520
|
+
},
|
|
521
|
+
"umbral": {
|
|
522
|
+
"name": "Umbral",
|
|
523
|
+
"state": {
|
|
524
|
+
"heat_very_intense": "Calor muy intenso",
|
|
525
|
+
"heat_intense": "Calor intenso"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"peligro": {
|
|
529
|
+
"name": "Peligro"
|
|
530
|
+
},
|
|
531
|
+
"nivel": {
|
|
532
|
+
"name": "Nivel"
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"alert_warm_night": {
|
|
537
|
+
"name": "Alerta Calor Nocturno",
|
|
538
|
+
"state": {
|
|
539
|
+
"opened": "Abierto",
|
|
540
|
+
"closed": "Cerrado"
|
|
541
|
+
},
|
|
542
|
+
"state_attributes": {
|
|
543
|
+
"inicio": {
|
|
544
|
+
"name": "Inicio"
|
|
545
|
+
},
|
|
546
|
+
"fin": {
|
|
547
|
+
"name": "Final"
|
|
548
|
+
},
|
|
549
|
+
"fecha": {
|
|
550
|
+
"name": "Fecha"
|
|
551
|
+
},
|
|
552
|
+
"periodo": {
|
|
553
|
+
"name": "Periodo"
|
|
554
|
+
},
|
|
555
|
+
"comentario": {
|
|
556
|
+
"name": "Comentario"
|
|
557
|
+
},
|
|
558
|
+
"umbral": {
|
|
559
|
+
"name": "Umbral",
|
|
560
|
+
"state": {
|
|
561
|
+
"heat_night_very_intense": "Calor nocturno muy intenso",
|
|
562
|
+
"heat_night_intense": "Calor nocturno intenso"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"peligro": {
|
|
566
|
+
"name": "Peligro"
|
|
567
|
+
},
|
|
568
|
+
"nivel": {
|
|
569
|
+
"name": "Nivel"
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"alert_snow": {
|
|
574
|
+
"name": "Alerta Nieve",
|
|
575
|
+
"state": {
|
|
576
|
+
"opened": "Abierto",
|
|
577
|
+
"closed": "Cerrado"
|
|
578
|
+
},
|
|
579
|
+
"state_attributes": {
|
|
580
|
+
"inicio": {
|
|
581
|
+
"name": "Inicio"
|
|
582
|
+
},
|
|
583
|
+
"fin": {
|
|
584
|
+
"name": "Final"
|
|
585
|
+
},
|
|
586
|
+
"fecha": {
|
|
587
|
+
"name": "Fecha"
|
|
588
|
+
},
|
|
589
|
+
"periodo": {
|
|
590
|
+
"name": "Periodo"
|
|
591
|
+
},
|
|
592
|
+
"comentario": {
|
|
593
|
+
"name": "Comentario"
|
|
594
|
+
},
|
|
595
|
+
"umbral": {
|
|
596
|
+
"name": "Umbral",
|
|
597
|
+
"state": {
|
|
598
|
+
"hail_2_cm": "Granizo de diámetro > 2 cm",
|
|
599
|
+
"thickness_50_at_1000": "grosor > 50 cm en cotas superiores a 1000 metros hasta 1500 metros",
|
|
600
|
+
"thickness_30_at_800": "grosor > 30 cm en cotas superiores a 800 metros hasta 1000 metros",
|
|
601
|
+
"thickness_20_at_600": "grosor > 20 cm en cotas superiores a 600 metros hasta 800 metros",
|
|
602
|
+
"thickness_20_at_1000": "grosor > 20 cm en cotas superiores a 1000 metros hasta 1500 metros",
|
|
603
|
+
"thickness_15_at_300": "grosor > 15 cm en cotas superiores a 300 metros hasta 600 metros",
|
|
604
|
+
"thickness_10_at_800": "grosor > 10 cm en cotas superiores a 800 metros hasta 1000 metros",
|
|
605
|
+
"thickness_5_at_300": "grosor > 5 cm en cotas inferiores a 300 metros",
|
|
606
|
+
"thickness_5_at_600": "grosor > 5 cm en cotas superiores a 600 metros hasta 800 metros",
|
|
607
|
+
"thickness_2_at_300": "grosor > 2 cm en cotas superiores a 300 metros hasta 600 metros",
|
|
608
|
+
"thickness_0_at_300": "grosor ≥ 0 cm en cotas inferiores a 300 metros"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"peligro": {
|
|
612
|
+
"name": "Peligro"
|
|
613
|
+
},
|
|
614
|
+
"nivel": {
|
|
615
|
+
"name": "Nivel"
|
|
616
|
+
}
|
|
617
|
+
}
|
|
173
618
|
}
|
|
174
619
|
}
|
|
175
620
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# version.py
|
|
2
|
-
__version__ = "
|
|
2
|
+
__version__ = "2.0.0"
|
package/filetree.txt
CHANGED
|
Binary file
|
|
Binary file
|
package/images/pick_station.png
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meteocat",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "[](https://opensource.org/licenses/Apache-2.0)\r [](https://pypi.org/project/meteocat)\r [](https://gitlab.com/figorr/meteocat/commits/master)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|