@azohra/meteo.station 0.5.0 → 0.6.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 +1 -1
- package/dist/client/climatology.js +1 -1
- package/dist/client/history.js +3 -11
- package/dist/client/live.d.ts +2 -1
- package/dist/client/live.js +7 -4
- package/dist/client/stores.js +10 -2
- package/dist/climatology.d.ts +1 -1
- package/dist/climatology.js +1 -1
- package/dist/contract.d.ts +7 -7
- package/dist/derive.js +5 -4
- package/dist/elements/elements/TrendChartElement.js +12 -31
- package/dist/elements/elements/WindHistoryChartElement.js +12 -31
- package/dist/elements/elements/atoms.d.ts +1 -1
- package/dist/elements/lib/pinned-cursor.js +48 -0
- package/dist/fixtures.d.ts +6 -2
- package/dist/fixtures.js +30 -2
- package/dist/format.js +7 -3
- package/dist/geometry.d.ts +1 -1
- package/dist/geometry.js +21 -9
- package/dist/react/components/Dial.d.ts +1 -2
- package/dist/react/components/TrendChart.js +8 -26
- package/dist/react/components/WindHistoryChart.js +10 -29
- package/dist/react/components/WindSampleStrip.js +9 -27
- package/dist/react/hooks/useStation.js +28 -50
- package/dist/react/hooks/useStationFeed.d.ts +0 -1
- package/dist/react/index.js +2 -2
- package/dist/react/lib/use-pinned-cursor.js +32 -0
- package/dist/samples.js +7 -43
- package/dist/scene/recent-summaries.js +1 -4
- package/dist/server/adapters/windnerd.d.ts +2 -3
- package/dist/server/adapters/windnerd.js +2 -12
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +2 -2
- package/dist/windnerd.d.ts +3 -1
- package/dist/windnerd.js +11 -1
- package/package.json +3 -3
- package/schema/README.md +2 -2
package/dist/windnerd.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
//#region src/windnerd.d.ts
|
|
2
|
+
declare const WINDNERD_RECORD_PERIODS_MINUTES: readonly [1, 5, 10, 15, 30, 60, 180, 360];
|
|
3
|
+
type WindnerdRecordPeriodMinutes = (typeof WINDNERD_RECORD_PERIODS_MINUTES)[number];
|
|
2
4
|
declare function normalizeWindnerdStationKey(value: string | null | undefined): string | null;
|
|
3
5
|
declare function windnerdStationUrl(stationKey: string): string;
|
|
4
6
|
//#endregion
|
|
5
|
-
export { normalizeWindnerdStationKey, windnerdStationUrl };
|
|
7
|
+
export { WINDNERD_RECORD_PERIODS_MINUTES, WindnerdRecordPeriodMinutes, normalizeWindnerdStationKey, windnerdStationUrl };
|
package/dist/windnerd.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
//#region src/windnerd.ts
|
|
2
2
|
const WINDNERD_HOST = "windnerd.net";
|
|
3
3
|
const WINDNERD_KEY = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
4
|
+
const WINDNERD_RECORD_PERIODS_MINUTES = [
|
|
5
|
+
1,
|
|
6
|
+
5,
|
|
7
|
+
10,
|
|
8
|
+
15,
|
|
9
|
+
30,
|
|
10
|
+
60,
|
|
11
|
+
180,
|
|
12
|
+
360
|
|
13
|
+
];
|
|
4
14
|
function normalizeWindnerdStationKey(value) {
|
|
5
15
|
const candidate = value?.trim();
|
|
6
16
|
if (!candidate) return null;
|
|
@@ -22,4 +32,4 @@ function windnerdStationUrl(stationKey) {
|
|
|
22
32
|
return `https://${WINDNERD_HOST}/en/${stationKey}`;
|
|
23
33
|
}
|
|
24
34
|
//#endregion
|
|
25
|
-
export { normalizeWindnerdStationKey, windnerdStationUrl };
|
|
35
|
+
export { WINDNERD_RECORD_PERIODS_MINUTES, normalizeWindnerdStationKey, windnerdStationUrl };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azohra/meteo.station",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Live weather-station reading and display. A wire contract, provider adapters, a polling client, a Node server, and byte-identical React and custom-element display bindings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"weather-station",
|
|
7
7
|
"wind",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"zod": "^4.0.0",
|
|
67
|
-
"@azohra/meteo.core": "0.
|
|
67
|
+
"@azohra/meteo.core": "0.3.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0 || ^19.0.0"
|
package/schema/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Wire contract artifacts
|
|
2
2
|
|
|
3
3
|
The station capability's wire contract in language-neutral form: JSON
|
|
4
|
-
Schemas emitted from the zod contract (`station/contract.ts`), plus
|
|
5
|
-
annotated example
|
|
4
|
+
Schemas emitted from the zod contract (`station/contract.ts`), plus an
|
|
5
|
+
annotated example document beside each schema. Never edited by hand — regenerate with
|
|
6
6
|
`pnpm schemas` at the workspace root, which must reproduce every file
|
|
7
7
|
byte-identical (the drift guard is this package's own test suite).
|
|
8
8
|
|