@azohra/meteo.station 0.7.0 → 0.7.1
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/air.d.ts +4 -7
- package/dist/air.js +1 -2
- package/dist/client/climatology.d.ts +4 -7
- package/dist/client/climatology.js +1 -2
- package/dist/client/history.d.ts +14 -17
- package/dist/client/history.js +1 -2
- package/dist/client/live.d.ts +9 -11
- package/dist/client/live.js +1 -2
- package/dist/client/poll.d.ts +9 -12
- package/dist/client/poll.js +1 -2
- package/dist/client/stores.d.ts +8 -10
- package/dist/client/stores.js +1 -2
- package/dist/client/ticker.d.ts +1 -4
- package/dist/client/ticker.js +1 -2
- package/dist/climatology.d.ts +13 -15
- package/dist/climatology.js +1 -2
- package/dist/connectivity.d.ts +7 -10
- package/dist/connectivity.js +1 -2
- package/dist/contract-climatology.d.ts +11 -14
- package/dist/contract-climatology.js +1 -2
- package/dist/contract.d.ts +45 -48
- package/dist/contract.js +1 -2
- package/dist/derive.d.ts +24 -26
- package/dist/derive.js +1 -2
- package/dist/display.d.ts +6 -9
- package/dist/display.js +1 -2
- package/dist/elements/elements/AirExtremesElement.d.ts +2 -5
- package/dist/elements/elements/AirExtremesElement.js +1 -2
- package/dist/elements/elements/AirMatrixElement.d.ts +2 -5
- package/dist/elements/elements/AirMatrixElement.js +1 -2
- package/dist/elements/elements/ClimatologyDailyPatternElement.d.ts +2 -5
- package/dist/elements/elements/ClimatologyDailyPatternElement.js +1 -2
- package/dist/elements/elements/ClimatologyRoseElement.d.ts +2 -5
- package/dist/elements/elements/ClimatologyRoseElement.js +1 -2
- package/dist/elements/elements/CompassFanElement.d.ts +2 -5
- package/dist/elements/elements/CompassFanElement.js +1 -2
- package/dist/elements/elements/CurrentConditionsElement.d.ts +2 -5
- package/dist/elements/elements/CurrentConditionsElement.js +1 -2
- package/dist/elements/elements/DailyPatternElement.d.ts +2 -5
- package/dist/elements/elements/DailyPatternElement.js +1 -2
- package/dist/elements/elements/DialElement.d.ts +2 -5
- package/dist/elements/elements/DialElement.js +1 -2
- package/dist/elements/elements/FavorableShareElement.d.ts +2 -5
- package/dist/elements/elements/FavorableShareElement.js +1 -2
- package/dist/elements/elements/FreshnessBadgeElement.d.ts +2 -5
- package/dist/elements/elements/FreshnessBadgeElement.js +1 -2
- package/dist/elements/elements/RecentSummariesElement.d.ts +2 -5
- package/dist/elements/elements/RecentSummariesElement.js +1 -2
- package/dist/elements/elements/SparklineElement.d.ts +2 -5
- package/dist/elements/elements/SparklineElement.js +1 -2
- package/dist/elements/elements/StationCardElement.d.ts +6 -8
- package/dist/elements/elements/StationCardElement.js +1 -2
- package/dist/elements/elements/StationFeedElement.d.ts +2 -5
- package/dist/elements/elements/StationFeedElement.js +1 -2
- package/dist/elements/elements/StationStripElement.d.ts +2 -5
- package/dist/elements/elements/StationStripElement.js +1 -2
- package/dist/elements/elements/StationTableElement.d.ts +3 -6
- package/dist/elements/elements/StationTableElement.js +1 -2
- package/dist/elements/elements/TrendChartElement.d.ts +2 -5
- package/dist/elements/elements/TrendChartElement.js +1 -2
- package/dist/elements/elements/WindArrowElement.d.ts +2 -5
- package/dist/elements/elements/WindArrowElement.js +1 -2
- package/dist/elements/elements/WindHistoryChartElement.d.ts +2 -5
- package/dist/elements/elements/WindHistoryChartElement.js +1 -2
- package/dist/elements/elements/WindRoseElement.d.ts +2 -5
- package/dist/elements/elements/WindRoseElement.js +1 -2
- package/dist/elements/elements/atoms.d.ts +9 -11
- package/dist/elements/elements/atoms.js +1 -2
- package/dist/elements/index.d.ts +3 -5
- package/dist/elements/index.js +1 -2
- package/dist/elements/lib/ambient.d.ts +2 -5
- package/dist/elements/lib/ambient.js +1 -2
- package/dist/elements/lib/attributes.js +1 -2
- package/dist/elements/lib/base.d.ts +3 -6
- package/dist/elements/lib/base.js +1 -2
- package/dist/elements/lib/context.js +1 -2
- package/dist/elements/lib/fragments.js +1 -2
- package/dist/elements/lib/h.js +1 -2
- package/dist/elements/lib/pinned-cursor.js +1 -2
- package/dist/elements/lib/render.js +1 -2
- package/dist/elements/register.js +1 -2
- package/dist/endpoints.d.ts +6 -9
- package/dist/endpoints.js +1 -2
- package/dist/fixtures.d.ts +7 -10
- package/dist/fixtures.js +1 -2
- package/dist/format.d.ts +11 -14
- package/dist/format.js +1 -2
- package/dist/geometry.d.ts +36 -38
- package/dist/geometry.js +1 -2
- package/dist/instruments.d.ts +37 -40
- package/dist/instruments.js +1 -2
- package/dist/merge-current.d.ts +4 -7
- package/dist/merge-current.js +1 -2
- package/dist/react/components/AirExtremes.d.ts +2 -5
- package/dist/react/components/AirExtremes.js +1 -2
- package/dist/react/components/AirMatrix.d.ts +2 -5
- package/dist/react/components/AirMatrix.js +1 -2
- package/dist/react/components/ClimatologyDailyPattern.d.ts +2 -5
- package/dist/react/components/ClimatologyDailyPattern.js +1 -2
- package/dist/react/components/ClimatologyRose.d.ts +2 -5
- package/dist/react/components/ClimatologyRose.js +1 -2
- package/dist/react/components/CompassFan.d.ts +2 -5
- package/dist/react/components/CompassFan.js +1 -2
- package/dist/react/components/CurrentConditions.d.ts +2 -5
- package/dist/react/components/CurrentConditions.js +1 -2
- package/dist/react/components/DailyPattern.d.ts +2 -5
- package/dist/react/components/DailyPattern.js +1 -2
- package/dist/react/components/Dial.d.ts +2 -5
- package/dist/react/components/Dial.js +1 -2
- package/dist/react/components/FavorableShare.d.ts +2 -5
- package/dist/react/components/FavorableShare.js +1 -2
- package/dist/react/components/FreshnessBadge.d.ts +2 -5
- package/dist/react/components/FreshnessBadge.js +1 -2
- package/dist/react/components/Readout.d.ts +2 -5
- package/dist/react/components/Readout.js +1 -2
- package/dist/react/components/RecentSummaries.d.ts +2 -5
- package/dist/react/components/RecentSummaries.js +1 -2
- package/dist/react/components/SceneTree.js +1 -2
- package/dist/react/components/Sparkline.d.ts +2 -5
- package/dist/react/components/Sparkline.js +1 -2
- package/dist/react/components/StationCard.d.ts +6 -8
- package/dist/react/components/StationCard.js +1 -2
- package/dist/react/components/StationFeedProvider.d.ts +3 -6
- package/dist/react/components/StationFeedProvider.js +1 -2
- package/dist/react/components/StationStrip.d.ts +2 -5
- package/dist/react/components/StationStrip.js +1 -2
- package/dist/react/components/StationTable.d.ts +3 -6
- package/dist/react/components/StationTable.js +1 -2
- package/dist/react/components/TrendChart.d.ts +2 -5
- package/dist/react/components/TrendChart.js +1 -2
- package/dist/react/components/WindArrow.d.ts +2 -5
- package/dist/react/components/WindArrow.js +1 -2
- package/dist/react/components/WindHistoryChart.d.ts +2 -5
- package/dist/react/components/WindHistoryChart.js +1 -2
- package/dist/react/components/WindRose.d.ts +2 -5
- package/dist/react/components/WindRose.js +1 -2
- package/dist/react/components/WindSampleStrip.d.ts +2 -5
- package/dist/react/components/WindSampleStrip.js +1 -2
- package/dist/react/components/atoms.d.ts +9 -11
- package/dist/react/components/atoms.js +1 -2
- package/dist/react/hooks/useFreshness.d.ts +1 -4
- package/dist/react/hooks/useFreshness.js +1 -2
- package/dist/react/hooks/useMeasuredChartWidth.d.ts +2 -5
- package/dist/react/hooks/useMeasuredChartWidth.js +1 -2
- package/dist/react/hooks/usePolledJson.js +1 -2
- package/dist/react/hooks/useStation.d.ts +2 -5
- package/dist/react/hooks/useStation.js +1 -2
- package/dist/react/hooks/useStationClimatology.d.ts +2 -5
- package/dist/react/hooks/useStationClimatology.js +1 -2
- package/dist/react/hooks/useStationCurrent.d.ts +2 -5
- package/dist/react/hooks/useStationCurrent.js +1 -2
- package/dist/react/hooks/useStationFeed.d.ts +2 -5
- package/dist/react/hooks/useStationFeed.js +1 -2
- package/dist/react/hooks/useStationLive.d.ts +2 -5
- package/dist/react/hooks/useStationLive.js +1 -2
- package/dist/react/lib/cells.js +1 -2
- package/dist/react/lib/use-pinned-cursor.js +1 -2
- package/dist/samples.d.ts +8 -11
- package/dist/samples.js +1 -2
- package/dist/scene/air-extremes.js +1 -2
- package/dist/scene/air-matrix.js +1 -2
- package/dist/scene/atoms.js +1 -2
- package/dist/scene/card.js +1 -2
- package/dist/scene/cells.js +1 -2
- package/dist/scene/chart.d.ts +2 -5
- package/dist/scene/chart.js +1 -2
- package/dist/scene/climatology-pattern.js +1 -2
- package/dist/scene/climatology-rose.js +1 -2
- package/dist/scene/compass-fan.js +1 -2
- package/dist/scene/current.js +1 -2
- package/dist/scene/daily-pattern.js +1 -2
- package/dist/scene/dial-parts.js +1 -2
- package/dist/scene/dial.js +1 -2
- package/dist/scene/favorable-share.js +1 -2
- package/dist/scene/glyphs.js +1 -2
- package/dist/scene/node.js +1 -2
- package/dist/scene/recent-summaries.js +1 -2
- package/dist/scene/rose.js +1 -2
- package/dist/scene/sample-strip.js +1 -2
- package/dist/scene/sparkline.js +1 -2
- package/dist/scene/strip.js +1 -2
- package/dist/scene/table.js +1 -2
- package/dist/scene/trend.js +1 -2
- package/dist/scene/wind-history.js +1 -2
- package/dist/scene/wind-plot.js +1 -2
- package/dist/server/adapter.d.ts +7 -10
- package/dist/server/adapter.js +1 -2
- package/dist/server/adapters/campbell.d.ts +11 -13
- package/dist/server/adapters/campbell.js +1 -2
- package/dist/server/adapters/ecowitt.d.ts +4 -7
- package/dist/server/adapters/ecowitt.js +1 -2
- package/dist/server/adapters/tempest.d.ts +4 -7
- package/dist/server/adapters/tempest.js +1 -2
- package/dist/server/adapters/windnerd-climatology.d.ts +5 -8
- package/dist/server/adapters/windnerd-climatology.js +1 -2
- package/dist/server/adapters/windnerd-live.d.ts +2 -5
- package/dist/server/adapters/windnerd-live.js +1 -2
- package/dist/server/adapters/windnerd.d.ts +22 -25
- package/dist/server/adapters/windnerd.js +1 -2
- package/dist/server/config.d.ts +18 -20
- package/dist/server/config.js +1 -2
- package/dist/server/environment.d.ts +20 -22
- package/dist/server/environment.js +1 -2
- package/dist/server/feed.d.ts +19 -21
- package/dist/server/feed.js +1 -2
- package/dist/server/handler.d.ts +4 -7
- package/dist/server/handler.js +1 -2
- package/dist/server/hologram.d.ts +9 -12
- package/dist/server/hologram.js +1 -2
- package/dist/server/live.d.ts +2 -5
- package/dist/server/live.js +1 -2
- package/dist/sse.js +1 -2
- package/dist/strings.d.ts +8 -11
- package/dist/strings.js +1 -2
- package/dist/windnerd.d.ts +4 -7
- package/dist/windnerd.js +1 -2
- package/package.json +9 -9
package/dist/contract.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { DirectionArc } from "@azohra/meteo.core";
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const airConditionsSchema: z.ZodObject<{
|
|
3
|
+
export declare const STATION_SCHEMA_VERSION = 2;
|
|
4
|
+
export declare const UNAVAILABLE_REASONS: readonly ["upstream_error", "timeout", "rate_limited", "contract_break", "not_configured"];
|
|
5
|
+
export type UnavailableReason = (typeof UNAVAILABLE_REASONS)[number];
|
|
6
|
+
export declare const airConditionsSchema: z.ZodObject<{
|
|
8
7
|
dewPointC: z.ZodNullable<z.ZodNumber>;
|
|
9
8
|
lastLightningStrikeAt: z.ZodNullable<z.ZodString>;
|
|
10
9
|
lastLightningStrikeDistanceKm: z.ZodNullable<z.ZodNumber>;
|
|
@@ -23,12 +22,12 @@ declare const airConditionsSchema: z.ZodObject<{
|
|
|
23
22
|
solarRadiationWm2: z.ZodNullable<z.ZodNumber>;
|
|
24
23
|
uvIndex: z.ZodNullable<z.ZodNumber>;
|
|
25
24
|
}, z.core.$strip>;
|
|
26
|
-
type AirConditions = z.infer<typeof airConditionsSchema>;
|
|
27
|
-
declare const telemetrySchema: z.ZodObject<{
|
|
25
|
+
export type AirConditions = z.infer<typeof airConditionsSchema>;
|
|
26
|
+
export declare const telemetrySchema: z.ZodObject<{
|
|
28
27
|
batteryVoltage: z.ZodNullable<z.ZodNumber>;
|
|
29
28
|
}, z.core.$strip>;
|
|
30
|
-
type StationTelemetry = z.infer<typeof telemetrySchema>;
|
|
31
|
-
declare const readingSchema: z.ZodObject<{
|
|
29
|
+
export type StationTelemetry = z.infer<typeof telemetrySchema>;
|
|
30
|
+
export declare const readingSchema: z.ZodObject<{
|
|
32
31
|
observedAt: z.ZodString;
|
|
33
32
|
windAvgMps: z.ZodNumber;
|
|
34
33
|
windDirectionDeg: z.ZodNullable<z.ZodNumber>;
|
|
@@ -56,8 +55,8 @@ declare const readingSchema: z.ZodObject<{
|
|
|
56
55
|
uvIndex: z.ZodNullable<z.ZodNumber>;
|
|
57
56
|
}, z.core.$strip>>;
|
|
58
57
|
}, z.core.$strip>;
|
|
59
|
-
type Reading = z.infer<typeof readingSchema>;
|
|
60
|
-
declare const historyPointSchema: z.ZodObject<{
|
|
58
|
+
export type Reading = z.infer<typeof readingSchema>;
|
|
59
|
+
export declare const historyPointSchema: z.ZodObject<{
|
|
61
60
|
observedAt: z.ZodString;
|
|
62
61
|
windAvgMps: z.ZodNumber;
|
|
63
62
|
windGustMps: z.ZodNullable<z.ZodNumber>;
|
|
@@ -71,8 +70,8 @@ declare const historyPointSchema: z.ZodObject<{
|
|
|
71
70
|
seaLevelPressureMinHpa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
71
|
seaLevelPressureMaxHpa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
73
72
|
}, z.core.$strip>;
|
|
74
|
-
type HistoryPoint = z.infer<typeof historyPointSchema>;
|
|
75
|
-
declare const historySchema: z.ZodObject<{
|
|
73
|
+
export type HistoryPoint = z.infer<typeof historyPointSchema>;
|
|
74
|
+
export declare const historySchema: z.ZodObject<{
|
|
76
75
|
periodMinutes: z.ZodNumber;
|
|
77
76
|
points: z.ZodArray<z.ZodObject<{
|
|
78
77
|
observedAt: z.ZodString;
|
|
@@ -89,8 +88,8 @@ declare const historySchema: z.ZodObject<{
|
|
|
89
88
|
seaLevelPressureMaxHpa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
89
|
}, z.core.$strip>>;
|
|
91
90
|
}, z.core.$strip>;
|
|
92
|
-
type History = z.infer<typeof historySchema>;
|
|
93
|
-
declare const recentSummarySchema: z.ZodObject<{
|
|
91
|
+
export type History = z.infer<typeof historySchema>;
|
|
92
|
+
export declare const recentSummarySchema: z.ZodObject<{
|
|
94
93
|
windowMinutes: z.ZodNumber;
|
|
95
94
|
stepMinutes: z.ZodNumber;
|
|
96
95
|
points: z.ZodArray<z.ZodObject<{
|
|
@@ -108,14 +107,14 @@ declare const recentSummarySchema: z.ZodObject<{
|
|
|
108
107
|
seaLevelPressureMaxHpa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
108
|
}, z.core.$strip>>;
|
|
110
109
|
}, z.core.$strip>;
|
|
111
|
-
type RecentSummary = z.infer<typeof recentSummarySchema>;
|
|
112
|
-
declare const liveSampleSchema: z.ZodObject<{
|
|
110
|
+
export type RecentSummary = z.infer<typeof recentSummarySchema>;
|
|
111
|
+
export declare const liveSampleSchema: z.ZodObject<{
|
|
113
112
|
observedAt: z.ZodString;
|
|
114
113
|
windMps: z.ZodNumber;
|
|
115
114
|
windDirectionDeg: z.ZodNullable<z.ZodNumber>;
|
|
116
115
|
}, z.core.$strip>;
|
|
117
|
-
type LiveSample = z.infer<typeof liveSampleSchema>;
|
|
118
|
-
declare const liveSamplesSchema: z.ZodObject<{
|
|
116
|
+
export type LiveSample = z.infer<typeof liveSampleSchema>;
|
|
117
|
+
export declare const liveSamplesSchema: z.ZodObject<{
|
|
119
118
|
intervalSeconds: z.ZodNumber;
|
|
120
119
|
points: z.ZodArray<z.ZodObject<{
|
|
121
120
|
observedAt: z.ZodString;
|
|
@@ -123,8 +122,8 @@ declare const liveSamplesSchema: z.ZodObject<{
|
|
|
123
122
|
windDirectionDeg: z.ZodNullable<z.ZodNumber>;
|
|
124
123
|
}, z.core.$strip>>;
|
|
125
124
|
}, z.core.$strip>;
|
|
126
|
-
type LiveSamples = z.infer<typeof liveSamplesSchema>;
|
|
127
|
-
declare const capabilitiesSchema: z.ZodObject<{
|
|
125
|
+
export type LiveSamples = z.infer<typeof liveSamplesSchema>;
|
|
126
|
+
export declare const capabilitiesSchema: z.ZodObject<{
|
|
128
127
|
gustLull: z.ZodBoolean;
|
|
129
128
|
temperature: z.ZodBoolean;
|
|
130
129
|
conditions: z.ZodBoolean;
|
|
@@ -133,12 +132,12 @@ declare const capabilitiesSchema: z.ZodObject<{
|
|
|
133
132
|
battery: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
134
133
|
recentSummaries: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
135
134
|
}, z.core.$strip>;
|
|
136
|
-
type StationCapabilities = z.infer<typeof capabilitiesSchema>;
|
|
137
|
-
declare const directionArcSchema: z.ZodObject<{
|
|
135
|
+
export type StationCapabilities = z.infer<typeof capabilitiesSchema>;
|
|
136
|
+
export declare const directionArcSchema: z.ZodObject<{
|
|
138
137
|
fromDeg: z.ZodNumber;
|
|
139
138
|
toDeg: z.ZodNumber;
|
|
140
139
|
}, z.core.$strip>;
|
|
141
|
-
declare const stationMetaSchema: z.ZodObject<{
|
|
140
|
+
export declare const stationMetaSchema: z.ZodObject<{
|
|
142
141
|
id: z.ZodString;
|
|
143
142
|
name: z.ZodString;
|
|
144
143
|
sourceLabel: z.ZodString;
|
|
@@ -164,8 +163,8 @@ declare const stationMetaSchema: z.ZodObject<{
|
|
|
164
163
|
samplingWindowSeconds: z.ZodNullable<z.ZodNumber>;
|
|
165
164
|
recommendedPollSeconds: z.ZodNumber;
|
|
166
165
|
}, z.core.$strip>;
|
|
167
|
-
type StationMeta = z.infer<typeof stationMetaSchema>;
|
|
168
|
-
declare const stationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
166
|
+
export type StationMeta = z.infer<typeof stationMetaSchema>;
|
|
167
|
+
export declare const stationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
169
168
|
id: z.ZodString;
|
|
170
169
|
name: z.ZodString;
|
|
171
170
|
sourceLabel: z.ZodString;
|
|
@@ -301,8 +300,8 @@ declare const stationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
301
300
|
reading: z.ZodNull;
|
|
302
301
|
history: z.ZodNull;
|
|
303
302
|
}, z.core.$strip>], "status">;
|
|
304
|
-
type Station = z.infer<typeof stationSchema>;
|
|
305
|
-
declare const stationFeedSchema: z.ZodObject<{
|
|
303
|
+
export type Station = z.infer<typeof stationSchema>;
|
|
304
|
+
export declare const stationFeedSchema: z.ZodObject<{
|
|
306
305
|
schemaVersion: z.ZodLiteral<2>;
|
|
307
306
|
servedAt: z.ZodString;
|
|
308
307
|
primaryStationId: z.ZodNullable<z.ZodString>;
|
|
@@ -443,8 +442,8 @@ declare const stationFeedSchema: z.ZodObject<{
|
|
|
443
442
|
history: z.ZodNull;
|
|
444
443
|
}, z.core.$strip>], "status">>;
|
|
445
444
|
}, z.core.$strip>;
|
|
446
|
-
type StationFeed = z.infer<typeof stationFeedSchema>;
|
|
447
|
-
declare const stationCurrentSchema: z.ZodObject<{
|
|
445
|
+
export type StationFeed = z.infer<typeof stationFeedSchema>;
|
|
446
|
+
export declare const stationCurrentSchema: z.ZodObject<{
|
|
448
447
|
schemaVersion: z.ZodLiteral<2>;
|
|
449
448
|
servedAt: z.ZodString;
|
|
450
449
|
station: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -584,8 +583,8 @@ declare const stationCurrentSchema: z.ZodObject<{
|
|
|
584
583
|
history: z.ZodNull;
|
|
585
584
|
}, z.core.$strip>], "status">;
|
|
586
585
|
}, z.core.$strip>;
|
|
587
|
-
type StationCurrent = z.infer<typeof stationCurrentSchema>;
|
|
588
|
-
declare const stationHistorySchema: z.ZodObject<{
|
|
586
|
+
export type StationCurrent = z.infer<typeof stationCurrentSchema>;
|
|
587
|
+
export declare const stationHistorySchema: z.ZodObject<{
|
|
589
588
|
schemaVersion: z.ZodLiteral<2>;
|
|
590
589
|
servedAt: z.ZodString;
|
|
591
590
|
stationId: z.ZodString;
|
|
@@ -607,10 +606,10 @@ declare const stationHistorySchema: z.ZodObject<{
|
|
|
607
606
|
}, z.core.$strip>>;
|
|
608
607
|
}, z.core.$strip>;
|
|
609
608
|
}, z.core.$strip>;
|
|
610
|
-
type StationHistory = z.infer<typeof stationHistorySchema>;
|
|
611
|
-
declare function parseStationHistory(value: unknown): StationHistory | null;
|
|
612
|
-
declare function parseStationHistoryJson(text: string): StationHistory | null;
|
|
613
|
-
declare const stationLiveFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
609
|
+
export type StationHistory = z.infer<typeof stationHistorySchema>;
|
|
610
|
+
export declare function parseStationHistory(value: unknown): StationHistory | null;
|
|
611
|
+
export declare function parseStationHistoryJson(text: string): StationHistory | null;
|
|
612
|
+
export declare const stationLiveFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
614
613
|
type: z.ZodLiteral<"init">;
|
|
615
614
|
schemaVersion: z.ZodLiteral<2>;
|
|
616
615
|
servedAt: z.ZodString;
|
|
@@ -832,19 +831,17 @@ declare const stationLiveFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
832
831
|
upstream_error: "upstream_error";
|
|
833
832
|
}>;
|
|
834
833
|
}, z.core.$strip>], "type">;
|
|
835
|
-
type StationLiveFrame = z.infer<typeof stationLiveFrameSchema>;
|
|
836
|
-
declare function parseStationFeed(value: unknown): StationFeed | null;
|
|
837
|
-
declare function parseStationFeedJson(text: string): StationFeed | null;
|
|
838
|
-
declare function parseStationCurrent(value: unknown): StationCurrent | null;
|
|
839
|
-
declare function parseStationCurrentJson(text: string): StationCurrent | null;
|
|
840
|
-
declare function parseStationLiveFrame(value: unknown): StationLiveFrame | null;
|
|
841
|
-
declare function parseStationLiveFrameJson(text: string): StationLiveFrame | null;
|
|
842
|
-
declare function emptyConditions(overrides?: Partial<AirConditions>): AirConditions;
|
|
843
|
-
declare function unavailableStation(meta: StationMeta, reason: UnavailableReason): Station;
|
|
834
|
+
export type StationLiveFrame = z.infer<typeof stationLiveFrameSchema>;
|
|
835
|
+
export declare function parseStationFeed(value: unknown): StationFeed | null;
|
|
836
|
+
export declare function parseStationFeedJson(text: string): StationFeed | null;
|
|
837
|
+
export declare function parseStationCurrent(value: unknown): StationCurrent | null;
|
|
838
|
+
export declare function parseStationCurrentJson(text: string): StationCurrent | null;
|
|
839
|
+
export declare function parseStationLiveFrame(value: unknown): StationLiveFrame | null;
|
|
840
|
+
export declare function parseStationLiveFrameJson(text: string): StationLiveFrame | null;
|
|
841
|
+
export declare function emptyConditions(overrides?: Partial<AirConditions>): AirConditions;
|
|
842
|
+
export declare function unavailableStation(meta: StationMeta, reason: UnavailableReason): Station;
|
|
844
843
|
/** The source's declared favorable sectors, or null when it declares nothing
|
|
845
844
|
* knowable. Data, not judgment: no component reads the meta field itself —
|
|
846
845
|
* a consumer opts in, e.g.
|
|
847
846
|
* `favorableDirections={declaredFavorableDirections(station) ?? ownArcs}`. */
|
|
848
|
-
declare function declaredFavorableDirections(station: StationMeta): DirectionArc[] | null;
|
|
849
|
-
//#endregion
|
|
850
|
-
export { AirConditions, History, HistoryPoint, LiveSample, LiveSamples, Reading, RecentSummary, STATION_SCHEMA_VERSION, Station, StationCapabilities, StationCurrent, StationFeed, StationHistory, StationLiveFrame, StationMeta, StationTelemetry, UNAVAILABLE_REASONS, UnavailableReason, airConditionsSchema, capabilitiesSchema, declaredFavorableDirections, directionArcSchema, emptyConditions, historyPointSchema, historySchema, liveSampleSchema, liveSamplesSchema, parseStationCurrent, parseStationCurrentJson, parseStationFeed, parseStationFeedJson, parseStationHistory, parseStationHistoryJson, parseStationLiveFrame, parseStationLiveFrameJson, readingSchema, recentSummarySchema, stationCurrentSchema, stationFeedSchema, stationHistorySchema, stationLiveFrameSchema, stationMetaSchema, stationSchema, telemetrySchema, unavailableStation };
|
|
847
|
+
export declare function declaredFavorableDirections(station: StationMeta): DirectionArc[] | null;
|
package/dist/contract.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { UPSTREAM_FAILURE_REASONS } from "@azohra/meteo.core";
|
|
3
|
-
|
|
3
|
+
// src/contract.ts
|
|
4
4
|
const STATION_SCHEMA_VERSION = 2;
|
|
5
5
|
const UNAVAILABLE_REASONS = [...UPSTREAM_FAILURE_REASONS, "not_configured"];
|
|
6
6
|
const isoTime = z.string().refine((value) => Number.isFinite(Date.parse(value)), { message: "not an ISO timestamp" }).meta({ format: "date-time" });
|
|
@@ -241,5 +241,4 @@ function unavailableStation(meta, reason) {
|
|
|
241
241
|
function declaredFavorableDirections(station) {
|
|
242
242
|
return station.declaredFavorableDirections ?? null;
|
|
243
243
|
}
|
|
244
|
-
//#endregion
|
|
245
244
|
export { STATION_SCHEMA_VERSION, UNAVAILABLE_REASONS, airConditionsSchema, capabilitiesSchema, declaredFavorableDirections, directionArcSchema, emptyConditions, historyPointSchema, historySchema, liveSampleSchema, liveSamplesSchema, parseStationCurrent, parseStationCurrentJson, parseStationFeed, parseStationFeedJson, parseStationHistory, parseStationHistoryJson, parseStationLiveFrame, parseStationLiveFrameJson, readingSchema, recentSummarySchema, stationCurrentSchema, stationFeedSchema, stationHistorySchema, stationLiveFrameSchema, stationMetaSchema, stationSchema, telemetrySchema, unavailableStation };
|
package/dist/derive.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { History, StationMeta } from "./contract.js";
|
|
2
2
|
import { normalizeDegrees } from "@azohra/meteo.core";
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare function
|
|
9
|
-
|
|
10
|
-
type SpeedThresholds = {
|
|
3
|
+
export declare const CALM_THRESHOLD_MPS = 0.5;
|
|
4
|
+
export declare function isCalm(speedMps: number): boolean;
|
|
5
|
+
export declare const SPEED_UNITS: readonly ["kmh", "knots", "mph", "mps"];
|
|
6
|
+
export type SpeedUnit = (typeof SPEED_UNITS)[number];
|
|
7
|
+
export declare function speedFromMps(mps: number, unit: SpeedUnit): number;
|
|
8
|
+
export declare function speedToMps(value: number, unit: SpeedUnit): number;
|
|
9
|
+
export type SpeedThresholds = {
|
|
11
10
|
unit: SpeedUnit;
|
|
12
11
|
values: readonly number[];
|
|
13
12
|
};
|
|
14
|
-
declare function thresholdsToMps(thresholds: SpeedThresholds): number[];
|
|
15
|
-
declare function speedUnitLabel(unit: SpeedUnit): string;
|
|
16
|
-
declare const COMPASS_POINTS: readonly ["N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"];
|
|
17
|
-
type CompassPoint = (typeof COMPASS_POINTS)[number];
|
|
18
|
-
declare function compassDirection(bearingDeg: number): CompassPoint;
|
|
19
|
-
type PeriodSummary = {
|
|
13
|
+
export declare function thresholdsToMps(thresholds: SpeedThresholds): number[];
|
|
14
|
+
export declare function speedUnitLabel(unit: SpeedUnit): string;
|
|
15
|
+
export declare const COMPASS_POINTS: readonly ["N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"];
|
|
16
|
+
export type CompassPoint = (typeof COMPASS_POINTS)[number];
|
|
17
|
+
export declare function compassDirection(bearingDeg: number): CompassPoint;
|
|
18
|
+
export type PeriodSummary = {
|
|
20
19
|
windAvgMps: number;
|
|
21
20
|
peakGustMps: number | null;
|
|
22
21
|
peakGustAt: string | null;
|
|
@@ -28,20 +27,20 @@ type PeriodSummary = {
|
|
|
28
27
|
temperatureLowAt: string | null;
|
|
29
28
|
windRunKm: number;
|
|
30
29
|
};
|
|
31
|
-
declare function periodSummary(history: History): PeriodSummary | null;
|
|
32
|
-
declare function seaLevelPressureHpa(stationPressureHpa: number, elevationM: number, temperatureC?: number | null): number;
|
|
33
|
-
type PressureTendency = "falling" | "rising" | "steady";
|
|
30
|
+
export declare function periodSummary(history: History): PeriodSummary | null;
|
|
31
|
+
export declare function seaLevelPressureHpa(stationPressureHpa: number, elevationM: number, temperatureC?: number | null): number;
|
|
32
|
+
export type PressureTendency = "falling" | "rising" | "steady";
|
|
34
33
|
/** The signed sea-level pressure change over the trailing window, hPa —
|
|
35
34
|
* the number behind the tendency word. The reference is the carried point
|
|
36
35
|
* nearest the window's start, and a record covering under 60% of the
|
|
37
36
|
* window returns null rather than a delta over a shorter span. */
|
|
38
|
-
declare function pressureDeltaHpa(points: ReadonlyArray<{
|
|
37
|
+
export declare function pressureDeltaHpa(points: ReadonlyArray<{
|
|
39
38
|
observedAt: string;
|
|
40
39
|
seaLevelPressureHpa?: number | null;
|
|
41
40
|
}>, { windowHours }?: {
|
|
42
41
|
windowHours?: number;
|
|
43
42
|
}): number | null;
|
|
44
|
-
declare function pressureTendency(points: ReadonlyArray<{
|
|
43
|
+
export declare function pressureTendency(points: ReadonlyArray<{
|
|
45
44
|
observedAt: string;
|
|
46
45
|
seaLevelPressureHpa?: number | null;
|
|
47
46
|
}>, { windowHours, thresholdHpa }?: {
|
|
@@ -52,7 +51,7 @@ declare function pressureTendency(points: ReadonlyArray<{
|
|
|
52
51
|
* sunset to the latest sunrise, from real astronomy. Null without
|
|
53
52
|
* coordinates (never a guessed night), under a polar sky, or when no
|
|
54
53
|
* carried temperature falls inside the window. */
|
|
55
|
-
declare function lastNightLowC(points: ReadonlyArray<{
|
|
54
|
+
export declare function lastNightLowC(points: ReadonlyArray<{
|
|
56
55
|
observedAt: string;
|
|
57
56
|
temperatureC?: number | null;
|
|
58
57
|
}>, latitude: number | null, longitude: number | null, nowMs: number): {
|
|
@@ -60,17 +59,16 @@ declare function lastNightLowC(points: ReadonlyArray<{
|
|
|
60
59
|
fromMs: number;
|
|
61
60
|
toMs: number;
|
|
62
61
|
} | null;
|
|
63
|
-
type FreshnessStatus = "live" | "aging" | "stale";
|
|
64
|
-
type FreshnessThresholds = {
|
|
62
|
+
export type FreshnessStatus = "live" | "aging" | "stale";
|
|
63
|
+
export type FreshnessThresholds = {
|
|
65
64
|
currentForMs: number;
|
|
66
65
|
staleAfterMs: number;
|
|
67
66
|
};
|
|
68
|
-
declare function stationFreshnessThresholds(meta: Pick<StationMeta, "recommendedPollSeconds">): FreshnessThresholds;
|
|
69
|
-
declare function freshness(input: {
|
|
67
|
+
export declare function stationFreshnessThresholds(meta: Pick<StationMeta, "recommendedPollSeconds">): FreshnessThresholds;
|
|
68
|
+
export declare function freshness(input: {
|
|
70
69
|
observedAt: string;
|
|
71
70
|
servedAt: string;
|
|
72
71
|
receivedAtMs: number;
|
|
73
72
|
nowMs: number;
|
|
74
73
|
}, thresholds?: FreshnessThresholds): FreshnessStatus;
|
|
75
|
-
|
|
76
|
-
export { CALM_THRESHOLD_MPS, COMPASS_POINTS, CompassPoint, FreshnessStatus, FreshnessThresholds, PeriodSummary, PressureTendency, SPEED_UNITS, SpeedThresholds, SpeedUnit, compassDirection, freshness, isCalm, lastNightLowC, normalizeDegrees, periodSummary, pressureDeltaHpa, pressureTendency, seaLevelPressureHpa, speedFromMps, speedToMps, speedUnitLabel, stationFreshnessThresholds, thresholdsToMps };
|
|
74
|
+
export { normalizeDegrees };
|
package/dist/derive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KMH_PER_MPS, degreesToRadians, normalizeDegrees, solarEventsForDate } from "@azohra/meteo.core";
|
|
2
|
-
|
|
2
|
+
// src/derive.ts
|
|
3
3
|
const CALM_THRESHOLD_MPS = .5;
|
|
4
4
|
function isCalm(speedMps) {
|
|
5
5
|
return speedMps < CALM_THRESHOLD_MPS;
|
|
@@ -170,5 +170,4 @@ function freshness(input, thresholds = DEFAULT_FRESHNESS_THRESHOLDS) {
|
|
|
170
170
|
if (ageMs <= thresholds.staleAfterMs) return "aging";
|
|
171
171
|
return "stale";
|
|
172
172
|
}
|
|
173
|
-
//#endregion
|
|
174
173
|
export { CALM_THRESHOLD_MPS, COMPASS_POINTS, DEFAULT_FRESHNESS_THRESHOLDS, KMH_PER_MPS, SPEED_UNITS, anchoredAgeMs, compassDirection, freshness, isCalm, lastNightLowC, normalizeDegrees, periodSummary, pressureDeltaHpa, pressureTendency, radians, seaLevelPressureHpa, speedFromMps, speedToMps, speedUnitLabel, stationFreshnessThresholds, thresholdsToMps };
|
package/dist/display.d.ts
CHANGED
|
@@ -2,22 +2,21 @@ import { Station, StationFeed } from "./contract.js";
|
|
|
2
2
|
import { SpeedThresholds, SpeedUnit } from "./derive.js";
|
|
3
3
|
import { FormatTime, StationStringOverrides, StationStrings } from "./strings.js";
|
|
4
4
|
import { FavorableDirection } from "./instruments.js";
|
|
5
|
-
|
|
6
|
-
type DisplayDefaults = {
|
|
5
|
+
export type DisplayDefaults = {
|
|
7
6
|
strings?: StationStringOverrides | undefined;
|
|
8
7
|
unit?: SpeedUnit | undefined;
|
|
9
8
|
formatTime?: FormatTime | undefined;
|
|
10
9
|
thresholds?: SpeedThresholds | undefined;
|
|
11
10
|
favorableDirections?: FavorableDirection[] | undefined;
|
|
12
11
|
};
|
|
13
|
-
type DisplayProps = {
|
|
12
|
+
export type DisplayProps = {
|
|
14
13
|
strings?: StationStringOverrides | undefined;
|
|
15
14
|
unit?: SpeedUnit | undefined;
|
|
16
15
|
formatTime?: FormatTime | undefined;
|
|
17
16
|
thresholds?: SpeedThresholds | null | undefined;
|
|
18
17
|
favorableDirections?: FavorableDirection[] | null | undefined;
|
|
19
18
|
};
|
|
20
|
-
type ResolvedDisplay = {
|
|
19
|
+
export type ResolvedDisplay = {
|
|
21
20
|
strings: StationStringOverrides | undefined;
|
|
22
21
|
words: StationStrings;
|
|
23
22
|
unit: SpeedUnit;
|
|
@@ -25,8 +24,6 @@ type ResolvedDisplay = {
|
|
|
25
24
|
thresholds: SpeedThresholds | undefined;
|
|
26
25
|
favorableDirections: FavorableDirection[] | undefined;
|
|
27
26
|
};
|
|
28
|
-
declare function resolveDisplay(defaults: DisplayDefaults | null | undefined, props: DisplayProps): ResolvedDisplay;
|
|
29
|
-
declare function resolveStation(feed: StationFeed | null | undefined, stationId: string | undefined): Station | null;
|
|
30
|
-
declare function requireResolved<T>(component: string, what: string, value: T | null | undefined, ambientHint: string): T;
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DisplayDefaults, DisplayProps, ResolvedDisplay, requireResolved, resolveDisplay, resolveStation };
|
|
27
|
+
export declare function resolveDisplay(defaults: DisplayDefaults | null | undefined, props: DisplayProps): ResolvedDisplay;
|
|
28
|
+
export declare function resolveStation(feed: StationFeed | null | undefined, stationId: string | undefined): Station | null;
|
|
29
|
+
export declare function requireResolved<T>(component: string, what: string, value: T | null | undefined, ambientHint: string): T;
|
package/dist/display.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultFormatTime, mergeStringOverrides, resolveStrings } from "./strings.js";
|
|
2
|
-
|
|
2
|
+
// src/display.ts
|
|
3
3
|
function resolveDisplay(defaults, props) {
|
|
4
4
|
const strings = mergeStringOverrides(defaults?.strings, props.strings);
|
|
5
5
|
return {
|
|
@@ -24,5 +24,4 @@ function requireResolved(component, what, value, ambientHint) {
|
|
|
24
24
|
if (value == null) throw new Error(`<${component}> resolved no ${what} — pass the prop explicitly or ${ambientHint}.`);
|
|
25
25
|
return value;
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { requireResolved, resolveDisplay, resolveStation };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { MeteoStationElement } from "../lib/base.js";
|
|
2
|
-
|
|
3
|
-
declare class AirExtremesElement extends MeteoStationElement {
|
|
2
|
+
export declare class AirExtremesElement extends MeteoStationElement {
|
|
4
3
|
static readonly observedAttributes: string[];
|
|
5
4
|
protected render(): void;
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { AirExtremesElement };
|
|
5
|
+
}
|
|
@@ -2,7 +2,7 @@ import { resolveStation } from "../../display.js";
|
|
|
2
2
|
import { airExtremesScene } from "../../scene/air-extremes.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
4
|
import { renderOptional } from "../lib/render.js";
|
|
5
|
-
|
|
5
|
+
// src/elements/elements/AirExtremesElement.ts
|
|
6
6
|
var AirExtremesElement = class extends MeteoStationElement {
|
|
7
7
|
static observedAttributes = ["now-ms", "station-id"];
|
|
8
8
|
render() {
|
|
@@ -16,5 +16,4 @@ var AirExtremesElement = class extends MeteoStationElement {
|
|
|
16
16
|
})));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { AirExtremesElement };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Station } from "../../contract.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
|
-
|
|
5
|
-
declare class AirMatrixElement extends MeteoStationElement {
|
|
4
|
+
export declare class AirMatrixElement extends MeteoStationElement {
|
|
6
5
|
#private;
|
|
7
6
|
static readonly observedAttributes: string[];
|
|
8
7
|
constructor();
|
|
9
8
|
get stations(): readonly Station[] | undefined;
|
|
10
9
|
set stations(value: readonly Station[] | undefined);
|
|
11
10
|
protected render(): void;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { AirMatrixElement };
|
|
11
|
+
}
|
|
@@ -4,7 +4,7 @@ import { ELEMENTS_AMBIENT_HINT } from "../lib/ambient.js";
|
|
|
4
4
|
import { MeteoStationElement } from "../lib/base.js";
|
|
5
5
|
import { h } from "../lib/h.js";
|
|
6
6
|
import { renderScene } from "../lib/render.js";
|
|
7
|
-
|
|
7
|
+
// src/elements/elements/AirMatrixElement.ts
|
|
8
8
|
let panelCounter = 0;
|
|
9
9
|
var AirMatrixElement = class extends MeteoStationElement {
|
|
10
10
|
static observedAttributes = ["received-at-ms", "served-at"];
|
|
@@ -54,5 +54,4 @@ var AirMatrixElement = class extends MeteoStationElement {
|
|
|
54
54
|
}, scene.panel.map((child) => typeof child === "object" && child !== null ? renderScene(child) : child))));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
//#endregion
|
|
58
57
|
export { AirMatrixElement };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { StationClimatology } from "../../contract-climatology.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
|
-
|
|
5
|
-
declare class ClimatologyDailyPatternElement extends MeteoStationElement {
|
|
4
|
+
export declare class ClimatologyDailyPatternElement extends MeteoStationElement {
|
|
6
5
|
#private;
|
|
7
6
|
static readonly observedAttributes: string[];
|
|
8
7
|
constructor();
|
|
@@ -10,6 +9,4 @@ declare class ClimatologyDailyPatternElement extends MeteoStationElement {
|
|
|
10
9
|
set document(value: StationClimatology | null | undefined);
|
|
11
10
|
protected disconnected(): void;
|
|
12
11
|
protected render(): void;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { ClimatologyDailyPatternElement };
|
|
12
|
+
}
|
|
@@ -4,7 +4,7 @@ import { numberAttribute, parseMonthsAttribute } from "../lib/attributes.js";
|
|
|
4
4
|
import { MeteoStationElement } from "../lib/base.js";
|
|
5
5
|
import { h } from "../lib/h.js";
|
|
6
6
|
import { renderChildren } from "../lib/render.js";
|
|
7
|
-
|
|
7
|
+
// src/elements/elements/ClimatologyDailyPatternElement.ts
|
|
8
8
|
let hatchCounter = 0;
|
|
9
9
|
var ClimatologyDailyPatternElement = class extends MeteoStationElement {
|
|
10
10
|
static observedAttributes = [
|
|
@@ -85,5 +85,4 @@ var ClimatologyDailyPatternElement = class extends MeteoStationElement {
|
|
|
85
85
|
this.#observer.observe(wrap);
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
-
//#endregion
|
|
89
88
|
export { ClimatologyDailyPatternElement };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { StationClimatology } from "../../contract-climatology.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
|
-
|
|
5
|
-
declare class ClimatologyRoseElement extends MeteoStationElement {
|
|
4
|
+
export declare class ClimatologyRoseElement extends MeteoStationElement {
|
|
6
5
|
#private;
|
|
7
6
|
static readonly observedAttributes: string[];
|
|
8
7
|
constructor();
|
|
9
8
|
get document(): StationClimatology | null | undefined;
|
|
10
9
|
set document(value: StationClimatology | null | undefined);
|
|
11
10
|
protected render(): void;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ClimatologyRoseElement };
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@ import { climatologyRoseScene } from "../../scene/climatology-rose.js";
|
|
|
2
2
|
import { parseMonthsAttribute, parseSlotsAttribute } from "../lib/attributes.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
4
|
import { renderScene } from "../lib/render.js";
|
|
5
|
-
|
|
5
|
+
// src/elements/elements/ClimatologyRoseElement.ts
|
|
6
6
|
var ClimatologyRoseElement = class extends MeteoStationElement {
|
|
7
7
|
static observedAttributes = [
|
|
8
8
|
"favorable-directions",
|
|
@@ -37,5 +37,4 @@ var ClimatologyRoseElement = class extends MeteoStationElement {
|
|
|
37
37
|
})));
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
export { ClimatologyRoseElement };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { LiveSamples } from "../../contract.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
|
-
|
|
5
|
-
declare class CompassFanElement extends MeteoStationElement {
|
|
4
|
+
export declare class CompassFanElement extends MeteoStationElement {
|
|
6
5
|
#private;
|
|
7
6
|
static readonly observedAttributes: string[];
|
|
8
7
|
constructor();
|
|
9
8
|
get samples(): LiveSamples | null | undefined;
|
|
10
9
|
set samples(value: LiveSamples | null | undefined);
|
|
11
10
|
protected render(): void;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { CompassFanElement };
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@ import { resolveStation } from "../../display.js";
|
|
|
2
2
|
import { compassFanScene, compassFanSource } from "../../scene/compass-fan.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
4
|
import { renderOptional } from "../lib/render.js";
|
|
5
|
-
|
|
5
|
+
// src/elements/elements/CompassFanElement.ts
|
|
6
6
|
var CompassFanElement = class extends MeteoStationElement {
|
|
7
7
|
static observedAttributes = ["favorable-directions", "station-id"];
|
|
8
8
|
#samples;
|
|
@@ -29,5 +29,4 @@ var CompassFanElement = class extends MeteoStationElement {
|
|
|
29
29
|
})));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { CompassFanElement };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { MeteoStationElement } from "../lib/base.js";
|
|
2
|
-
|
|
3
|
-
declare class CurrentConditionsElement extends MeteoStationElement {
|
|
2
|
+
export declare class CurrentConditionsElement extends MeteoStationElement {
|
|
4
3
|
static readonly observedAttributes: string[];
|
|
5
4
|
protected connected(): void;
|
|
6
5
|
protected render(): void;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { CurrentConditionsElement };
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { currentConditionsScene } from "../../scene/current.js";
|
|
2
2
|
import { MeteoStationElement } from "../lib/base.js";
|
|
3
3
|
import { renderScene } from "../lib/render.js";
|
|
4
|
-
|
|
4
|
+
// src/elements/elements/CurrentConditionsElement.ts
|
|
5
5
|
let bezelCounter = 0;
|
|
6
6
|
var CurrentConditionsElement = class extends MeteoStationElement {
|
|
7
7
|
static observedAttributes = [
|
|
@@ -29,5 +29,4 @@ var CurrentConditionsElement = class extends MeteoStationElement {
|
|
|
29
29
|
})));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { CurrentConditionsElement };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { HistoryPoint } from "../../contract.js";
|
|
2
2
|
import "../../index.js";
|
|
3
3
|
import { MeteoStationElement } from "../lib/base.js";
|
|
4
|
-
|
|
5
|
-
declare class DailyPatternElement extends MeteoStationElement {
|
|
4
|
+
export declare class DailyPatternElement extends MeteoStationElement {
|
|
6
5
|
#private;
|
|
7
6
|
static readonly observedAttributes: string[];
|
|
8
7
|
constructor();
|
|
@@ -10,6 +9,4 @@ declare class DailyPatternElement extends MeteoStationElement {
|
|
|
10
9
|
set points(value: HistoryPoint[] | undefined);
|
|
11
10
|
protected disconnected(): void;
|
|
12
11
|
protected render(): void;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { DailyPatternElement };
|
|
12
|
+
}
|
|
@@ -5,7 +5,7 @@ import { numberAttribute } from "../lib/attributes.js";
|
|
|
5
5
|
import { MeteoStationElement } from "../lib/base.js";
|
|
6
6
|
import { h } from "../lib/h.js";
|
|
7
7
|
import { renderChildren } from "../lib/render.js";
|
|
8
|
-
|
|
8
|
+
// src/elements/elements/DailyPatternElement.ts
|
|
9
9
|
let hatchCounter = 0;
|
|
10
10
|
var DailyPatternElement = class extends MeteoStationElement {
|
|
11
11
|
static observedAttributes = [
|
|
@@ -89,5 +89,4 @@ var DailyPatternElement = class extends MeteoStationElement {
|
|
|
89
89
|
wrap.replaceChildren(...renderChildren(scene));
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
//#endregion
|
|
93
92
|
export { DailyPatternElement };
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import "../../index.js";
|
|
2
2
|
import { MeteoStationElement } from "../lib/base.js";
|
|
3
|
-
|
|
4
|
-
declare class DialElement extends MeteoStationElement {
|
|
3
|
+
export declare class DialElement extends MeteoStationElement {
|
|
5
4
|
static readonly observedAttributes: string[];
|
|
6
5
|
protected render(): void;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { DialElement };
|
|
6
|
+
}
|
|
@@ -3,7 +3,7 @@ import { dialScene } from "../../scene/dial.js";
|
|
|
3
3
|
import { numberAttribute } from "../lib/attributes.js";
|
|
4
4
|
import { MeteoStationElement } from "../lib/base.js";
|
|
5
5
|
import { renderScene } from "../lib/render.js";
|
|
6
|
-
|
|
6
|
+
// src/elements/elements/DialElement.ts
|
|
7
7
|
let bezelCounter = 0;
|
|
8
8
|
function dialSvg(options) {
|
|
9
9
|
const { station, thresholds, favorableDirections, unit, words, size = 160, calmWord = true } = options;
|
|
@@ -43,5 +43,4 @@ var DialElement = class extends MeteoStationElement {
|
|
|
43
43
|
}));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
//#endregion
|
|
47
46
|
export { DialElement, dialSvg };
|