@azohra/meteo.station 0.6.0 → 0.7.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/README.md +17 -17
- package/dist/connectivity.d.ts +2 -2
- package/dist/contract.d.ts +105 -105
- package/dist/derive.js +4 -4
- package/dist/elements/elements/AirExtremesElement.js +5 -18
- package/dist/elements/elements/AirMatrixElement.js +6 -31
- package/dist/elements/elements/ClimatologyDailyPatternElement.js +17 -12
- package/dist/elements/elements/ClimatologyRoseElement.js +5 -15
- package/dist/elements/elements/CompassFanElement.js +5 -64
- package/dist/elements/elements/CurrentConditionsElement.js +7 -26
- package/dist/elements/elements/DailyPatternElement.d.ts +0 -1
- package/dist/elements/elements/DailyPatternElement.js +6 -120
- package/dist/elements/elements/DialElement.js +3 -95
- package/dist/elements/elements/FavorableShareElement.js +6 -21
- package/dist/elements/elements/RecentSummariesElement.js +6 -23
- package/dist/elements/elements/SparklineElement.d.ts +0 -1
- package/dist/elements/elements/SparklineElement.js +4 -39
- package/dist/elements/elements/StationCardElement.js +4 -18
- package/dist/elements/elements/StationFeedElement.js +4 -2
- package/dist/elements/elements/StationStripElement.js +4 -18
- package/dist/elements/elements/StationTableElement.js +15 -51
- package/dist/elements/elements/TrendChartElement.js +21 -69
- package/dist/elements/elements/WindHistoryChartElement.js +23 -164
- package/dist/elements/elements/WindRoseElement.d.ts +0 -1
- package/dist/elements/elements/WindRoseElement.js +6 -70
- package/dist/elements/elements/atoms.d.ts +1 -1
- package/dist/elements/elements/atoms.js +11 -38
- package/dist/elements/index.js +3 -3
- package/dist/elements/lib/fragments.js +8 -37
- package/dist/elements/lib/h.js +1 -1
- package/dist/elements/lib/render.js +30 -0
- package/dist/geometry.js +2 -1
- package/dist/instruments.js +2 -2
- package/dist/react/components/AirExtremes.d.ts +1 -1
- package/dist/react/components/AirExtremes.js +5 -22
- package/dist/react/components/AirMatrix.js +10 -43
- package/dist/react/components/ClimatologyDailyPattern.d.ts +1 -1
- package/dist/react/components/ClimatologyDailyPattern.js +19 -13
- package/dist/react/components/ClimatologyRose.d.ts +1 -1
- package/dist/react/components/ClimatologyRose.js +11 -28
- package/dist/react/components/CompassFan.d.ts +1 -1
- package/dist/react/components/CompassFan.js +6 -73
- package/dist/react/components/CurrentConditions.d.ts +1 -1
- package/dist/react/components/CurrentConditions.js +11 -74
- package/dist/react/components/DailyPattern.d.ts +1 -3
- package/dist/react/components/DailyPattern.js +10 -149
- package/dist/react/components/Dial.d.ts +1 -1
- package/dist/react/components/Dial.js +5 -118
- package/dist/react/components/FavorableShare.d.ts +1 -1
- package/dist/react/components/FavorableShare.js +6 -27
- package/dist/react/components/FreshnessBadge.d.ts +1 -1
- package/dist/react/components/FreshnessBadge.js +5 -12
- package/dist/react/components/RecentSummaries.d.ts +1 -1
- package/dist/react/components/RecentSummaries.js +6 -44
- package/dist/react/components/SceneTree.js +38 -0
- package/dist/react/components/Sparkline.d.ts +1 -1
- package/dist/react/components/Sparkline.js +3 -39
- package/dist/react/components/StationCard.d.ts +2 -2
- package/dist/react/components/StationCard.js +5 -45
- package/dist/react/components/StationStrip.d.ts +1 -1
- package/dist/react/components/StationStrip.js +5 -60
- package/dist/react/components/StationTable.js +21 -75
- package/dist/react/components/TrendChart.js +8 -63
- package/dist/react/components/WindArrow.d.ts +1 -1
- package/dist/react/components/WindArrow.js +3 -15
- package/dist/react/components/WindHistoryChart.js +8 -182
- package/dist/react/components/WindRose.d.ts +1 -3
- package/dist/react/components/WindRose.js +6 -89
- package/dist/react/components/WindSampleStrip.js +8 -115
- package/dist/react/components/atoms.d.ts +5 -5
- package/dist/react/components/atoms.js +12 -48
- package/dist/react/hooks/useStationCurrent.js +3 -2
- package/dist/react/hooks/useStationFeed.js +3 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +5 -5
- package/dist/react/lib/cells.js +4 -24
- package/dist/scene/air-extremes.js +12 -27
- package/dist/scene/air-matrix.js +45 -58
- package/dist/scene/card.js +14 -40
- package/dist/scene/cells.d.ts +4 -0
- package/dist/scene/cells.js +51 -0
- package/dist/scene/chart.js +2 -1
- package/dist/scene/climatology-pattern.d.ts +1 -2
- package/dist/scene/climatology-pattern.js +10 -11
- package/dist/scene/climatology-rose.d.ts +1 -2
- package/dist/scene/climatology-rose.js +14 -33
- package/dist/scene/compass-fan.js +28 -100
- package/dist/scene/current.d.ts +2 -1
- package/dist/scene/current.js +29 -56
- package/dist/scene/daily-pattern.d.ts +1 -3
- package/dist/scene/daily-pattern.js +20 -27
- package/dist/scene/dial-parts.d.ts +1 -0
- package/dist/scene/dial-parts.js +70 -0
- package/dist/scene/dial.d.ts +1 -2
- package/dist/scene/dial.js +48 -136
- package/dist/scene/favorable-share.js +16 -33
- package/dist/scene/glyphs.js +20 -16
- package/dist/scene/index.d.ts +5 -3
- package/dist/scene/node.js +19 -0
- package/dist/scene/recent-summaries.js +26 -63
- package/dist/scene/rose.js +89 -117
- package/dist/scene/sample-strip.d.ts +1 -2
- package/dist/scene/sample-strip.js +35 -36
- package/dist/scene/sparkline.js +31 -40
- package/dist/scene/strip.js +18 -57
- package/dist/scene/table.js +47 -69
- package/dist/scene/trend.d.ts +1 -2
- package/dist/scene/trend.js +29 -55
- package/dist/scene/wind-history.d.ts +1 -2
- package/dist/scene/wind-history.js +41 -51
- package/dist/scene/wind-plot.js +70 -140
- package/dist/server/adapters/campbell.d.ts +7 -7
- package/dist/server/adapters/campbell.js +1 -1
- package/dist/server/adapters/ecowitt.d.ts +8 -8
- package/dist/server/adapters/tempest.d.ts +6 -6
- package/dist/server/adapters/windnerd-climatology.js +4 -3
- package/dist/server/adapters/windnerd-live.js +3 -2
- package/dist/server/adapters/windnerd.d.ts +8 -8
- package/dist/server/adapters/windnerd.js +1 -1
- package/dist/server/config.d.ts +48 -48
- package/dist/server/hologram.js +2 -1
- package/package.json +6 -11
- package/schema/README.md +1 -1
- package/schema/stationclimatology.schema.json +64 -61
- package/schema/stationcurrent.schema.json +68 -156
- package/schema/stationfeed.schema.json +71 -163
- package/schema/stationhistory.schema.json +37 -46
- package/schema/stationlive.schema.json +221 -306
|
@@ -15,13 +15,9 @@
|
|
|
15
15
|
"description": "The server clock at response time. Freshness is judged client-side against this anchor, so a wrong client clock cannot declare a live station stale."
|
|
16
16
|
},
|
|
17
17
|
"primaryStationId": {
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"type": "null"
|
|
24
|
-
}
|
|
18
|
+
"type": [
|
|
19
|
+
"string",
|
|
20
|
+
"null"
|
|
25
21
|
]
|
|
26
22
|
},
|
|
27
23
|
"stations": {
|
|
@@ -55,13 +51,9 @@
|
|
|
55
51
|
"type": "string"
|
|
56
52
|
},
|
|
57
53
|
"pageUrl": {
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "null"
|
|
64
|
-
}
|
|
54
|
+
"type": [
|
|
55
|
+
"string",
|
|
56
|
+
"null"
|
|
65
57
|
]
|
|
66
58
|
},
|
|
67
59
|
"latitude": {
|
|
@@ -100,13 +92,9 @@
|
|
|
100
92
|
]
|
|
101
93
|
},
|
|
102
94
|
"elevationM": {
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "null"
|
|
109
|
-
}
|
|
95
|
+
"type": [
|
|
96
|
+
"number",
|
|
97
|
+
"null"
|
|
110
98
|
]
|
|
111
99
|
},
|
|
112
100
|
"declaredFavorableDirections": {
|
|
@@ -235,13 +223,9 @@
|
|
|
235
223
|
"type": "string"
|
|
236
224
|
},
|
|
237
225
|
"pageUrl": {
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"type": "null"
|
|
244
|
-
}
|
|
226
|
+
"type": [
|
|
227
|
+
"string",
|
|
228
|
+
"null"
|
|
245
229
|
]
|
|
246
230
|
},
|
|
247
231
|
"latitude": {
|
|
@@ -280,13 +264,9 @@
|
|
|
280
264
|
]
|
|
281
265
|
},
|
|
282
266
|
"elevationM": {
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"type": "null"
|
|
289
|
-
}
|
|
267
|
+
"type": [
|
|
268
|
+
"number",
|
|
269
|
+
"null"
|
|
290
270
|
]
|
|
291
271
|
},
|
|
292
272
|
"declaredFavorableDirections": {
|
|
@@ -408,35 +388,23 @@
|
|
|
408
388
|
},
|
|
409
389
|
"live": {
|
|
410
390
|
"description": "The station has a live sample stream; absent or null reads as false.",
|
|
411
|
-
"
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
"type": "null"
|
|
417
|
-
}
|
|
391
|
+
"type": [
|
|
392
|
+
"boolean",
|
|
393
|
+
"null"
|
|
418
394
|
]
|
|
419
395
|
},
|
|
420
396
|
"battery": {
|
|
421
397
|
"description": "The station reports battery telemetry; absent or null reads as false.",
|
|
422
|
-
"
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"type": "null"
|
|
428
|
-
}
|
|
398
|
+
"type": [
|
|
399
|
+
"boolean",
|
|
400
|
+
"null"
|
|
429
401
|
]
|
|
430
402
|
},
|
|
431
403
|
"recentSummaries": {
|
|
432
404
|
"description": "The source maintains pre-digested rolling step summaries; absent or null reads as false.",
|
|
433
|
-
"
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"type": "null"
|
|
439
|
-
}
|
|
405
|
+
"type": [
|
|
406
|
+
"boolean",
|
|
407
|
+
"null"
|
|
440
408
|
]
|
|
441
409
|
}
|
|
442
410
|
},
|
|
@@ -498,23 +466,15 @@
|
|
|
498
466
|
"description": "Minimum m/s within the sampling window; null ≠ zero."
|
|
499
467
|
},
|
|
500
468
|
"temperatureC": {
|
|
501
|
-
"
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"type": "null"
|
|
507
|
-
}
|
|
469
|
+
"type": [
|
|
470
|
+
"number",
|
|
471
|
+
"null"
|
|
508
472
|
]
|
|
509
473
|
},
|
|
510
474
|
"windChillC": {
|
|
511
|
-
"
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
"type": "null"
|
|
517
|
-
}
|
|
475
|
+
"type": [
|
|
476
|
+
"number",
|
|
477
|
+
"null"
|
|
518
478
|
]
|
|
519
479
|
},
|
|
520
480
|
"conditions": {
|
|
@@ -543,13 +503,9 @@
|
|
|
543
503
|
"type": "object",
|
|
544
504
|
"properties": {
|
|
545
505
|
"dewPointC": {
|
|
546
|
-
"
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"type": "null"
|
|
552
|
-
}
|
|
506
|
+
"type": [
|
|
507
|
+
"number",
|
|
508
|
+
"null"
|
|
553
509
|
]
|
|
554
510
|
},
|
|
555
511
|
"lastLightningStrikeAt": {
|
|
@@ -564,53 +520,33 @@
|
|
|
564
520
|
]
|
|
565
521
|
},
|
|
566
522
|
"lastLightningStrikeDistanceKm": {
|
|
567
|
-
"
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"type": "null"
|
|
573
|
-
}
|
|
523
|
+
"type": [
|
|
524
|
+
"number",
|
|
525
|
+
"null"
|
|
574
526
|
]
|
|
575
527
|
},
|
|
576
528
|
"lightningStrikeCountLastHour": {
|
|
577
|
-
"
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
"type": "null"
|
|
583
|
-
}
|
|
529
|
+
"type": [
|
|
530
|
+
"number",
|
|
531
|
+
"null"
|
|
584
532
|
]
|
|
585
533
|
},
|
|
586
534
|
"precipitationMinutesToday": {
|
|
587
|
-
"
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
},
|
|
591
|
-
{
|
|
592
|
-
"type": "null"
|
|
593
|
-
}
|
|
535
|
+
"type": [
|
|
536
|
+
"number",
|
|
537
|
+
"null"
|
|
594
538
|
]
|
|
595
539
|
},
|
|
596
540
|
"precipitationRateMmPerHour": {
|
|
597
|
-
"
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"type": "null"
|
|
603
|
-
}
|
|
541
|
+
"type": [
|
|
542
|
+
"number",
|
|
543
|
+
"null"
|
|
604
544
|
]
|
|
605
545
|
},
|
|
606
546
|
"precipitationTodayMm": {
|
|
607
|
-
"
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"type": "null"
|
|
613
|
-
}
|
|
547
|
+
"type": [
|
|
548
|
+
"number",
|
|
549
|
+
"null"
|
|
614
550
|
]
|
|
615
551
|
},
|
|
616
552
|
"pressureTrend": {
|
|
@@ -630,33 +566,21 @@
|
|
|
630
566
|
]
|
|
631
567
|
},
|
|
632
568
|
"relativeHumidityPercent": {
|
|
633
|
-
"
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"type": "null"
|
|
639
|
-
}
|
|
569
|
+
"type": [
|
|
570
|
+
"number",
|
|
571
|
+
"null"
|
|
640
572
|
]
|
|
641
573
|
},
|
|
642
574
|
"seaLevelPressureHpa": {
|
|
643
|
-
"
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"type": "null"
|
|
649
|
-
}
|
|
575
|
+
"type": [
|
|
576
|
+
"number",
|
|
577
|
+
"null"
|
|
650
578
|
]
|
|
651
579
|
},
|
|
652
580
|
"solarRadiationWm2": {
|
|
653
|
-
"
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"type": "null"
|
|
659
|
-
}
|
|
581
|
+
"type": [
|
|
582
|
+
"number",
|
|
583
|
+
"null"
|
|
660
584
|
]
|
|
661
585
|
},
|
|
662
586
|
"uvIndex": {
|
|
@@ -756,13 +680,9 @@
|
|
|
756
680
|
"description": "Degrees FROM; null exactly when the period was calm (below 0.5 m/s)."
|
|
757
681
|
},
|
|
758
682
|
"temperatureC": {
|
|
759
|
-
"
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"type": "null"
|
|
765
|
-
}
|
|
683
|
+
"type": [
|
|
684
|
+
"number",
|
|
685
|
+
"null"
|
|
766
686
|
]
|
|
767
687
|
},
|
|
768
688
|
"seaLevelPressureHpa": {
|
|
@@ -789,23 +709,15 @@
|
|
|
789
709
|
]
|
|
790
710
|
},
|
|
791
711
|
"temperatureMinC": {
|
|
792
|
-
"
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
"type": "null"
|
|
798
|
-
}
|
|
712
|
+
"type": [
|
|
713
|
+
"number",
|
|
714
|
+
"null"
|
|
799
715
|
]
|
|
800
716
|
},
|
|
801
717
|
"temperatureMaxC": {
|
|
802
|
-
"
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
"type": "null"
|
|
808
|
-
}
|
|
718
|
+
"type": [
|
|
719
|
+
"number",
|
|
720
|
+
"null"
|
|
809
721
|
]
|
|
810
722
|
},
|
|
811
723
|
"seaLevelPressureMinHpa": {
|
|
@@ -844,15 +756,11 @@
|
|
|
844
756
|
"type": "object",
|
|
845
757
|
"properties": {
|
|
846
758
|
"batteryVoltage": {
|
|
847
|
-
"
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
"type": "null"
|
|
853
|
-
}
|
|
854
|
-
],
|
|
855
|
-
"description": "Station supply volts. null means 'not reported here', never a dead battery."
|
|
759
|
+
"description": "Station supply volts. null means 'not reported here', never a dead battery.",
|
|
760
|
+
"type": [
|
|
761
|
+
"number",
|
|
762
|
+
"null"
|
|
763
|
+
]
|
|
856
764
|
}
|
|
857
765
|
},
|
|
858
766
|
"required": [
|
|
@@ -3,32 +3,35 @@
|
|
|
3
3
|
"$id": "https://meteo.azohra.com/schema/stationhistory.schema.json",
|
|
4
4
|
"title": "StationHistory",
|
|
5
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
|
-
"
|
|
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
|
-
],
|
|
6
|
+
"$ref": "#/$defs/StationHistory",
|
|
31
7
|
"$defs": {
|
|
8
|
+
"StationHistory": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"const": 2
|
|
14
|
+
},
|
|
15
|
+
"servedAt": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "date-time"
|
|
18
|
+
},
|
|
19
|
+
"stationId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"history": {
|
|
24
|
+
"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.",
|
|
25
|
+
"$ref": "#/$defs/History"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"schemaVersion",
|
|
30
|
+
"servedAt",
|
|
31
|
+
"stationId",
|
|
32
|
+
"history"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
32
35
|
"HistoryPoint": {
|
|
33
36
|
"type": "object",
|
|
34
37
|
"properties": {
|
|
@@ -77,13 +80,9 @@
|
|
|
77
80
|
"description": "Degrees FROM; null exactly when the period was calm (below 0.5 m/s)."
|
|
78
81
|
},
|
|
79
82
|
"temperatureC": {
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"type": "null"
|
|
86
|
-
}
|
|
83
|
+
"type": [
|
|
84
|
+
"number",
|
|
85
|
+
"null"
|
|
87
86
|
]
|
|
88
87
|
},
|
|
89
88
|
"seaLevelPressureHpa": {
|
|
@@ -110,23 +109,15 @@
|
|
|
110
109
|
]
|
|
111
110
|
},
|
|
112
111
|
"temperatureMinC": {
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"type": "null"
|
|
119
|
-
}
|
|
112
|
+
"type": [
|
|
113
|
+
"number",
|
|
114
|
+
"null"
|
|
120
115
|
]
|
|
121
116
|
},
|
|
122
117
|
"temperatureMaxC": {
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"type": "null"
|
|
129
|
-
}
|
|
118
|
+
"type": [
|
|
119
|
+
"number",
|
|
120
|
+
"null"
|
|
130
121
|
]
|
|
131
122
|
},
|
|
132
123
|
"seaLevelPressureMinHpa": {
|