@idm-plugin/meteo2 0.1.8 → 0.2.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/dist/index.js +471 -412
- package/dist/index.umd.cjs +2 -2
- package/dist/openmeteo/src/index.d.ts +19 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export interface OMParams {
|
|
|
6
6
|
longitude: number | number[];
|
|
7
7
|
elevation?: number;
|
|
8
8
|
hourly?: string | string[];
|
|
9
|
+
six_hourly?: string | string[];
|
|
9
10
|
current?: string | string[];
|
|
10
11
|
daily?: string | string[];
|
|
11
12
|
timezone?: string;
|
|
@@ -37,6 +38,7 @@ export interface OMOptions {
|
|
|
37
38
|
precision?: number;
|
|
38
39
|
selfHosted?: boolean;
|
|
39
40
|
meteo2?: boolean;
|
|
41
|
+
memberLength?: number;
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
44
|
* @see https://open-meteo.com/en/docs
|
|
@@ -47,6 +49,7 @@ export declare class MeteoHelper2 {
|
|
|
47
49
|
private readonly FORECAST;
|
|
48
50
|
private readonly HISTORICAL;
|
|
49
51
|
private readonly CLIMATE;
|
|
52
|
+
private readonly SEASONAL;
|
|
50
53
|
constructor(apikey: string, debug?: boolean);
|
|
51
54
|
range(start: number, stop: number, step: number): number[];
|
|
52
55
|
/**
|
|
@@ -151,6 +154,20 @@ export declare class MeteoHelper2 {
|
|
|
151
154
|
weather: any[];
|
|
152
155
|
marine: any[] | undefined;
|
|
153
156
|
}>;
|
|
157
|
+
/**
|
|
158
|
+
* 季节预报数据
|
|
159
|
+
* 提供未来45天~9个月的预报数据
|
|
160
|
+
* @see https://open-meteo.com/en/docs/seasonal-forecast-api
|
|
161
|
+
*
|
|
162
|
+
* @param lat
|
|
163
|
+
* @param lng
|
|
164
|
+
* @param startDate
|
|
165
|
+
* @param endDate
|
|
166
|
+
* @param options
|
|
167
|
+
*/
|
|
168
|
+
spotSeasonal(lat: number, lng: number, startDate: string, endDate: string | undefined, with6Hourly?: boolean, options?: OMOptions): Promise<{
|
|
169
|
+
weather: any[];
|
|
170
|
+
}>;
|
|
154
171
|
/**
|
|
155
172
|
* 气候态数据
|
|
156
173
|
*
|
|
@@ -163,6 +180,8 @@ export declare class MeteoHelper2 {
|
|
|
163
180
|
* MPI_ESM1_2_XR | Germany | Max Planck Institute for Meteorology, Hamburg 20146, Germany | 51 km Model
|
|
164
181
|
* NICAM16_8S | Japan | Japan Agency for Marine-Earth Science and Technology, Kanagawa 236-0001, Japan (MIROC) | 31 km Model
|
|
165
182
|
*
|
|
183
|
+
* @see https://open-meteo.com/en/docs/climate-api
|
|
184
|
+
*
|
|
166
185
|
* @param lat
|
|
167
186
|
* @param lng
|
|
168
187
|
* @param startDate
|