@idm-plugin/meteo2 0.8.7 → 0.9.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 +5 -3
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1437,11 +1437,13 @@ class b0 {
|
|
|
1437
1437
|
Q(this, "FORECAST", {
|
|
1438
1438
|
OM_URL: "https://customer-api.open-meteo.com/v1/forecast",
|
|
1439
1439
|
ORM_URL: "https://meteo3.idmwx.com/v1/forecast",
|
|
1440
|
-
ORM_HISTORY_URL:
|
|
1440
|
+
// ORM_HISTORY_URL: 'https://meteo1.idmwx.com/v1/forecast',
|
|
1441
|
+
ORM_HISTORY_URL: "https://meteo3.idmwx.com/v1/forecast",
|
|
1441
1442
|
OM_HISTORY_URL: "https://customer-historical-forecast-api.open-meteo.com/v1/forecast",
|
|
1442
1443
|
OM_MARINE_URL: "https://customer-marine-api.open-meteo.com/v1/marine",
|
|
1443
1444
|
ORM_MARINE_URL: "https://meteo3.idmwx.com/v1/marine",
|
|
1444
|
-
ORM_HISTORY_MARINE_URL: "https://
|
|
1445
|
+
ORM_HISTORY_MARINE_URL: "https://meteo3.idmwx.com/v1/marine",
|
|
1446
|
+
// ORM_HISTORY_MARINE_URL: 'https://meteo1.idmwx.com/v1/marine',
|
|
1445
1447
|
WEATHER_VARIABLES: {
|
|
1446
1448
|
NORMAL: {
|
|
1447
1449
|
DAILY: "weather_code,temperature_2m_max,temperature_2m_min,apparent_temperature_max,apparent_temperature_min,sunrise,sunset,precipitation_sum,precipitation_hours,precipitation_probability_max,rain_sum,showers_sum,snowfall_sum,wind_speed_10m_max,wind_gusts_10m_max,wind_direction_10m_dominant",
|
|
@@ -1822,7 +1824,7 @@ class b0 {
|
|
|
1822
1824
|
};
|
|
1823
1825
|
let Y;
|
|
1824
1826
|
const a = this.timezoneOffset(z, p);
|
|
1825
|
-
b && (Y = L.utc(b).utcOffset(a), Y.subtract(a > 0 ? a : -a, "h"), A.selfHistory = !(Y != null && Y.isBefore(L.utc().subtract(
|
|
1827
|
+
b && (Y = L.utc(b).utcOffset(a), Y.subtract(a > 0 ? a : -a, "h"), A.selfHistory = !(Y != null && Y.isBefore(L.utc().subtract(240, "days")))), W && (q.daily = ((U = this.FORECAST.WEATHER_VARIABLES.NORMAL.DAILY) == null ? void 0 : U.split(",")) || []), Y || (A.forecastDays = A.forecastDays || 1, A.pastDays = 0, o = !0), o && (q.hourly = ((s = this.FORECAST.WEATHER_VARIABLES.NORMAL.HOURLY) == null ? void 0 : s.split(",")) || []), A.maxDays = A.maxDays || 14, A.pastDays = A.pastDays || 0, A.pastDays = A.pastDays > 7 ? 7 : A.pastDays < 0 ? 0 : A.pastDays, A.forecastDays = A.forecastDays ?? 1, A.forecastDays = A.forecastDays > A.maxDays ? A.maxDays : A.forecastDays < 0 ? 1 : A.forecastDays, await this.prepare(Y == null ? void 0 : Y.utc().format(), !1, q, A);
|
|
1826
1828
|
const e = await this.weatherForecast(q, void 0, A), d = {
|
|
1827
1829
|
apikey: this.apikey,
|
|
1828
1830
|
latitude: z,
|