@idm-plugin/meteo2 0.3.6 → 0.3.8
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/index.d.ts +1 -0
- package/dist/index.js +436 -365
- package/dist/index.umd.cjs +2 -2
- package/dist/openmeteo/src/index.d.ts +2 -2
- package/dist/worldtides/src/index.d.ts +45 -0
- package/package.json +1 -1
|
@@ -68,7 +68,7 @@ export declare class MeteoHelper2 {
|
|
|
68
68
|
* @param params
|
|
69
69
|
* @param options
|
|
70
70
|
*/
|
|
71
|
-
marineForecast(params: any, options?: OMOptions): Promise<any[]>;
|
|
71
|
+
marineForecast(params: any, options?: OMOptions): Promise<any[] | undefined>;
|
|
72
72
|
/**
|
|
73
73
|
* 解析请求数据
|
|
74
74
|
* @param rsps
|
|
@@ -125,7 +125,7 @@ export declare class MeteoHelper2 {
|
|
|
125
125
|
*/
|
|
126
126
|
spotForecast(lat: number, lng: number, datetime: string | undefined, simplify?: boolean, withDaily?: boolean, withHourly?: boolean, options?: OMOptions): Promise<{
|
|
127
127
|
weather: any;
|
|
128
|
-
marine: any[];
|
|
128
|
+
marine: any[] | undefined;
|
|
129
129
|
}>;
|
|
130
130
|
/**
|
|
131
131
|
* 历史再分析数据
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://www.worldtides.info/apidocs
|
|
3
|
+
* 潮汐参数
|
|
4
|
+
*/
|
|
5
|
+
export interface TdOptions {
|
|
6
|
+
requestId?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @see https://open-meteo.com/en/docs
|
|
10
|
+
* @see https://openmeteo.s3.amazonaws.com/index.html
|
|
11
|
+
*/
|
|
12
|
+
export declare class TidesHelper {
|
|
13
|
+
private readonly apikey;
|
|
14
|
+
private readonly debug;
|
|
15
|
+
constructor(apikey: string, debug?: boolean);
|
|
16
|
+
private toStdLng;
|
|
17
|
+
/**
|
|
18
|
+
* 潮汐预报数据
|
|
19
|
+
* @param lat
|
|
20
|
+
* @param lng
|
|
21
|
+
*
|
|
22
|
+
* Start date (in YYYY-MM-DD format) to retrieve the tidal heights or extremes starting at midnight local time. You can also pass "today" to use the current date of the location.
|
|
23
|
+
* @param date
|
|
24
|
+
*
|
|
25
|
+
* If this parameter is present the low and high tides will be returned.
|
|
26
|
+
* By default the heights will be returned from 6 hours ago to 42 hours in the future.
|
|
27
|
+
* You can specify the start, date, length, days, and step parameters to customize this.
|
|
28
|
+
* @param extremes
|
|
29
|
+
*
|
|
30
|
+
* If this parameter is present the tidal heights will be calculated and returned.
|
|
31
|
+
* By default the heights will be returned from 6 hours ago to 42 hours in the future in 30 minutes intervals.
|
|
32
|
+
* You can specify the start, date, length, days, and step parameters to customize this.
|
|
33
|
+
* @param heights
|
|
34
|
+
*
|
|
35
|
+
* If this parameter is present the datums (vertical reference levels) will be returned
|
|
36
|
+
* @param datums
|
|
37
|
+
*
|
|
38
|
+
* If this parameter is present, heights and extremes will be returned referring to this datum (vertical reference level). The possible datums are listed here.
|
|
39
|
+
* The default is MSL (Mean Sea Level), but we highly recommend setting this to CD.
|
|
40
|
+
* @see https://www.worldtides.info/datums
|
|
41
|
+
* @param datum
|
|
42
|
+
* @param options
|
|
43
|
+
*/
|
|
44
|
+
tidesForecast(lat: number, lng: number, days?: number, date?: string, extremes?: boolean, heights?: boolean, datums?: boolean, datum?: string, options?: TdOptions): Promise<any>;
|
|
45
|
+
}
|