@azohra/meteo.station 0.3.0 → 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.
Files changed (139) hide show
  1. package/README.md +2 -2
  2. package/dist/client/climatology.d.ts +27 -0
  3. package/dist/client/climatology.js +83 -0
  4. package/dist/client/history.d.ts +53 -0
  5. package/dist/client/history.js +114 -0
  6. package/dist/client/index.d.ts +3 -1
  7. package/dist/client/index.js +3 -1
  8. package/dist/client/live.js +15 -0
  9. package/dist/climatology.d.ts +61 -0
  10. package/dist/climatology.js +208 -0
  11. package/dist/connectivity.d.ts +46 -0
  12. package/dist/connectivity.js +44 -0
  13. package/dist/contract-climatology.d.ts +69 -0
  14. package/dist/contract-climatology.js +50 -0
  15. package/dist/contract.d.ts +234 -1
  16. package/dist/contract.js +52 -4
  17. package/dist/derive.d.ts +23 -1
  18. package/dist/derive.js +43 -4
  19. package/dist/display.d.ts +4 -0
  20. package/dist/display.js +2 -1
  21. package/dist/elements/elements/AirExtremesElement.d.ts +8 -0
  22. package/dist/elements/elements/AirExtremesElement.js +33 -0
  23. package/dist/elements/elements/ClimatologyDailyPatternElement.d.ts +15 -0
  24. package/dist/elements/elements/ClimatologyDailyPatternElement.js +84 -0
  25. package/dist/elements/elements/ClimatologyRoseElement.d.ts +14 -0
  26. package/dist/elements/elements/ClimatologyRoseElement.js +51 -0
  27. package/dist/elements/elements/CompassFanElement.d.ts +14 -0
  28. package/dist/elements/elements/CompassFanElement.js +92 -0
  29. package/dist/elements/elements/DailyPatternElement.d.ts +1 -0
  30. package/dist/elements/elements/DailyPatternElement.js +20 -12
  31. package/dist/elements/elements/DialElement.js +14 -3
  32. package/dist/elements/elements/FavorableShareElement.d.ts +14 -0
  33. package/dist/elements/elements/FavorableShareElement.js +47 -0
  34. package/dist/elements/elements/RecentSummariesElement.d.ts +14 -0
  35. package/dist/elements/elements/RecentSummariesElement.js +54 -0
  36. package/dist/elements/elements/StationFeedElement.d.ts +3 -0
  37. package/dist/elements/elements/StationFeedElement.js +13 -2
  38. package/dist/elements/elements/WindHistoryChartElement.js +16 -3
  39. package/dist/elements/elements/WindRoseElement.d.ts +1 -3
  40. package/dist/elements/elements/WindRoseElement.js +60 -62
  41. package/dist/elements/elements/atoms.js +3 -3
  42. package/dist/elements/index.d.ts +13 -1
  43. package/dist/elements/index.js +15 -3
  44. package/dist/elements/lib/ambient.d.ts +2 -0
  45. package/dist/elements/lib/attributes.js +24 -1
  46. package/dist/elements/lib/base.d.ts +3 -0
  47. package/dist/elements/lib/base.js +14 -2
  48. package/dist/endpoints.d.ts +7 -1
  49. package/dist/endpoints.js +13 -1
  50. package/dist/geometry.d.ts +22 -3
  51. package/dist/geometry.js +41 -5
  52. package/dist/index.d.ts +9 -6
  53. package/dist/index.js +9 -6
  54. package/dist/instruments.d.ts +7 -5
  55. package/dist/instruments.js +20 -7
  56. package/dist/merge-current.js +2 -1
  57. package/dist/react/components/AirExtremes.d.ts +16 -0
  58. package/dist/react/components/AirExtremes.js +38 -0
  59. package/dist/react/components/ClimatologyDailyPattern.d.ts +20 -0
  60. package/dist/react/components/ClimatologyDailyPattern.js +59 -0
  61. package/dist/react/components/ClimatologyRose.d.ts +18 -0
  62. package/dist/react/components/ClimatologyRose.js +45 -0
  63. package/dist/react/components/CompassFan.d.ts +17 -0
  64. package/dist/react/components/CompassFan.js +93 -0
  65. package/dist/react/components/DailyPattern.d.ts +4 -1
  66. package/dist/react/components/DailyPattern.js +13 -6
  67. package/dist/react/components/Dial.d.ts +3 -1
  68. package/dist/react/components/Dial.js +13 -2
  69. package/dist/react/components/FavorableShare.d.ts +14 -0
  70. package/dist/react/components/FavorableShare.js +43 -0
  71. package/dist/react/components/RecentSummaries.d.ts +19 -0
  72. package/dist/react/components/RecentSummaries.js +65 -0
  73. package/dist/react/components/StationFeedProvider.d.ts +4 -1
  74. package/dist/react/components/StationFeedProvider.js +5 -3
  75. package/dist/react/components/WindHistoryChart.d.ts +6 -1
  76. package/dist/react/components/WindHistoryChart.js +18 -3
  77. package/dist/react/components/WindRose.d.ts +4 -2
  78. package/dist/react/components/WindRose.js +80 -71
  79. package/dist/react/components/WindSampleStrip.d.ts +3 -1
  80. package/dist/react/components/WindSampleStrip.js +6 -3
  81. package/dist/react/components/atoms.d.ts +4 -1
  82. package/dist/react/components/atoms.js +6 -3
  83. package/dist/react/hooks/useStationClimatology.d.ts +18 -0
  84. package/dist/react/hooks/useStationClimatology.js +25 -0
  85. package/dist/react/index.d.ts +10 -3
  86. package/dist/react/index.js +9 -2
  87. package/dist/scene/air-extremes.d.ts +2 -0
  88. package/dist/scene/air-extremes.js +42 -0
  89. package/dist/scene/atoms.d.ts +2 -1
  90. package/dist/scene/atoms.js +6 -4
  91. package/dist/scene/climatology-pattern.d.ts +6 -0
  92. package/dist/scene/climatology-pattern.js +35 -0
  93. package/dist/scene/climatology-rose.d.ts +5 -0
  94. package/dist/scene/climatology-rose.js +49 -0
  95. package/dist/scene/compass-fan.d.ts +3 -0
  96. package/dist/scene/compass-fan.js +115 -0
  97. package/dist/scene/daily-pattern.d.ts +1 -0
  98. package/dist/scene/daily-pattern.js +20 -6
  99. package/dist/scene/dial.d.ts +1 -0
  100. package/dist/scene/dial.js +16 -3
  101. package/dist/scene/favorable-share.d.ts +3 -0
  102. package/dist/scene/favorable-share.js +41 -0
  103. package/dist/scene/index.d.ts +9 -3
  104. package/dist/scene/recent-summaries.d.ts +4 -0
  105. package/dist/scene/recent-summaries.js +75 -0
  106. package/dist/scene/rose.d.ts +2 -1
  107. package/dist/scene/rose.js +18 -3
  108. package/dist/scene/sample-strip.d.ts +1 -0
  109. package/dist/scene/sample-strip.js +1 -1
  110. package/dist/scene/wind-history.d.ts +1 -0
  111. package/dist/scene/wind-history.js +4 -3
  112. package/dist/scene/wind-plot.d.ts +1 -0
  113. package/dist/scene/wind-plot.js +30 -3
  114. package/dist/server/adapter.d.ts +2 -1
  115. package/dist/server/adapter.js +2 -1
  116. package/dist/server/adapters/windnerd-climatology.d.ts +33 -0
  117. package/dist/server/adapters/windnerd-climatology.js +81 -0
  118. package/dist/server/adapters/windnerd-live.js +21 -13
  119. package/dist/server/adapters/windnerd.d.ts +31 -4
  120. package/dist/server/adapters/windnerd.js +197 -19
  121. package/dist/server/feed.d.ts +44 -2
  122. package/dist/server/feed.js +63 -2
  123. package/dist/server/handler.d.ts +11 -1
  124. package/dist/server/handler.js +83 -2
  125. package/dist/server/hologram.d.ts +22 -0
  126. package/dist/server/hologram.js +113 -0
  127. package/dist/server/index.d.ts +5 -3
  128. package/dist/server/index.js +5 -3
  129. package/dist/strings.d.ts +12 -0
  130. package/dist/strings.js +12 -0
  131. package/package.json +2 -2
  132. package/schema/example-climatology.json +86 -0
  133. package/schema/example-history.json +38 -0
  134. package/schema/stationclimatology.schema.json +195 -0
  135. package/schema/stationcurrent.schema.json +173 -0
  136. package/schema/stationfeed.schema.json +173 -0
  137. package/schema/stationhistory.schema.json +186 -0
  138. package/schema/stationlive.schema.json +202 -0
  139. package/styles.css +215 -0
