@idm-plugin/meteo2 0.9.6 → 0.9.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.
@@ -54,7 +54,7 @@ export declare class MeteoHelper2 {
54
54
  * @param callback
55
55
  * @param options
56
56
  */
57
- weatherForecast(params: any, callback: Function | undefined, options?: OMOptions): Promise<any>;
57
+ weatherForecast(params: any, callback: Function | undefined, options?: OMOptions): Promise<any[]>;
58
58
  /**
59
59
  * 海洋数据
60
60
  *
@@ -88,8 +88,10 @@ export declare class MeteoHelper2 {
88
88
  */
89
89
  private parseSeasonalDailyVariable;
90
90
  private mergeSegments;
91
+ private mergeWeatherData;
91
92
  private mergeMarineData;
92
93
  private pickForecastUrl;
94
+ private pickWeatherModels;
93
95
  private pickMarineModels;
94
96
  /**
95
97
  * 完善start_hour/end_hour 或者是forecast_days变量,二选一
@@ -135,8 +137,11 @@ export declare class MeteoHelper2 {
135
137
  * @param options
136
138
  */
137
139
  spotForecast(lat: number, lng: number, datetime: string | undefined, simplify?: boolean, withDaily?: boolean, withHourly?: boolean, options?: OMOptions): Promise<{
138
- weather: any;
140
+ weather: any[];
139
141
  marine: any[];
142
+ wparams: OMParams;
143
+ mparams: OMParams;
144
+ datetime: string | undefined;
140
145
  }>;
141
146
  /**
142
147
  * 历史再分析数据
@@ -160,7 +165,7 @@ export declare class MeteoHelper2 {
160
165
  * @param options
161
166
  */
162
167
  spotHistorical(lat: number, lng: number, startDate: string, endDate: string, withDaily?: boolean, withHourly?: boolean, withMarine?: boolean, options?: OMOptions): Promise<{
163
- weather: any;
168
+ weather: any[];
164
169
  marine: any[] | undefined;
165
170
  }>;
166
171
  /**
@@ -176,7 +181,7 @@ export declare class MeteoHelper2 {
176
181
  * @param options
177
182
  */
178
183
  spotSeasonal(lat: number, lng: number, startDate: string, endDate: string | undefined, with6Hourly?: boolean, options?: OMOptions): Promise<{
179
- weather: any;
184
+ weather: any[];
180
185
  }>;
181
186
  /**
182
187
  * 气候态数据
@@ -199,7 +204,7 @@ export declare class MeteoHelper2 {
199
204
  * @param options
200
205
  */
201
206
  spotClimate(lat: number, lng: number, startDate: string, endDate: string | undefined, options?: OMOptions): Promise<{
202
- weather: any;
207
+ weather: any[];
203
208
  }>;
204
209
  update(options?: OMOptions): Promise<any>;
205
210
  pickUpdateMeta(model: string | string[], options?: OMOptions): Promise<any[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idm-plugin/meteo2",
3
3
  "private": false,
4
- "version": "0.9.6",
4
+ "version": "0.9.8",
5
5
  "description": "idm plugin for meteo2(open meteo)",
6
6
  "type": "module",
7
7
  "keywords": [
@@ -33,18 +33,18 @@
33
33
  "got": "11",
34
34
  "moment": "^2.30.1",
35
35
  "moment-timezone": "^0.5.47",
36
- "openmeteo": "^1.1.4",
36
+ "openmeteo": "^1.2.3",
37
37
  "tz-lookup": "^6.1.25",
38
38
  "xml2js": "^0.6.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@idm-plugin/geo2": "^1.4.7",
42
- "@idm-plugin/meteo": "^0.5.2",
42
+ "@idm-plugin/meteo": "^0.6.6",
43
43
  "@idm-plugin/tag": "^0.2.3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@idm-plugin/geo2": "^1.4.7",
47
- "@idm-plugin/meteo": "^0.5.2",
47
+ "@idm-plugin/meteo": "^0.6.6",
48
48
  "@idm-plugin/tag": "^0.2.3",
49
49
  "@types/jest": "^25.2.2",
50
50
  "@types/node": "^18.14.2",