@idm-plugin/meteo2 0.8.6 → 0.8.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.
- package/dist/index.js +943 -883
- package/dist/index.umd.cjs +2 -2
- package/dist/openmeteo/src/index.d.ts +12 -3
- package/package.json +1 -1
|
@@ -46,13 +46,14 @@ export declare class MeteoHelper2 {
|
|
|
46
46
|
standardWeatherModels(): Promise<any>;
|
|
47
47
|
standardMarineModels(): Promise<any>;
|
|
48
48
|
autoPickMeteoModel(model0?: string): Promise<OMOptions>;
|
|
49
|
-
range(start: number, stop: number, step: number): number[];
|
|
49
|
+
static range(start: number, stop: number, step: number): number[];
|
|
50
50
|
/**
|
|
51
51
|
* 大气数据
|
|
52
52
|
* @param params
|
|
53
|
+
* @param callback
|
|
53
54
|
* @param options
|
|
54
55
|
*/
|
|
55
|
-
weatherForecast(params: any, options?: OMOptions): Promise<any>;
|
|
56
|
+
weatherForecast(params: any, callback: Function | undefined, options?: OMOptions): Promise<any>;
|
|
56
57
|
/**
|
|
57
58
|
* 海洋数据
|
|
58
59
|
*
|
|
@@ -78,6 +79,13 @@ export declare class MeteoHelper2 {
|
|
|
78
79
|
* @private
|
|
79
80
|
*/
|
|
80
81
|
private parseWeatherData;
|
|
82
|
+
/**
|
|
83
|
+
* @param rsps
|
|
84
|
+
* @param params
|
|
85
|
+
* @param options
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
private parseSeasonalDailyVariable;
|
|
81
89
|
private mergeSegments;
|
|
82
90
|
private mergeMarineData;
|
|
83
91
|
private pickForecastUrl;
|
|
@@ -98,7 +106,7 @@ export declare class MeteoHelper2 {
|
|
|
98
106
|
* @param offset 单位秒
|
|
99
107
|
* @private
|
|
100
108
|
*/
|
|
101
|
-
private prettyTimezoneOffset;
|
|
109
|
+
private static prettyTimezoneOffset;
|
|
102
110
|
/**
|
|
103
111
|
* 预报数据
|
|
104
112
|
*
|
|
@@ -163,6 +171,7 @@ export declare class MeteoHelper2 {
|
|
|
163
171
|
* @param lng
|
|
164
172
|
* @param startDate
|
|
165
173
|
* @param endDate
|
|
174
|
+
* @param with6Hourly
|
|
166
175
|
* @param options
|
|
167
176
|
*/
|
|
168
177
|
spotSeasonal(lat: number, lng: number, startDate: string, endDate: string | undefined, with6Hourly?: boolean, options?: OMOptions): Promise<{
|