1
+ <?php
2
+ /**
3
+ ************************************************************************************************************************************
4
+ * Convert Template
5
+ * DWD 06.10.15
6
+ ************************************************************************************************************************************
7
+ */
8
+
9
+ //-------------------------------------------------------------------------------------------------------------------------------------------------
10
+
11
+ //eventCode
12
+
13
+ $ conv ->info ['tag ' ][] = "eventCode " ;
14
+ $ conv ->info ['ValueName ' ][] = "AREA_COLOR " ;
15
+
16
+ $ conv ->info ['tag ' ][] = "eventCode " ;
17
+ $ conv ->info ['ValueName ' ][] = "GROUP " ;
18
+
19
+ $ conv ->info ['tag ' ][] = "eventCode " ;
20
+ $ conv ->info ['ValueName ' ][] = "PROFILE_VERSION " ;
21
+
22
+ $ conv ->info ['tag ' ][] = "eventCode " ;
23
+ $ conv ->info ['ValueName ' ][] = "LICENSE " ;
24
+
25
+ $ conv ->info ['tag ' ][] = "eventCode " ;
26
+ $ conv ->info ['ValueName ' ][] = "II " ;
27
+
28
+ // geocode
29
+
30
+ $ conv ->info ['tag ' ][] = "geocode " ;
31
+ $ conv ->info ['ValueName ' ][] = "STATE " ;
32
+
33
+ $ conv ->info ['tag ' ][] = "geocode " ;
34
+ $ conv ->info ['ValueName ' ][] = "WARNCELLID " ;
35
+
36
+ $ conv ->info ['tag ' ][] = "geocode " ;
37
+ $ conv ->info ['ValueName ' ][] = "SIGN " ;
38
+
39
+ $ conv ->info ['tag ' ][] = "geocode " ;
40
+ $ conv ->info ['ValueName ' ][] = "ALTITUDE " ;
41
+
42
+ //-------------------------------------------------------------------------------------------------------------------------------------------------
43
+
44
+ // alert block
45
+ $ conv ->structure ['tag ' ][] = "identifier " ;
46
+ $ conv ->structure ['tag ' ][] = "sender " ;
47
+ $ conv ->structure ['tag ' ][] = "sent " ;
48
+ $ conv ->structure ['tag ' ][] = "status " ;
49
+ $ conv ->structure ['tag ' ][] = "msgType " ;
50
+ $ conv ->structure ['tag ' ][] = "scope " ;
51
+
52
+ // info block
53
+ $ conv ->structure ['tag ' ]['info ' ][] = "language " ;
54
+ $ conv ->structure ['tag ' ]['info ' ][] = "category " ;
55
+ $ conv ->structure ['tag ' ]['info ' ][] = "event " ;
56
+ $ conv ->structure ['tag ' ]['info ' ][] = "responseType " ;
57
+ $ conv ->structure ['tag ' ]['info ' ][] = "eventCode " ;
58
+ $ conv ->structure ['tag ' ]['info ' ][] = "urgency " ;
59
+ $ conv ->structure ['tag ' ]['info ' ][] = "severity " ;
60
+ $ conv ->structure ['tag ' ]['info ' ][] = "certainty " ;
61
+ $ conv ->structure ['tag ' ]['info ' ][] = "effective " ;
62
+ $ conv ->structure ['tag ' ]['info ' ][] = "onset " ;
63
+ $ conv ->structure ['tag ' ]['info ' ][] = "expires " ;
64
+ $ conv ->structure ['tag ' ]['info ' ][] = "senderName " ;
65
+ $ conv ->structure ['tag ' ]['info ' ][] = "headline " ;
66
+ $ conv ->structure ['tag ' ]['info ' ][] = "description " ;
67
+ $ conv ->structure ['tag ' ]['info ' ][] = "instruction " ;
68
+ $ conv ->structure ['tag ' ]['info ' ][] = "web " ;
69
+ $ conv ->structure ['tag ' ]['info ' ][] = "contact " ;
70
+
71
+ // area block
72
+ $ conv ->structure ['tag ' ]['info ' ]['area ' ][] = "areaDesc " ;
73
+ $ conv ->structure ['tag ' ]['info ' ]['area ' ][] = "polygon " ;
74
+ $ conv ->structure ['tag ' ]['info ' ]['area ' ][] = "geocode " ;
75
+ $ conv ->structure ['tag ' ]['info ' ]['area ' ][] = "altitude " ;
76
+ $ conv ->structure ['tag ' ]['info ' ]['area ' ][] = "ceiling " ;
77
+
78
+ //-------------------------------------------------------------------------------------------------------------------------------------------------
79
+
80
+
81
+ // do not move's
82
+ $ conv ->move ['PROFILE_VERSION ' ][] = "donotmove1 " ;
83
+ $ conv ->move ['LICENSE ' ][] = "donotmove2 " ;
84
+ $ conv ->move ['II ' ][] = "donotmove3 " ;
85
+
86
+ $ conv ->move ['WARNCELLID ' ][] = "donotmove4 " ;
87
+ $ conv ->move ['SIGN ' ][] = "donotmove5 " ;
88
+ $ conv ->move ['ALTITUDE ' ][] = "donotmove6 " ;
89
+
90
+ $ conv ->move ['STATE ' ][] = "area_code " ;
91
+
92
+ $ conv ->move ['AREA_COLOR ' ][] = "hazard_level " ; // lösche den source AREA_COLOR oder überschreibe den destinaion AREA_COLOR
93
+
94
+ $ conv ->translate ["255 128 128 " ][] = 'Minor ' ; // Hellblau = Grün Keine
95
+ $ conv ->translate ["204 153 255 " ][] = 'Minor ' ; // Rosa Vorabinformation
96
+
97
+ $ conv ->translate ["255 255 0 " ][] = 'Moderate ' ; // Gelb Wetterwarnung
98
+
99
+ $ conv ->translate ["255 153 0 " ][] = 'Severe ' ; // Orange Markantes Wetter
100
+
101
+ $ conv ->translate ["255 0 0 " ][] = 'Extreme ' ; // Rot Unwetterwarnung
102
+ $ conv ->translate ["175 0 100 " ][] = 'Extreme ' ; // Violett Extreme Wetterwarnung
103
+
104
+
105
+ $ conv ->move ['GROUP ' ][] = "hazard_type " ; // lösche den source awareness_level oder überschreibe den destinaion awareness_level
106
+
107
+ $ conv ->translate ['THUNDERSTORM ' ][] = "thunderstorm " ;
108
+ $ conv ->translate ['WIND ' ][] = "wind " ;
109
+ $ conv ->translate ['RAIN ' ][] = "rain " ;
110
+ $ conv ->translate ['HAIL ' ][] = "hail " ;
111
+ $ conv ->translate ['SNOWFALL ' ][] = "snow " ;
112
+ $ conv ->translate ['SNOWDRIFT ' ][] = "ice " ;
113
+ $ conv ->translate ['FOG ' ][] = "fog " ;
114
+ $ conv ->translate ['FROST ' ][] = "frost " ;
115
+ $ conv ->translate ['GLAZE ' ][] = "glaze " ;
116
+ $ conv ->translate ['THAW ' ][] = "thaw " ;
117
+ $ conv ->translate ['LAKE ' ][] = "lake " ;
118
+ $ conv ->translate ['HEAT ' ][] = "heat " ;
119
+ $ conv ->translate ['FROST ' ][] = "cold " ;
120
+
121
+ //-------------------------------------------------------------------------------------------------------------------------------------------------
0 commit comments