@@ -0,0 +1,195 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://meteo.azohra.com/schema/stationclimatology.schema.json",
4
+ "title": "StationClimatology",
5
+ "description": "The multi-year cube served at /climatology: (month, slot-of-day, sector) sums bucketed in the station's standard time, binned with the consumer's thresholds. Its own document family — it versions apart from the feed.",
6
+ "type": "object",
7
+ "properties": {
8
+ "schemaVersion": {
9
+ "type": "number",
10
+ "const": 1
11
+ },
12
+ "servedAt": {
13
+ "type": "string",
14
+ "format": "date-time"
15
+ },
16
+ "stationId": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "sectorCount": {
21
+ "type": "integer",
22
+ "minimum": 4,
23
+ "maximum": 9007199254740991
24
+ },
25
+ "slotMinutes": {
26
+ "type": "integer",
27
+ "exclusiveMinimum": 0,
28
+ "maximum": 9007199254740991,
29
+ "description": "Minutes per slot of day; must divide 1440."
30
+ },
31
+ "thresholdsMps": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "number",
35
+ "minimum": 0
36
+ },
37
+ "description": "The consumer's speed-band bounds the cube was binned with, m/s, ascending. A judgment parameter echoed so a reader knows which opinion shaped bandCounts."
38
+ },
39
+ "utcOffsetMinutes": {
40
+ "type": "number",
41
+ "description": "The station's STANDARD utc offset used for month and slot bucketing — no DST, so a slot means the same solar hours in January and July."
42
+ },
43
+ "years": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/$defs/ClimatologyYear"
47
+ },
48
+ "description": "Oldest first; the coverage ledger."
49
+ },
50
+ "cells": {
51
+ "type": "array",
52
+ "items": {
53
+ "$ref": "#/$defs/ClimatologyCell"
54
+ }
55
+ }
56
+ },
57
+ "required": [
58
+ "schemaVersion",
59
+ "servedAt",
60
+ "stationId",
61
+ "sectorCount",
62
+ "slotMinutes",
63
+ "thresholdsMps",
64
+ "utcOffsetMinutes",
65
+ "years",
66
+ "cells"
67
+ ],
68
+ "$defs": {
69
+ "ClimatologyYear": {
70
+ "type": "object",
71
+ "properties": {
72
+ "year": {
73
+ "type": "integer",
74
+ "minimum": -9007199254740991,
75
+ "maximum": 9007199254740991
76
+ },
77
+ "sampleCount": {
78
+ "type": "integer",
79
+ "minimum": 0,
80
+ "maximum": 9007199254740991
81
+ },
82
+ "expectedCount": {
83
+ "type": "integer",
84
+ "minimum": 0,
85
+ "maximum": 9007199254740991,
86
+ "description": "Records a gapless station would have produced over the requested window — the honesty denominator; a leading dropout lowers the ratio instead of hiding."
87
+ }
88
+ },
89
+ "required": [
90
+ "year",
91
+ "sampleCount",
92
+ "expectedCount"
93
+ ]
94
+ },
95
+ "ClimatologyCell": {
96
+ "type": "object",
97
+ "properties": {
98
+ "month": {
99
+ "type": "integer",
100
+ "minimum": 1,
101
+ "maximum": 12
102
+ },
103
+ "slot": {
104
+ "type": "integer",
105
+ "minimum": 0,
106
+ "maximum": 9007199254740991,
107
+ "description": "Slot of day: floor(standard-time minute / slotMinutes)."
108
+ },
109
+ "sampleCount": {
110
+ "type": "integer",
111
+ "minimum": 0,
112
+ "maximum": 9007199254740991,
113
+ "description": "All records in the bucket, calm included."
114
+ },
115
+ "calmCount": {
116
+ "type": "integer",
117
+ "minimum": 0,
118
+ "maximum": 9007199254740991
119
+ },
120
+ "sectors": {
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "#/$defs/ClimatologySector"
124
+ }
125
+ }
126
+ },
127
+ "required": [
128
+ "month",
129
+ "slot",
130
+ "sampleCount",
131
+ "calmCount",
132
+ "sectors"
133
+ ]
134
+ },
135
+ "ClimatologySector": {
136
+ "type": "object",
137
+ "properties": {
138
+ "sector": {
139
+ "type": "integer",
140
+ "minimum": 0,
141
+ "maximum": 9007199254740991,
142
+ "description": "Sector index; bearing = sector × (360 / sectorCount)."
143
+ },
144
+ "count": {
145
+ "type": "integer",
146
+ "minimum": 0,
147
+ "maximum": 9007199254740991,
148
+ "description": "Non-calm records whose direction fell in this sector."
149
+ },
150
+ "uSum": {
151
+ "type": "number",
152
+ "description": "Sum of zonal components, m/s — core's wind sign."
153
+ },
154
+ "vSum": {
155
+ "type": "number",
156
+ "description": "Sum of meridional components, m/s."
157
+ },
158
+ "speedSumMps": {
159
+ "type": "number",
160
+ "minimum": 0,
161
+ "description": "Sum of scalar mean speeds, m/s."
162
+ },
163
+ "bandCounts": {
164
+ "type": "array",
165
+ "items": {
166
+ "type": "integer",
167
+ "minimum": 0,
168
+ "maximum": 9007199254740991
169
+ },
170
+ "description": "Records per speed band against the document's thresholdsMps — length thresholdsMps.length + 1."
171
+ },
172
+ "maxGustMps": {
173
+ "anyOf": [
174
+ {
175
+ "type": "number",
176
+ "minimum": 0
177
+ },
178
+ {
179
+ "type": "null"
180
+ }
181
+ ]
182
+ }
183
+ },
184
+ "required": [
185
+ "sector",
186
+ "count",
187
+ "uSum",
188
+ "vSum",
189
+ "speedSumMps",
190
+ "bandCounts",
191
+ "maxGustMps"
192
+ ]
193
+ }
194
+ }
195
+ }
@@ -94,6 +94,31 @@
94
94
  }
