@angelrove/forecast-utils 1.1.11 → 1.1.13
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.
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jose Angel Romero Vegas",
|
|
3
3
|
"name": "@angelrove/forecast-utils",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.13",
|
|
5
5
|
"description": "Utilities for obtaining weather and astronomy forecast data.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@biomejs/biome": "1.9.4",
|
|
42
|
-
"jsdoc-to-markdown": "^9.1.1",
|
|
43
42
|
"@types/react": "^19.1.5",
|
|
44
|
-
"@types/react-dom": "^19.1.5"
|
|
43
|
+
"@types/react-dom": "^19.1.5",
|
|
44
|
+
"jsdoc-to-markdown": "^9.1.1",
|
|
45
|
+
"typescript": "^5.8.3"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {}
|
|
47
48
|
}
|
|
@@ -6,6 +6,7 @@ import transformer from "./transformer.js";
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Custom hook to fetch daily forecast (10 days) data from OpenMeteo API.
|
|
9
|
+
*
|
|
9
10
|
* https://api.open-meteo.com/v1/forecast?timezone=auto&latitude=36.6644363&longitude=-4.5108962&forecast_days=10&daily=weathercode
|
|
10
11
|
*
|
|
11
12
|
* @param {number} lat
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type AstroPosition = {
|
|
2
|
-
altitude: number;
|
|
3
|
-
azimuth: number;
|
|
4
|
-
direction: string;
|
|
5
|
-
direction_full: string;
|
|
6
|
-
};
|
|
7
|
-
export type LocalTimeData = {
|
|
8
|
-
/**
|
|
9
|
-
* - The local time.
|
|
10
|
-
*/
|
|
11
|
-
time: Date;
|
|
12
|
-
/**
|
|
13
|
-
* - The formatted local time string.
|
|
14
|
-
*/
|
|
15
|
-
timeStr: string;
|
|
16
|
-
/**
|
|
17
|
-
* - The timezone name.
|
|
18
|
-
*/
|
|
19
|
-
timezone: string;
|
|
20
|
-
/**
|
|
21
|
-
* - The timezone ID.
|
|
22
|
-
*/
|
|
23
|
-
timezoneId: string;
|
|
24
|
-
/**
|
|
25
|
-
* - The UTC offset in hours.
|
|
26
|
-
*/
|
|
27
|
-
offset: number;
|
|
28
|
-
/**
|
|
29
|
-
* - The sign of the offset ('+' or '-').
|
|
30
|
-
*/
|
|
31
|
-
offsetSign: string;
|
|
32
|
-
/**
|
|
33
|
-
* - The DST offset in hours.
|
|
34
|
-
*/
|
|
35
|
-
dstOffset: number;
|
|
36
|
-
};
|