@idm-plugin/meteo2 0.9.7 → 0.9.9

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,7 +137,7 @@ 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[];
140
142
  wparams: OMParams;
141
143
  mparams: OMParams;
@@ -163,7 +165,7 @@ export declare class MeteoHelper2 {
163
165
  * @param options
164
166
  */
165
167
  spotHistorical(lat: number, lng: number, startDate: string, endDate: string, withDaily?: boolean, withHourly?: boolean, withMarine?: boolean, options?: OMOptions): Promise<{
166
- weather: any;
168
+ weather: any[];
167
169
  marine: any[] | undefined;
168
170
  }>;
169
171
  /**
@@ -179,7 +181,7 @@ export declare class MeteoHelper2 {
179
181
  * @param options
180
182
  */
181
183
  spotSeasonal(lat: number, lng: number, startDate: string, endDate: string | undefined, with6Hourly?: boolean, options?: OMOptions): Promise<{
182
- weather: any;
184
+ weather: any[];
183
185
  }>;
184
186
  /**
185
187
  * 气候态数据
@@ -202,7 +204,7 @@ export declare class MeteoHelper2 {
202
204
  * @param options
203
205
  */
204
206
  spotClimate(lat: number, lng: number, startDate: string, endDate: string | undefined, options?: OMOptions): Promise<{
205
- weather: any;
207
+ weather: any[];
206
208
  }>;
207
209
  update(options?: OMOptions): Promise<any>;
208
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.7",
4
+ "version": "0.9.9",
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.7",
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.7",
48
48
  "@idm-plugin/tag": "^0.2.3",
49
49
  "@types/jest": "^25.2.2",
50
50
  "@types/node": "^18.14.2",