95
95
  ]
96
96
  },
97
+ "declaredFavorableDirections": {
98
+ "anyOf": [
99
+ {
100
+ "type": "array",
101
+ "items": {
102
+ "$ref": "#/$defs/DirectionArc"
103
+ }
104
+ },
105
+ {
106
+ "type": "null"
107
+ }
108
+ ]
109
+ },
110
+ "broadcastDelaySeconds": {
111
+ "description": "The source's own live-playback delay, seconds; absent or null when the vendor states none.",
112
+ "anyOf": [
113
+ {
114
+ "type": "number",
115
+ "minimum": 0
116
+ },
117
+ {
118
+ "type": "null"
119
+ }
120
+ ]
121
+ },
97
122
  "capabilities": {
98
123
  "$ref": "#/$defs/StationCapabilities"
99
124
  },
@@ -148,6 +173,19 @@
148
173
  "type": "null"
149
174
  }
150
175
  ]
176
+ },
177
+ "recentSummaries": {
178
+ "anyOf": [
179
+ {
180
+ "type": "array",
181
+ "items": {
182
+ "$ref": "#/$defs/RecentSummary"
183
+ }
184
+ },
185
+ {
186
+ "type": "null"
187
+ }
188
+ ]
151
189
  }
152
190
  },
153
191
  "required": [
@@ -236,6 +274,31 @@
236
274
  }
