@idm-plugin/meteo2 0.1.9 → 0.2.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.
@@ -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
  /**
@@ -147,10 +150,24 @@ export declare class MeteoHelper2 {
147
150
  * @param withMarine
148
151
  * @param options
149
152
  */
150
- spotHistorical(lat: number, lng: number, startDate: string, endDate: string, withMarine?: boolean, options?: OMOptions): Promise<{
153
+ spotHistorical(lat: number, lng: number, startDate: string, endDate: string, withDaily?: boolean, withHourly?: boolean, withMarine?: boolean, options?: OMOptions): Promise<{
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idm-plugin/meteo2",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.2.1",
5
5
  "description": "idm plugin for meteo2(open meteo)",
6
6
  "type": "module",
7
7
  "keywords": [