meteocat 3.0.0 → 3.2.0
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/.github/ISSUE_TEMPLATE/bug_report.md +8 -2
- package/.github/ISSUE_TEMPLATE/config.yml +7 -0
- package/.github/ISSUE_TEMPLATE/improvement.md +39 -0
- package/.github/ISSUE_TEMPLATE/new_function.md +41 -0
- package/.github/labels.yml +63 -0
- package/.github/workflows/autocloser.yaml +11 -9
- package/.github/workflows/close-on-label.yml +48 -0
- package/.github/workflows/force-sync-labels.yml +18 -0
- package/.github/workflows/sync-gitlab.yml +15 -4
- package/.github/workflows/sync-labels.yml +21 -0
- package/CHANGELOG.md +80 -11
- package/README.md +16 -4
- package/custom_components/meteocat/__init__.py +57 -42
- package/custom_components/meteocat/condition.py +6 -2
- package/custom_components/meteocat/config_flow.py +231 -4
- package/custom_components/meteocat/const.py +17 -2
- package/custom_components/meteocat/coordinator.py +1122 -101
- package/custom_components/meteocat/helpers.py +31 -36
- package/custom_components/meteocat/manifest.json +3 -2
- package/custom_components/meteocat/options_flow.py +71 -3
- package/custom_components/meteocat/sensor.py +660 -247
- package/custom_components/meteocat/strings.json +252 -15
- package/custom_components/meteocat/translations/ca.json +249 -13
- package/custom_components/meteocat/translations/en.json +252 -15
- package/custom_components/meteocat/translations/es.json +252 -15
- package/custom_components/meteocat/version.py +1 -1
- package/filetree.txt +12 -3
- package/hacs.json +1 -1
- package/images/daily_forecast_2_alerts.png +0 -0
- package/images/daily_forecast_no_alerts.png +0 -0
- package/images/diagnostic_sensors.png +0 -0
- package/images/dynamic_sensors.png +0 -0
- package/images/options.png +0 -0
- package/images/regenerate_assets.png +0 -0
- package/images/setup_options.png +0 -0
- package/images/system_options.png +0 -0
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/update_version.sh +6 -0
- package/.github/workflows/close-duplicates.yml +0 -57
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"options": {
|
|
37
37
|
"step":{
|
|
38
38
|
"init": {
|
|
39
|
-
"description": "
|
|
39
|
+
"description": "Configureu la clau API, els límits de l'API, regenereu els fitxers d'assets o actualitzeu les coordenades.",
|
|
40
40
|
"title": "Opcions de configuració",
|
|
41
41
|
"data": {
|
|
42
42
|
"option": "Opcions"
|
|
@@ -50,6 +50,15 @@
|
|
|
50
50
|
"description": "Configura els límits de l'API.",
|
|
51
51
|
"title": "Límits de l'API"
|
|
52
52
|
},
|
|
53
|
+
"update_coordinates": {
|
|
54
|
+
"description": "Introduïu noves coordenades. Coordenades actuals: latitud {current_latitude}, longitud {current_longitude}. Altitud actual: {current_altitude} metres.",
|
|
55
|
+
"title": "Actualitzar coordenades",
|
|
56
|
+
"data": {
|
|
57
|
+
"latitude": "Latitud",
|
|
58
|
+
"longitude": "Longitud",
|
|
59
|
+
"altitude": "Altitud (metres)"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
53
62
|
"confirm_regenerate_assets": {
|
|
54
63
|
"description": "Regenera els arxius a 'assets'.",
|
|
55
64
|
"title": "Regenera 'assets'",
|
|
@@ -61,7 +70,9 @@
|
|
|
61
70
|
"error": {
|
|
62
71
|
"cannot_connect": "Error de conexió. Error al comprovar la nova API Key.",
|
|
63
72
|
"unknown": "Error desconegut al comprovar la nova API Key.",
|
|
64
|
-
"invalid_limit": "Límit no vàlid. El límit ha de ser un nombre positiu."
|
|
73
|
+
"invalid_limit": "Límit no vàlid. El límit ha de ser un nombre positiu.",
|
|
74
|
+
"invalid_coordinates": "Les coordenades han d'estar dins del rang de Catalunya (latitud: 40.5 a 42.5, longitud: 0.1 a 3.3).",
|
|
75
|
+
"invalid_altitude": "Altitud no pot ser negativa."
|
|
65
76
|
}
|
|
66
77
|
},
|
|
67
78
|
"selector": {
|
|
@@ -69,7 +80,8 @@
|
|
|
69
80
|
"options": {
|
|
70
81
|
"update_api_and_limits": "Actualitzar API Key i límits.",
|
|
71
82
|
"update_limits_only": "Actualitzar API límits.",
|
|
72
|
-
"regenerate_assets": "Regenera arxius a 'assets'."
|
|
83
|
+
"regenerate_assets": "Regenera arxius a 'assets'.",
|
|
84
|
+
"update_coordinates": "Actualitzar coordenades (latitud i longitud) i altitud (metres)."
|
|
73
85
|
}
|
|
74
86
|
}
|
|
75
87
|
},
|
|
@@ -533,7 +545,8 @@
|
|
|
533
545
|
"wind_35": "Ratxa màxima > 35 m/s",
|
|
534
546
|
"wind_30": "Ratxa màxima > 30 m/s",
|
|
535
547
|
"wind_25": "Ratxa màxima > 25 m/s",
|
|
536
|
-
"wind_20": "Ratxa màxima > 20 m/s"
|
|
548
|
+
"wind_20": "Ratxa màxima > 20 m/s",
|
|
549
|
+
"unknown": "Desconegut"
|
|
537
550
|
}
|
|
538
551
|
},
|
|
539
552
|
"peligro": {
|
|
@@ -572,7 +585,8 @@
|
|
|
572
585
|
"hail_2_cm": "Pedra de diàmetre > 2 cm",
|
|
573
586
|
"microburst": "Esclafits",
|
|
574
587
|
"intensity_40_30": "Intensitat > 40 mm / 30 minuts",
|
|
575
|
-
"intensity_20_30": "Intensitat > 20 mm / 30 minuts"
|
|
588
|
+
"intensity_20_30": "Intensitat > 20 mm / 30 minuts",
|
|
589
|
+
"unknown": "Desconegut"
|
|
576
590
|
}
|
|
577
591
|
},
|
|
578
592
|
"peligro": {
|
|
@@ -610,7 +624,8 @@
|
|
|
610
624
|
"state": {
|
|
611
625
|
"microburst": "Esclafits",
|
|
612
626
|
"rain_200_24": "Acumulada > 200 mm /24 hores",
|
|
613
|
-
"rain_100_24": "Acumulada > 100 mm /24 hores"
|
|
627
|
+
"rain_100_24": "Acumulada > 100 mm /24 hores",
|
|
628
|
+
"unknown": "Desconegut"
|
|
614
629
|
}
|
|
615
630
|
},
|
|
616
631
|
"peligro": {
|
|
@@ -649,7 +664,8 @@
|
|
|
649
664
|
"microburst": "Esclafits",
|
|
650
665
|
"tornadoes": "Tornados o mànegues",
|
|
651
666
|
"waves_4": "Onades > 4.00 metres (mar brava)",
|
|
652
|
-
"waves_2_50": "Onades > 2.50 metres (maregassa)"
|
|
667
|
+
"waves_2_50": "Onades > 2.50 metres (maregassa)",
|
|
668
|
+
"unknown": "Desconegut"
|
|
653
669
|
}
|
|
654
670
|
},
|
|
655
671
|
"peligro": {
|
|
@@ -686,7 +702,8 @@
|
|
|
686
702
|
"name": "Llindar",
|
|
687
703
|
"state": {
|
|
688
704
|
"cold_very_intense": "Fred molt intens",
|
|
689
|
-
"cold_intense": "Fred intens"
|
|
705
|
+
"cold_intense": "Fred intens",
|
|
706
|
+
"unknown": "Desconegut"
|
|
690
707
|
}
|
|
691
708
|
},
|
|
692
709
|
"peligro": {
|
|
@@ -723,7 +740,8 @@
|
|
|
723
740
|
"name": "Llindar",
|
|
724
741
|
"state": {
|
|
725
742
|
"heat_very_intense": "Calor molt intensa",
|
|
726
|
-
"heat_intense": "Calor intensa"
|
|
743
|
+
"heat_intense": "Calor intensa",
|
|
744
|
+
"unknown": "Desconegut"
|
|
727
745
|
}
|
|
728
746
|
},
|
|
729
747
|
"peligro": {
|
|
@@ -760,7 +778,8 @@
|
|
|
760
778
|
"name": "Llindar",
|
|
761
779
|
"state": {
|
|
762
780
|
"heat_night_very_intense": "Calor nocturna molt intensa",
|
|
763
|
-
"heat_night_intense": "Calor nocturna intensa"
|
|
781
|
+
"heat_night_intense": "Calor nocturna intensa",
|
|
782
|
+
"unknown": "Desconegut"
|
|
764
783
|
}
|
|
765
784
|
},
|
|
766
785
|
"peligro": {
|
|
@@ -806,7 +825,8 @@
|
|
|
806
825
|
"thickness_5_at_300": "gruix > 5 cm a cotes inferiors a 300 metres",
|
|
807
826
|
"thickness_5_at_600": "gruix > 5 cm a cotes superiors a 600 metres fins a 800 metres",
|
|
808
827
|
"thickness_2_at_300": "gruix > 2 cm a cotes superiors a 300 metres fins a 600 metres",
|
|
809
|
-
"thickness_0_at_300": "gruix ≥ 0 cm a cotes inferiors a 300 metres"
|
|
828
|
+
"thickness_0_at_300": "gruix ≥ 0 cm a cotes inferiors a 300 metres",
|
|
829
|
+
"unknown": "Desconegut"
|
|
810
830
|
}
|
|
811
831
|
},
|
|
812
832
|
"peligro": {
|
|
@@ -816,8 +836,224 @@
|
|
|
816
836
|
"name": "Nivell"
|
|
817
837
|
}
|
|
818
838
|
}
|
|
839
|
+
},
|
|
840
|
+
"sun": {
|
|
841
|
+
"name": "Sol",
|
|
842
|
+
"state": {
|
|
843
|
+
"above_horizon": "Sobre l'horitzó",
|
|
844
|
+
"below_horizon": "Sota l'horitzó"
|
|
845
|
+
},
|
|
846
|
+
"state_attributes": {
|
|
847
|
+
"elevation": {
|
|
848
|
+
"name": "Elevació"
|
|
849
|
+
},
|
|
850
|
+
"azimuth": {
|
|
851
|
+
"name": "Azimut"
|
|
852
|
+
},
|
|
853
|
+
"rising": {
|
|
854
|
+
"name": "Ascendent",
|
|
855
|
+
"state": {
|
|
856
|
+
"false": "No",
|
|
857
|
+
"true": "Sí"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"last_updated": {
|
|
861
|
+
"name": "Actualitzat"
|
|
862
|
+
},
|
|
863
|
+
"sunrise": {
|
|
864
|
+
"name": "Sortida del sol"
|
|
865
|
+
},
|
|
866
|
+
"sunset": {
|
|
867
|
+
"name": "Posta de sol"
|
|
868
|
+
},
|
|
869
|
+
"noon": {
|
|
870
|
+
"name": "Migdia"
|
|
871
|
+
},
|
|
872
|
+
"dawn_civil": {
|
|
873
|
+
"name": "Alba civil"
|
|
874
|
+
},
|
|
875
|
+
"dusk_civil": {
|
|
876
|
+
"name": "Crepuscle civil"
|
|
877
|
+
},
|
|
878
|
+
"dawn_nautical": {
|
|
879
|
+
"name": "Alba nàutica"
|
|
880
|
+
},
|
|
881
|
+
"dusk_nautical": {
|
|
882
|
+
"name": "Crepuscle nàutic"
|
|
883
|
+
},
|
|
884
|
+
"dawn_astronomical": {
|
|
885
|
+
"name": "Alba astronòmica"
|
|
886
|
+
},
|
|
887
|
+
"dusk_astronomical": {
|
|
888
|
+
"name": "Crepuscle astronòmic"
|
|
889
|
+
},
|
|
890
|
+
"midnight": {
|
|
891
|
+
"name": "Mitjanit solar"
|
|
892
|
+
},
|
|
893
|
+
"daylight_duration": {
|
|
894
|
+
"name": "Durada del dia"
|
|
895
|
+
},
|
|
896
|
+
"daylight_duration_hms": {
|
|
897
|
+
"name": "Durada del dia (HH:MM:SS)"
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"sunrise": {
|
|
902
|
+
"name": "Sortida del sol",
|
|
903
|
+
"state_attributes": {
|
|
904
|
+
"friendly_time": {
|
|
905
|
+
"name": "Hora"
|
|
906
|
+
},
|
|
907
|
+
"friendly_date": {
|
|
908
|
+
"name": "Data"
|
|
909
|
+
},
|
|
910
|
+
"friendly_day": {
|
|
911
|
+
"name": "Dia",
|
|
912
|
+
"state": {
|
|
913
|
+
"monday": "Dilluns",
|
|
914
|
+
"tuesday": "Dimarts",
|
|
915
|
+
"wednesday": "Dimecres",
|
|
916
|
+
"thursday": "Dijous",
|
|
917
|
+
"friday": "Divendres",
|
|
918
|
+
"saturday": "Dissabte",
|
|
919
|
+
"sunday": "Diumenge"
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"sunset": {
|
|
925
|
+
"name": "Posta de sol",
|
|
926
|
+
"state_attributes": {
|
|
927
|
+
"friendly_time": {
|
|
928
|
+
"name": "Hora"
|
|
929
|
+
},
|
|
930
|
+
"friendly_date": {
|
|
931
|
+
"name": "Data"
|
|
932
|
+
},
|
|
933
|
+
"friendly_day": {
|
|
934
|
+
"name": "Dia",
|
|
935
|
+
"state": {
|
|
936
|
+
"monday": "Dilluns",
|
|
937
|
+
"tuesday": "Dimarts",
|
|
938
|
+
"wednesday": "Dimecres",
|
|
939
|
+
"thursday": "Dijous",
|
|
940
|
+
"friday": "Divendres",
|
|
941
|
+
"saturday": "Dissabte",
|
|
942
|
+
"sunday": "Diumenge"
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"sun_file_status": {
|
|
948
|
+
"name": "Arxiu Sol",
|
|
949
|
+
"state": {
|
|
950
|
+
"updated": "Actualitzat",
|
|
951
|
+
"obsolete": "Obsolet"
|
|
952
|
+
},
|
|
953
|
+
"state_attributes": {
|
|
954
|
+
"update_date": {
|
|
955
|
+
"name": "Data"
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
"moon_phase": {
|
|
960
|
+
"name": "Fase llunar",
|
|
961
|
+
"state": {
|
|
962
|
+
"new_moon": "Lluna nova",
|
|
963
|
+
"waxing_crescent": "Creixent",
|
|
964
|
+
"first_quarter": "Quart creixent",
|
|
965
|
+
"waxing_gibbous": "Gibosa creixent",
|
|
966
|
+
"full_moon": "Lluna plena",
|
|
967
|
+
"waning_gibbous": "Gibosa minvant",
|
|
968
|
+
"last_quarter": "Quart minvant",
|
|
969
|
+
"waning_crescent": "Minvant",
|
|
970
|
+
"unknown": "Desconegut"
|
|
971
|
+
},
|
|
972
|
+
"state_attributes": {
|
|
973
|
+
"moon_day": {
|
|
974
|
+
"name": "Dia lunar"
|
|
975
|
+
},
|
|
976
|
+
"moon_phase_value": {
|
|
977
|
+
"name": "Valor fase"
|
|
978
|
+
},
|
|
979
|
+
"illuminated_percentage": {
|
|
980
|
+
"name": "Il.luminada (%)"
|
|
981
|
+
},
|
|
982
|
+
"moon_distance": {
|
|
983
|
+
"name": "Distància (Km)"
|
|
984
|
+
},
|
|
985
|
+
"moon_angular_diameter": {
|
|
986
|
+
"name": "Diàmetre angular (arcseg)"
|
|
987
|
+
},
|
|
988
|
+
"lunation": {
|
|
989
|
+
"name": "Llunació"
|
|
990
|
+
},
|
|
991
|
+
"lunation_duration": {
|
|
992
|
+
"name": "Durada llunació"
|
|
993
|
+
},
|
|
994
|
+
"last_updated": {
|
|
995
|
+
"name": "Actualitzat"
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"moon_file_status": {
|
|
1000
|
+
"name": "Arxiu LLuna",
|
|
1001
|
+
"state": {
|
|
1002
|
+
"updated": "Actualitzat",
|
|
1003
|
+
"obsolete": "Obsolet"
|
|
1004
|
+
},
|
|
1005
|
+
"state_attributes": {
|
|
1006
|
+
"update_date": {
|
|
1007
|
+
"name": "Data"
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
"moonrise": {
|
|
1012
|
+
"name": "Lluna sortida",
|
|
1013
|
+
"state_attributes": {
|
|
1014
|
+
"friendly_time": {
|
|
1015
|
+
"name": "Hora"
|
|
1016
|
+
},
|
|
1017
|
+
"friendly_date": {
|
|
1018
|
+
"name": "Data"
|
|
1019
|
+
},
|
|
1020
|
+
"friendly_day": {
|
|
1021
|
+
"name": "Dia",
|
|
1022
|
+
"state": {
|
|
1023
|
+
"monday": "Dilluns",
|
|
1024
|
+
"tuesday": "Dimarts",
|
|
1025
|
+
"wednesday": "Dimecres",
|
|
1026
|
+
"thursday": "Dijous",
|
|
1027
|
+
"friday": "Divendres",
|
|
1028
|
+
"saturday": "Dissabte",
|
|
1029
|
+
"sunday": "Diumenge"
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"moonset": {
|
|
1035
|
+
"name": "Lluna posta",
|
|
1036
|
+
"state_attributes": {
|
|
1037
|
+
"friendly_time": {
|
|
1038
|
+
"name": "Hora"
|
|
1039
|
+
},
|
|
1040
|
+
"friendly_date": {
|
|
1041
|
+
"name": "Data"
|
|
1042
|
+
},
|
|
1043
|
+
"friendly_day": {
|
|
1044
|
+
"name": "Dia",
|
|
1045
|
+
"state": {
|
|
1046
|
+
"monday": "Dilluns",
|
|
1047
|
+
"tuesday": "Dimarts",
|
|
1048
|
+
"wednesday": "Dimecres",
|
|
1049
|
+
"thursday": "Dijous",
|
|
1050
|
+
"friday": "Divendres",
|
|
1051
|
+
"saturday": "Dissabte",
|
|
1052
|
+
"sunday": "Diumenge"
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
819
1056
|
}
|
|
820
1057
|
}
|
|
821
1058
|
}
|
|
822
|
-
}
|
|
823
|
-
|
|
1059
|
+
}
|