237
275
  ]
238
276
  },
277
+ "declaredFavorableDirections": {
278
+ "anyOf": [
279
+ {
280
+ "type": "array",
281
+ "items": {
282
+ "$ref": "#/$defs/DirectionArc"
283
+ }
284
+ },
285
+ {
286
+ "type": "null"
287
+ }
288
+ ]
289
+ },
290
+ "broadcastDelaySeconds": {
291
+ "description": "The source's own live-playback delay, seconds; absent or null when the vendor states none.",
292
+ "anyOf": [
293
+ {
294
+ "type": "number",
295
+ "minimum": 0
296
+ },
297
+ {
298
+ "type": "null"
299
+ }
300
+ ]
301
+ },
239
302
  "capabilities": {
240
303
  "$ref": "#/$defs/StationCapabilities"
241
304
  },
@@ -295,6 +358,24 @@
295
358
  }
296
359
  ]
297
360
  },
361
+ "DirectionArc": {
362
+ "type": "object",
363
+ "properties": {
364
+ "fromDeg": {
365
+ "type": "number",
366
+ "description": "Degrees FROM, clockwise from north."
367
+ },
368
+ "toDeg": {
369
+ "type": "number",
370
+ "description": "Degrees FROM; fromDeg > toDeg wraps through north, boundaries inclusive."
371
+ }
372
+ },
373
+ "required": [
374
+ "fromDeg",
375
+ "toDeg"
376
+ ],
377
+ "description": "One arc of favorable FROM bearings — core's DirectionArc shape on the wire."
378
+ },
298
379
  "StationCapabilities": {
299
380
  "type": "object",
300
381
  "properties": {
@@ -331,6 +412,17 @@
331
412
  "type": "null"
332
413
  }
333
414
  ]
