@azohra/meteo.station 0.3.1 → 0.4.2
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/dist/client/climatology.d.ts +27 -0
- package/dist/client/climatology.js +83 -0
- package/dist/client/history.d.ts +53 -0
- package/dist/client/history.js +114 -0
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +3 -1
- package/dist/client/live.js +15 -0
- package/dist/climatology.d.ts +61 -0
- package/dist/climatology.js +208 -0
- package/dist/contract-climatology.d.ts +69 -0
- package/dist/contract-climatology.js +50 -0
- package/dist/contract.d.ts +234 -1
- package/dist/contract.js +52 -4
- package/dist/derive.d.ts +23 -1
- package/dist/derive.js +43 -4
- package/dist/display.d.ts +4 -0
- package/dist/display.js +2 -1
- package/dist/elements/elements/AirExtremesElement.d.ts +8 -0
- package/dist/elements/elements/AirExtremesElement.js +33 -0
- package/dist/elements/elements/ClimatologyDailyPatternElement.d.ts +15 -0
- package/dist/elements/elements/ClimatologyDailyPatternElement.js +84 -0
- package/dist/elements/elements/ClimatologyRoseElement.d.ts +14 -0
- package/dist/elements/elements/ClimatologyRoseElement.js +51 -0
- package/dist/elements/elements/CompassFanElement.d.ts +14 -0
- package/dist/elements/elements/CompassFanElement.js +92 -0
- package/dist/elements/elements/DailyPatternElement.d.ts +1 -0
- package/dist/elements/elements/DailyPatternElement.js +20 -12
- package/dist/elements/elements/DialElement.js +14 -3
- package/dist/elements/elements/FavorableShareElement.d.ts +14 -0
- package/dist/elements/elements/FavorableShareElement.js +47 -0
- package/dist/elements/elements/RecentSummariesElement.d.ts +14 -0
- package/dist/elements/elements/RecentSummariesElement.js +54 -0
- package/dist/elements/elements/StationFeedElement.d.ts +3 -0
- package/dist/elements/elements/StationFeedElement.js +13 -2
- package/dist/elements/elements/WindHistoryChartElement.js +16 -3
- package/dist/elements/elements/WindRoseElement.d.ts +1 -3
- package/dist/elements/elements/WindRoseElement.js +60 -62
- package/dist/elements/elements/atoms.js +3 -3
- package/dist/elements/index.d.ts +13 -1
- package/dist/elements/index.js +15 -3
- package/dist/elements/lib/ambient.d.ts +2 -0
- package/dist/elements/lib/attributes.js +24 -1
- package/dist/elements/lib/base.d.ts +3 -0
- package/dist/elements/lib/base.js +14 -2
- package/dist/endpoints.d.ts +7 -1
- package/dist/endpoints.js +13 -1
- package/dist/geometry.d.ts +22 -3
- package/dist/geometry.js +41 -5
- package/dist/index.d.ts +8 -6
- package/dist/index.js +8 -6
- package/dist/instruments.d.ts +7 -5
- package/dist/instruments.js +20 -7
- package/dist/merge-current.js +2 -1
- package/dist/react/components/AirExtremes.d.ts +16 -0
- package/dist/react/components/AirExtremes.js +38 -0
- package/dist/react/components/ClimatologyDailyPattern.d.ts +20 -0
- package/dist/react/components/ClimatologyDailyPattern.js +59 -0
- package/dist/react/components/ClimatologyRose.d.ts +18 -0
- package/dist/react/components/ClimatologyRose.js +45 -0
- package/dist/react/components/CompassFan.d.ts +17 -0
- package/dist/react/components/CompassFan.js +93 -0
- package/dist/react/components/DailyPattern.d.ts +4 -1
- package/dist/react/components/DailyPattern.js +13 -6
- package/dist/react/components/Dial.d.ts +3 -1
- package/dist/react/components/Dial.js +13 -2
- package/dist/react/components/FavorableShare.d.ts +14 -0
- package/dist/react/components/FavorableShare.js +43 -0
- package/dist/react/components/RecentSummaries.d.ts +19 -0
- package/dist/react/components/RecentSummaries.js +65 -0
- package/dist/react/components/StationFeedProvider.d.ts +4 -1
- package/dist/react/components/StationFeedProvider.js +5 -3
- package/dist/react/components/WindHistoryChart.d.ts +6 -1
- package/dist/react/components/WindHistoryChart.js +18 -3
- package/dist/react/components/WindRose.d.ts +4 -2
- package/dist/react/components/WindRose.js +80 -71
- package/dist/react/components/WindSampleStrip.d.ts +3 -1
- package/dist/react/components/WindSampleStrip.js +6 -3
- package/dist/react/components/atoms.d.ts +4 -1
- package/dist/react/components/atoms.js +6 -3
- package/dist/react/hooks/useStationClimatology.d.ts +18 -0
- package/dist/react/hooks/useStationClimatology.js +25 -0
- package/dist/react/index.d.ts +10 -3
- package/dist/react/index.js +9 -2
- package/dist/scene/air-extremes.d.ts +2 -0
- package/dist/scene/air-extremes.js +42 -0
- package/dist/scene/atoms.d.ts +2 -1
- package/dist/scene/atoms.js +6 -4
- package/dist/scene/climatology-pattern.d.ts +6 -0
- package/dist/scene/climatology-pattern.js +35 -0
- package/dist/scene/climatology-rose.d.ts +5 -0
- package/dist/scene/climatology-rose.js +49 -0
- package/dist/scene/compass-fan.d.ts +3 -0
- package/dist/scene/compass-fan.js +115 -0
- package/dist/scene/daily-pattern.d.ts +1 -0
- package/dist/scene/daily-pattern.js +20 -6
- package/dist/scene/dial.d.ts +1 -0
- package/dist/scene/dial.js +16 -3
- package/dist/scene/favorable-share.d.ts +3 -0
- package/dist/scene/favorable-share.js +41 -0
- package/dist/scene/index.d.ts +9 -3
- package/dist/scene/recent-summaries.d.ts +4 -0
- package/dist/scene/recent-summaries.js +75 -0
- package/dist/scene/rose.d.ts +2 -1
- package/dist/scene/rose.js +18 -3
- package/dist/scene/sample-strip.d.ts +1 -0
- package/dist/scene/sample-strip.js +1 -1
- package/dist/scene/wind-history.d.ts +1 -0
- package/dist/scene/wind-history.js +4 -3
- package/dist/scene/wind-plot.d.ts +1 -0
- package/dist/scene/wind-plot.js +30 -3
- package/dist/server/adapter.d.ts +2 -1
- package/dist/server/adapter.js +2 -1
- package/dist/server/adapters/windnerd-climatology.d.ts +33 -0
- package/dist/server/adapters/windnerd-climatology.js +81 -0
- package/dist/server/adapters/windnerd-live.js +21 -13
- package/dist/server/adapters/windnerd.d.ts +31 -4
- package/dist/server/adapters/windnerd.js +197 -19
- package/dist/server/feed.d.ts +44 -2
- package/dist/server/feed.js +63 -2
- package/dist/server/handler.d.ts +11 -1
- package/dist/server/handler.js +83 -2
- package/dist/server/index.d.ts +4 -3
- package/dist/server/index.js +4 -3
- package/dist/strings.d.ts +12 -0
- package/dist/strings.js +12 -0
- package/package.json +2 -2
- package/schema/example-climatology.json +86 -0
- package/schema/example-history.json +38 -0
- package/schema/stationclimatology.schema.json +195 -0
- package/schema/stationcurrent.schema.json +173 -0
- package/schema/stationfeed.schema.json +173 -0
- package/schema/stationhistory.schema.json +186 -0
- package/schema/stationlive.schema.json +202 -0
- package/styles.css +215 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://meteo.azohra.com/schema/stationhistory.schema.json",
|
|
4
|
+
"title": "StationHistory",
|
|
5
|
+
"description": "One requested archive window served at /history — the pan/zoom road. Reuses the history shape; periodMinutes echoes what the source actually supplied.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"const": 2
|
|
11
|
+
},
|
|
12
|
+
"servedAt": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "date-time"
|
|
15
|
+
},
|
|
16
|
+
"stationId": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1
|
|
19
|
+
},
|
|
20
|
+
"history": {
|
|
21
|
+
"description": "The window's records at the served resolution; periodMinutes echoes what the source actually supplied, which may differ from the request when the vendor snapped it.",
|
|
22
|
+
"$ref": "#/$defs/History"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"schemaVersion",
|
|
27
|
+
"servedAt",
|
|
28
|
+
"stationId",
|
|
29
|
+
"history"
|
|
30
|
+
],
|
|
31
|
+
"$defs": {
|
|
32
|
+
"HistoryPoint": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"observedAt": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": "date-time"
|
|
38
|
+
},
|
|
39
|
+
"windAvgMps": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"minimum": 0,
|
|
42
|
+
"description": "Mean m/s over the record's period."
|
|
43
|
+
},
|
|
44
|
+
"windGustMps": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"type": "number",
|
|
48
|
+
"minimum": 0
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "null"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"windLullMps": {
|
|
56
|
+
"anyOf": [
|
|
57
|
+
{
|
|
58
|
+
"type": "number",
|
|
59
|
+
"minimum": 0
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "null"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"windDirectionDeg": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "number",
|
|
70
|
+
"minimum": 0,
|
|
71
|
+
"exclusiveMaximum": 360
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "null"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"description": "Degrees FROM; null exactly when the period was calm (below 0.5 m/s)."
|
|
78
|
+
},
|
|
79
|
+
"temperatureC": {
|
|
80
|
+
"anyOf": [
|
|
81
|
+
{
|
|
82
|
+
"type": "number"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "null"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"seaLevelPressureHpa": {
|
|
90
|
+
"anyOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "number",
|
|
93
|
+
"exclusiveMinimum": 0
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "null"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"windVectorAvgMps": {
|
|
101
|
+
"description": "Vector-mean m/s over the period — the honest input for further vector re-aggregation; at most windAvgMps. Absent or null reads as 'not published here'.",
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"type": "number",
|
|
105
|
+
"minimum": 0
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "null"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"temperatureMinC": {
|
|
113
|
+
"anyOf": [
|
|
114
|
+
{
|
|
115
|
+
"type": "number"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "null"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"temperatureMaxC": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"type": "number"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "null"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"seaLevelPressureMinHpa": {
|
|
133
|
+
"anyOf": [
|
|
134
|
+
{
|
|
135
|
+
"type": "number",
|
|
136
|
+
"exclusiveMinimum": 0
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "null"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"seaLevelPressureMaxHpa": {
|
|
144
|
+
"anyOf": [
|
|
145
|
+
{
|
|
146
|
+
"type": "number",
|
|
147
|
+
"exclusiveMinimum": 0
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "null"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": [
|
|
156
|
+
"observedAt",
|
|
157
|
+
"windAvgMps",
|
|
158
|
+
"windGustMps",
|
|
159
|
+
"windLullMps",
|
|
160
|
+
"windDirectionDeg",
|
|
161
|
+
"temperatureC"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"History": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"periodMinutes": {
|
|
168
|
+
"type": "number",
|
|
169
|
+
"exclusiveMinimum": 0,
|
|
170
|
+
"description": "Minutes each point covers. Wind run, vane thinning, and dropout detection are functions of it."
|
|
171
|
+
},
|
|
172
|
+
"points": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"items": {
|
|
175
|
+
"$ref": "#/$defs/HistoryPoint"
|
|
176
|
+
},
|
|
177
|
+
"description": "A dropout is an ABSENT record, never a zeroed one — gaps carry no points."
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"required": [
|
|
181
|
+
"periodMinutes",
|
|
182
|
+
"points"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -88,6 +88,35 @@
|
|
|
88
88
|
"telemetry"
|
|
89
89
|
]
|
|
90
90
|
},
|
|
91
|
+
{
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"type": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"const": "summaries"
|
|
97
|
+
},
|
|
98
|
+
"stationId": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1
|
|
101
|
+
},
|
|
102
|
+
"servedAt": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"format": "date-time"
|
|
105
|
+
},
|
|
106
|
+
"summaries": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"$ref": "#/$defs/RecentSummary"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"type",
|
|
115
|
+
"stationId",
|
|
116
|
+
"servedAt",
|
|
117
|
+
"summaries"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
91
120
|
{
|
|
92
121
|
"type": "object",
|
|
93
122
|
"properties": {
|
|
@@ -206,6 +235,31 @@
|
|
|
206
235
|
}
|
|
207
236
|
]
|
|
208
237
|
},
|
|
238
|
+
"declaredFavorableDirections": {
|
|
239
|
+
"anyOf": [
|
|
240
|
+
{
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"$ref": "#/$defs/DirectionArc"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "null"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"broadcastDelaySeconds": {
|
|
252
|
+
"description": "The source's own live-playback delay, seconds; absent or null when the vendor states none.",
|
|
253
|
+
"anyOf": [
|
|
254
|
+
{
|
|
255
|
+
"type": "number",
|
|
256
|
+
"minimum": 0
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "null"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
209
263
|
"capabilities": {
|
|
210
264
|
"$ref": "#/$defs/StationCapabilities"
|
|
211
265
|
},
|
|
@@ -260,6 +314,19 @@
|
|
|
260
314
|
"type": "null"
|
|
261
315
|
}
|
|
262
316
|
]
|
|
317
|
+
},
|
|
318
|
+
"recentSummaries": {
|
|
319
|
+
"anyOf": [
|
|
320
|
+
{
|
|
321
|
+
"type": "array",
|
|
322
|
+
"items": {
|
|
323
|
+
"$ref": "#/$defs/RecentSummary"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "null"
|
|
328
|
+
}
|
|
329
|
+
]
|
|
263
330
|
}
|
|
264
331
|
},
|
|
265
332
|
"required": [
|
|
@@ -348,6 +415,31 @@
|
|
|
348
415
|
}
|
|
349
416
|
]
|
|
350
417
|
},
|
|
418
|
+
"declaredFavorableDirections": {
|
|
419
|
+
"anyOf": [
|
|
420
|
+
{
|
|
421
|
+
"type": "array",
|
|
422
|
+
"items": {
|
|
423
|
+
"$ref": "#/$defs/DirectionArc"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"type": "null"
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
"broadcastDelaySeconds": {
|
|
432
|
+
"description": "The source's own live-playback delay, seconds; absent or null when the vendor states none.",
|
|
433
|
+
"anyOf": [
|
|
434
|
+
{
|
|
435
|
+
"type": "number",
|
|
436
|
+
"minimum": 0
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"type": "null"
|
|
440
|
+
}
|
|
441
|
+
]
|
|
442
|
+
},
|
|
351
443
|
"capabilities": {
|
|
352
444
|
"$ref": "#/$defs/StationCapabilities"
|
|
353
445
|
},
|
|
@@ -407,6 +499,24 @@
|
|
|
407
499
|
}
|
|
408
500
|
]
|
|
409
501
|
},
|
|
502
|
+
"DirectionArc": {
|
|
503
|
+
"type": "object",
|
|
504
|
+
"properties": {
|
|
505
|
+
"fromDeg": {
|
|
506
|
+
"type": "number",
|
|
507
|
+
"description": "Degrees FROM, clockwise from north."
|
|
508
|
+
},
|
|
509
|
+
"toDeg": {
|
|
510
|
+
"type": "number",
|
|
511
|
+
"description": "Degrees FROM; fromDeg > toDeg wraps through north, boundaries inclusive."
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"required": [
|
|
515
|
+
"fromDeg",
|
|
516
|
+
"toDeg"
|
|
517
|
+
],
|
|
518
|
+
"description": "One arc of favorable FROM bearings — core's DirectionArc shape on the wire."
|
|
519
|
+
},
|
|
410
520
|
"StationCapabilities": {
|
|
411
521
|
"type": "object",
|
|
412
522
|
"properties": {
|
|
@@ -443,6 +553,17 @@
|
|
|
443
553
|
"type": "null"
|
|
444
554
|
}
|
|
445
555
|
]
|
|
556
|
+
},
|
|
557
|
+
"recentSummaries": {
|
|
558
|
+
"description": "The source maintains pre-digested rolling step summaries; absent or null reads as false.",
|
|
559
|
+
"anyOf": [
|
|
560
|
+
{
|
|
561
|
+
"type": "boolean"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"type": "null"
|
|
565
|
+
}
|
|
566
|
+
]
|
|
446
567
|
}
|
|
447
568
|
},
|
|
448
569
|
"required": [
|
|
@@ -780,6 +901,60 @@
|
|
|
780
901
|
"type": "null"
|
|
781
902
|
}
|
|
782
903
|
]
|
|
904
|
+
},
|
|
905
|
+
"windVectorAvgMps": {
|
|
906
|
+
"description": "Vector-mean m/s over the period — the honest input for further vector re-aggregation; at most windAvgMps. Absent or null reads as 'not published here'.",
|
|
907
|
+
"anyOf": [
|
|
908
|
+
{
|
|
909
|
+
"type": "number",
|
|
910
|
+
"minimum": 0
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"type": "null"
|
|
914
|
+
}
|
|
915
|
+
]
|
|
916
|
+
},
|
|
917
|
+
"temperatureMinC": {
|
|
918
|
+
"anyOf": [
|
|
919
|
+
{
|
|
920
|
+
"type": "number"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"type": "null"
|
|
924
|
+
}
|
|
925
|
+
]
|
|
926
|
+
},
|
|
927
|
+
"temperatureMaxC": {
|
|
928
|
+
"anyOf": [
|
|
929
|
+
{
|
|
930
|
+
"type": "number"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"type": "null"
|
|
934
|
+
}
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"seaLevelPressureMinHpa": {
|
|
938
|
+
"anyOf": [
|
|
939
|
+
{
|
|
940
|
+
"type": "number",
|
|
941
|
+
"exclusiveMinimum": 0
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"type": "null"
|
|
945
|
+
}
|
|
946
|
+
]
|
|
947
|
+
},
|
|
948
|
+
"seaLevelPressureMaxHpa": {
|
|
949
|
+
"anyOf": [
|
|
950
|
+
{
|
|
951
|
+
"type": "number",
|
|
952
|
+
"exclusiveMinimum": 0
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"type": "null"
|
|
956
|
+
}
|
|
957
|
+
]
|
|
783
958
|
}
|
|
784
959
|
},
|
|
785
960
|
"required": [
|
|
@@ -863,6 +1038,33 @@
|
|
|
863
1038
|
"windMps",
|
|
864
1039
|
"windDirectionDeg"
|
|
865
1040
|
]
|
|
1041
|
+
},
|
|
1042
|
+
"RecentSummary": {
|
|
1043
|
+
"type": "object",
|
|
1044
|
+
"properties": {
|
|
1045
|
+
"windowMinutes": {
|
|
1046
|
+
"type": "number",
|
|
1047
|
+
"exclusiveMinimum": 0,
|
|
1048
|
+
"description": "The rolling window this summarises."
|
|
1049
|
+
},
|
|
1050
|
+
"stepMinutes": {
|
|
1051
|
+
"type": "number",
|
|
1052
|
+
"exclusiveMinimum": 0,
|
|
1053
|
+
"description": "Minutes each point covers."
|
|
1054
|
+
},
|
|
1055
|
+
"points": {
|
|
1056
|
+
"type": "array",
|
|
1057
|
+
"items": {
|
|
1058
|
+
"$ref": "#/$defs/HistoryPoint"
|
|
1059
|
+
},
|
|
1060
|
+
"description": "Oldest first, one per filled step; a step the source left empty is ABSENT."
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"required": [
|
|
1064
|
+
"windowMinutes",
|
|
1065
|
+
"stepMinutes",
|
|
1066
|
+
"points"
|
|
1067
|
+
]
|
|
866
1068
|
}
|
|
867
1069
|
}
|
|
868
1070
|
}
|
package/styles.css
CHANGED
|
@@ -158,6 +158,44 @@
|
|
|
158
158
|
color: var(--meteo-muted, #62717f);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
/* Verdict-tinted direction fragments, only when the consumer supplied
|
|
162
|
+
* favorable arcs. */
|
|
163
|
+
.meteo-direction-favorable {
|
|
164
|
+
color: var(--meteo-wind-favorable, #2e9e63);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.meteo-direction-unfavorable {
|
|
168
|
+
color: var(--meteo-wind-unfavorable, #c98a80);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* The favorable-share stat: one caption-grade label and one number, sized
|
|
172
|
+
* to sit beside the summary cells. Hidden entirely without arcs; the -na
|
|
173
|
+
* note carries the words when there is nothing to judge. */
|
|
174
|
+
.meteo-favorable-share {
|
|
175
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
176
|
+
color: var(--meteo-ink, #17232e);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.meteo-favorable-share-label {
|
|
180
|
+
font-size: 0.68rem;
|
|
181
|
+
font-weight: 600;
|
|
182
|
+
text-transform: uppercase;
|
|
183
|
+
letter-spacing: 0.08em;
|
|
184
|
+
color: var(--meteo-muted, #62717f);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.meteo-favorable-share-value {
|
|
188
|
+
font-variant-numeric: tabular-nums;
|
|
189
|
+
font-feature-settings: "tnum";
|
|
190
|
+
font-weight: 600;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.meteo-favorable-share-na {
|
|
194
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
195
|
+
font-size: 0.82rem;
|
|
196
|
+
color: var(--meteo-muted, #62717f);
|
|
197
|
+
}
|
|
198
|
+
|
|
161
199
|
/* A timestamp is context, not a reading — it speaks in the muted voice. */
|
|
162
200
|
.meteo-updated {
|
|
163
201
|
color: var(--meteo-muted, #62717f);
|
|
@@ -251,6 +289,22 @@
|
|
|
251
289
|
stroke-width: 1.5;
|
|
252
290
|
}
|
|
253
291
|
|
|
292
|
+
/* The dial's judgment ring, the rose's treatment on the bezel radius:
|
|
293
|
+
* favorable arcs paint over the unfavorable circle. */
|
|
294
|
+
.meteo-wind-dial-ring-unfavorable {
|
|
295
|
+
fill: none;
|
|
296
|
+
stroke: var(--meteo-wind-unfavorable, #c98a80);
|
|
297
|
+
stroke-width: 3;
|
|
298
|
+
opacity: 0.55;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.meteo-wind-dial-ring-favorable {
|
|
302
|
+
fill: none;
|
|
303
|
+
stroke: var(--meteo-wind-favorable, #2e9e63);
|
|
304
|
+
stroke-width: 3;
|
|
305
|
+
stroke-linecap: butt;
|
|
306
|
+
}
|
|
307
|
+
|
|
254
308
|
/* The speed arc: the current reading's share of the dial scale, wearing the
|
|
255
309
|
* reading's band when thresholds grade it. */
|
|
256
310
|
.meteo-wind-dial-arc {
|
|
@@ -539,6 +593,16 @@
|
|
|
539
593
|
stroke-linejoin: round;
|
|
540
594
|
}
|
|
541
595
|
|
|
596
|
+
/* Verdict-tinted vanes, drawn only when the consumer supplied favorable
|
|
597
|
+
* arcs; a calm cell never wears one. */
|
|
598
|
+
.meteo-wind-vane-favorable {
|
|
599
|
+
stroke: var(--meteo-wind-favorable, #2e9e63);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.meteo-wind-vane-unfavorable {
|
|
603
|
+
stroke: var(--meteo-wind-unfavorable, #c98a80);
|
|
604
|
+
}
|
|
605
|
+
|
|
542
606
|
/* The persistent compass letter above every vane, and the persistent Avg
|
|
543
607
|
* number below it — both small, tabular, and quieter than the vane row's
|
|
544
608
|
* own "TO" caption; text.meteo-wind-chart-svg's base rule already sets
|
|
@@ -780,6 +844,157 @@
|
|
|
780
844
|
font-feature-settings: "tnum";
|
|
781
845
|
}
|
|
782
846
|
|
|
847
|
+
/* Night columns: sunset to sunrise from real astronomy, quiet gray under
|
|
848
|
+
* every data layer. */
|
|
849
|
+
.meteo-night {
|
|
850
|
+
fill: var(--meteo-muted, #62717f);
|
|
851
|
+
opacity: 0.12;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/* ---------- live theatre ---------- */
|
|
855
|
+
|
|
856
|
+
.meteo-compass-fan-svg {
|
|
857
|
+
display: block;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.meteo-compass-fan-na,
|
|
861
|
+
.meteo-recent-summaries-na {
|
|
862
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
863
|
+
font-size: 0.82rem;
|
|
864
|
+
color: var(--meteo-muted, #62717f);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/* The fan's age gradient: ghost-0 is the freshest sample, ghost-9 the
|
|
868
|
+
* oldest, fading toward the ring. */
|
|
869
|
+
.meteo-fan-ghost-0,
|
|
870
|
+
.meteo-fan-ghost-1,
|
|
871
|
+
.meteo-fan-ghost-2,
|
|
872
|
+
.meteo-fan-ghost-3,
|
|
873
|
+
.meteo-fan-ghost-4,
|
|
874
|
+
.meteo-fan-ghost-5,
|
|
875
|
+
.meteo-fan-ghost-6,
|
|
876
|
+
.meteo-fan-ghost-7,
|
|
877
|
+
.meteo-fan-ghost-8,
|
|
878
|
+
.meteo-fan-ghost-9 {
|
|
879
|
+
fill: none;
|
|
880
|
+
stroke: var(--meteo-wind-vane, #3b4a58);
|
|
881
|
+
stroke-width: 1.4;
|
|
882
|
+
stroke-linecap: round;
|
|
883
|
+
stroke-linejoin: round;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.meteo-fan-ghost-0 {
|
|
887
|
+
opacity: 0.85;
|
|
888
|
+
}
|
|
889
|
+
.meteo-fan-ghost-1 {
|
|
890
|
+
opacity: 0.75;
|
|
891
|
+
}
|
|
892
|
+
.meteo-fan-ghost-2 {
|
|
893
|
+
opacity: 0.65;
|
|
894
|
+
}
|
|
895
|
+
.meteo-fan-ghost-3 {
|
|
896
|
+
opacity: 0.55;
|
|
897
|
+
}
|
|
898
|
+
.meteo-fan-ghost-4 {
|
|
899
|
+
opacity: 0.47;
|
|
900
|
+
}
|
|
901
|
+
.meteo-fan-ghost-5 {
|
|
902
|
+
opacity: 0.4;
|
|
903
|
+
}
|
|
904
|
+
.meteo-fan-ghost-6 {
|
|
905
|
+
opacity: 0.33;
|
|
906
|
+
}
|
|
907
|
+
.meteo-fan-ghost-7 {
|
|
908
|
+
opacity: 0.27;
|
|
909
|
+
}
|
|
910
|
+
.meteo-fan-ghost-8 {
|
|
911
|
+
opacity: 0.21;
|
|
912
|
+
}
|
|
913
|
+
.meteo-fan-ghost-9 {
|
|
914
|
+
opacity: 0.16;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.meteo-recent-summaries {
|
|
918
|
+
display: flex;
|
|
919
|
+
gap: 1rem;
|
|
920
|
+
flex-wrap: wrap;
|
|
921
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.meteo-recent-summary {
|
|
925
|
+
min-width: 10rem;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.meteo-recent-summary-ghosts {
|
|
929
|
+
display: flex;
|
|
930
|
+
gap: 2px;
|
|
931
|
+
margin: 0.25rem 0;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.meteo-recent-summary-ghost {
|
|
935
|
+
display: inline-flex;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.meteo-recent-summary-stats {
|
|
939
|
+
display: flex;
|
|
940
|
+
gap: 0.9rem;
|
|
941
|
+
margin: 0;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.meteo-recent-summary-stat dd {
|
|
945
|
+
margin: 0;
|
|
946
|
+
font-variant-numeric: tabular-nums;
|
|
947
|
+
font-feature-settings: "tnum";
|
|
948
|
+
font-weight: 600;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.meteo-air-extremes {
|
|
952
|
+
display: flex;
|
|
953
|
+
gap: 1rem;
|
|
954
|
+
margin: 0;
|
|
955
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.meteo-air-extremes-tile dd,
|
|
959
|
+
.meteo-air-extremes-value {
|
|
960
|
+
margin: 0;
|
|
961
|
+
font-variant-numeric: tabular-nums;
|
|
962
|
+
font-feature-settings: "tnum";
|
|
963
|
+
font-weight: 600;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/* ---------- climatology views ---------- */
|
|
967
|
+
|
|
968
|
+
/* The cube's rose and typical day carry the honesty row beneath the
|
|
969
|
+
* drawing; the shared inner classes do the drawing itself. */
|
|
970
|
+
.meteo-climatology-rose {
|
|
971
|
+
display: inline-block;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.meteo-climatology-caption {
|
|
975
|
+
margin: 0;
|
|
976
|
+
font-size: 0.8rem;
|
|
977
|
+
color: var(--meteo-muted, #62717f);
|
|
978
|
+
font-variant-numeric: tabular-nums;
|
|
979
|
+
font-feature-settings: "tnum";
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.meteo-climatology-caption-favorable {
|
|
983
|
+
color: var(--meteo-wind-favorable, #2e9e63);
|
|
984
|
+
font-weight: 600;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.meteo-climatology-daily-pattern {
|
|
988
|
+
display: block;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.meteo-climatology-rose-na,
|
|
992
|
+
.meteo-climatology-daily-pattern-na {
|
|
993
|
+
font-family: var(--meteo-font, ui-sans-serif, system-ui, sans-serif);
|
|
994
|
+
font-size: 0.82rem;
|
|
995
|
+
color: var(--meteo-muted, #62717f);
|
|
996
|
+
}
|
|
997
|
+
|
|
783
998
|
/* ---------- station table ---------- */
|
|
784
999
|
|
|
785
1000
|
.meteo-station-table {
|