415
+ },
416
+ "recentSummaries": {
417
+ "description": "The source maintains pre-digested rolling step summaries; absent or null reads as false.",
418
+ "anyOf": [
419
+ {
420
+ "type": "boolean"
421
+ },
422
+ {
423
+ "type": "null"
424
+ }
425
+ ]
334
426
  }
335
427
  },
336
428
  "required": [
@@ -668,6 +760,60 @@
668
760
  "type": "null"
669
761
  }
670
762
  ]
763
+ },
764
+ "windVectorAvgMps": {
765
+ "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'.",
766
+ "anyOf": [
767
+ {
768
+ "type": "number",
769
+ "minimum": 0
770
+ },
771
+ {
772
+ "type": "null"
773
+ }
774
+ ]
775
+ },
776
+ "temperatureMinC": {
777
+ "anyOf": [
778
+ {
779
+ "type": "number"
780
+ },
781
+ {
782
+ "type": "null"
783
+ }
784
+ ]
785
+ },
786
+ "temperatureMaxC": {
787
+ "anyOf": [
788
+ {
789
+ "type": "number"
790
+ },
791
+ {
792
+ "type": "null"
793
+ }
794
+ ]
795
+ },
796
+ "seaLevelPressureMinHpa": {
797
+ "anyOf": [
798
+ {
799
+ "type": "number",
800
+ "exclusiveMinimum": 0
801
+ },
802
+ {
803
+ "type": "null"
804
+ }
805
+ ]
806
+ },
807
+ "seaLevelPressureMaxHpa": {
808
+ "anyOf": [
809
+ {
810
+ "type": "number",
811
+ "exclusiveMinimum": 0
812
+ },
813
+ {
814
+ "type": "null"
815
+ }
816
+ ]
671
817
  }
672
818
  },
673
819
  "required": [
@@ -751,6 +897,33 @@
751
897
  "windMps",
752
898
  "windDirectionDeg"
753
899
  ]
900
+ },
901
+ "RecentSummary": {
902
+ "type": "object",
903
+ "properties": {
904
+ "windowMinutes": {
905
+ "type": "number",
906
+ "exclusiveMinimum": 0,
907
+ "description": "The rolling window this summarises."
908
+ },
909
+ "stepMinutes": {
910
+ "type": "number",
911
+ "exclusiveMinimum": 0,
912
+ "description": "Minutes each point covers."
913
+ },
914
+ "points": {
915
+ "type": "array",
916
+ "items": {
917
+ "$ref": "#/$defs/HistoryPoint"
918
+ },
919
+ "description": "Oldest first, one per filled step; a step the source left empty is ABSENT."
920
+ }
921
+ },
922
+ "required": [
923
+ "windowMinutes",
924
+ "stepMinutes",
925
+ "points"
926
+ ]
754
927
  }
755
928
  }
756
929
  }
@@ -109,6 +109,31 @@
109
109
  }
110
110
  ]
111
111
  },
112
+ "declaredFavorableDirections": {
113
+ "anyOf": [
114
+ {
115
+ "type": "array",
116
+ "items": {
117
+ "$ref": "#/$defs/DirectionArc"
118
+ }
119
+ },
120
+ {
121
+ "type": "null"
122
+ }
123
+ ]
124
+ },
125
+ "broadcastDelaySeconds": {
126
+ "description": "The source's own live-playback delay, seconds; absent or null when the vendor states none.",
127
+ "anyOf": [
128
+ {
129
+ "type": "number",
130
+ "minimum": 0
131
+ },
132
+ {
133
+ "type": "null"
134
+ }
135
+ ]
136
+ },
112
137
  "capabilities": {
113
138
  "$ref": "#/$defs/StationCapabilities"
114
139
  },
@@ -163,6 +188,19 @@
163
188
  "type": "null"
164
189
  }
165
190
  ]
191
+ },
192
+ "recentSummaries": {
193
+ "anyOf": [
194
+ {
195
+ "type": "array",
196
+ "items": {
197
+ "$ref": "#/$defs/RecentSummary"
198
+ }
199
+ },
200
+ {
201
+ "type": "null"
202
+ }
203
+ ]
166
204
  }
167
205
  },
168
206
  "required": [
@@ -251,6 +289,31 @@
251
289
  }
252
290
  ]
253
291
  },
292
+ "declaredFavorableDirections": {
293
+ "anyOf": [
294
+ {
295
+ "type": "array",
296
+ "items": {
297
+ "$ref": "#/$defs/DirectionArc"
298
+ }
299
+ },
300
+ {
301
+ "type": "null"
302
+ }
303
+ ]
304
+ },
305
+ "broadcastDelaySeconds": {
306
+ "description": "The source's own live-playback delay, seconds; absent or null when the vendor states none.",
307
+ "anyOf": [
308
+ {
309
+ "type": "number",
310
+ "minimum": 0
311
+ },
312
+ {
313
+ "type": "null"
314
+ }
315
+ ]
316
+ },
254
317
  "capabilities": {
255
318
  "$ref": "#/$defs/StationCapabilities"
256
319
  },
@@ -310,6 +373,24 @@
310
373
  }
311
374
  ]
312
375
  },
376
+ "DirectionArc": {
377
+ "type": "object",
378
+ "properties": {
379
+ "fromDeg": {
380
+ "type": "number",
381
+ "description": "Degrees FROM, clockwise from north."
382
+ },
383
+ "toDeg": {
384
+ "type": "number",
385
+ "description": "Degrees FROM; fromDeg > toDeg wraps through north, boundaries inclusive."
386
+ }
387
+ },
388
+ "required": [
389
+ "fromDeg",
390
+ "toDeg"
391
+ ],
392
+ "description": "One arc of favorable FROM bearings — core's DirectionArc shape on the wire."
393
+ },
313
394
  "StationCapabilities": {
314
395
  "type": "object",
315
396
  "properties": {
@@ -346,6 +427,17 @@
346
427
  "type": "null"
347
428
  }
348
429
  ]
430
+ },
431
+ "recentSummaries": {
432
+ "description": "The source maintains pre-digested rolling step summaries; absent or null reads as false.",
433
+ "anyOf": [
434
+ {
435
+ "type": "boolean"
436
+ },
437
+ {
438
+ "type": "null"
439
+ }
440
+ ]
349
441
  }
350
442
  },
351
443
  "required": [
@@ -683,6 +775,60 @@
683
775
  "type": "null"
684
776
  }
685
777
  ]
778
+ },
779
+ "windVectorAvgMps": {
780
+ "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'.",
781
+ "anyOf": [
782
+ {
783
+ "type": "number",
784
+ "minimum": 0
785
+ },
786
+ {
787
+ "type": "null"
788
+ }
789
+ ]
790
+ },
791
+ "temperatureMinC": {
792
+ "anyOf": [
793
+ {
794
+ "type": "number"
795
+ },
796
+ {
797
+ "type": "null"
798
+ }
799
+ ]
800
+ },
801
+ "temperatureMaxC": {
802
+ "anyOf": [
803
+ {
804
+ "type": "number"
805
+ },
806
+ {
807
+ "type": "null"
808
+ }
809
+ ]
810
+ },
811
+ "seaLevelPressureMinHpa": {
812
+ "anyOf": [
813
+ {
814
+ "type": "number",
815
+ "exclusiveMinimum": 0
816
+ },
817
+ {
818
+ "type": "null"
819
+ }
820
+ ]
821
+ },
822
+ "seaLevelPressureMaxHpa": {
823
+ "anyOf": [
824
+ {
825
+ "type": "number",
826
+ "exclusiveMinimum": 0
827
+ },
828
+ {
829
+ "type": "null"
830
+ }
831
+ ]
686
832
  }
687
833
  },
688
834
  "required": [
@@ -766,6 +912,33 @@
766
912
  "windMps",
767
913
  "windDirectionDeg"
768
914
  ]
915
+ },
916
+ "RecentSummary": {
917
+ "type": "object",
918
+ "properties": {
919
+ "windowMinutes": {
920
+ "type": "number",
921
+ "exclusiveMinimum": 0,
922
+ "description": "The rolling window this summarises."
923
+ },
924
+ "stepMinutes": {
925
+ "type": "number",
926
+ "exclusiveMinimum": 0,
927
+ "description": "Minutes each point covers."
928
+ },
929
+ "points": {
930
+ "type": "array",
931
+ "items": {
932
+ "$ref": "#/$defs/HistoryPoint"
933
+ },
934
+ "description": "Oldest first, one per filled step; a step the source left empty is ABSENT."
935
+ }
936
+ },
937
+ "required": [
938
+ "windowMinutes",
939
+ "stepMinutes",
940
+ "points"
941
+ ]
769
942
  }
770
943
  }
771
944
  }