New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iobroker.weatherflow-tempest-api

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.weatherflow-tempest-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

admin/i18n/de/translations.json

@@ -80,4 +80,4 @@ {

"lastUpdate": "letzte Aktualisierung der Daten",
"updateInterval": "Update intervall (Min.)",
"You like the adapter? Then support me.": "Dir gefällt der Adapter? Dann unterstütze mich."
}
"You like the adapter? Then support me.": "Dir gefällt der Adapter? Dann unterstütze mich.",
"updateCron": "Aktualisierungsplan"
}

@@ -78,4 +78,4 @@ {

"lastUpdate": "last update of the data",
"updateInterval": "update interval (Min.)",
"updateCron": "update schedule",
"You like the adapter? Then support me.": "You like the adapter? Then support me."
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "última actualización de los datos",
"updateInterval": "Intervalo de actualización (Mín.)",
"You like the adapter? Then support me.": "¿Te gusta el adaptador? Entonces apóyame."
}
"You like the adapter? Then support me.": "¿Te gusta el adaptador? Entonces apóyame.",
"updateCron": "calendario de actualización"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "dernière mise à jour des données",
"updateInterval": "intervalle de mise à jour (Min.)",
"You like the adapter? Then support me.": "Vous aimez l'adaptateur ? Alors soutenez-moi."
}
"You like the adapter? Then support me.": "Vous aimez l'adaptateur ? Alors soutenez-moi.",
"updateCron": "calendrier de mise à jour"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "ultimo aggiornamento dei dati",
"updateInterval": "intervallo di aggiornamento (min.)",
"You like the adapter? Then support me.": "Ti piace l'adattatore? Allora sostienimi."
}
"You like the adapter? Then support me.": "Ti piace l'adattatore? Allora sostienimi.",
"updateCron": "programma di aggiornamento"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "laatste update van de gegevens",
"updateInterval": "update-interval (min.)",
"You like the adapter? Then support me.": "Vind je de adapter leuk? Steun mij dan."
}
"You like the adapter? Then support me.": "Vind je de adapter leuk? Steun mij dan.",
"updateCron": "schema bijwerken"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "ostatnia aktualizacja danych",
"updateInterval": "interwał aktualizacji (min.)",
"You like the adapter? Then support me.": "Podoba Ci się adapter? Więc wesprzyj mnie."
}
"You like the adapter? Then support me.": "Podoba Ci się adapter? Więc wesprzyj mnie.",
"updateCron": "harmonogram aktualizacji"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "última atualização dos dados",
"updateInterval": "intervalo de atualização (mín.)",
"You like the adapter? Then support me.": "Você gostou do adaptador? Então me apoie."
}
"You like the adapter? Then support me.": "Você gostou do adaptador? Então me apoie.",
"updateCron": "cronograma de atualização"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "последнее обновление данных",
"updateInterval": "интервал обновления (мин.)",
"You like the adapter? Then support me.": "Вам нравится адаптер? Тогда поддержите меня."
}
"You like the adapter? Then support me.": "Вам нравится адаптер? Тогда поддержите меня.",
"updateCron": "график обновления"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "останнє оновлення даних",
"updateInterval": "інтервал оновлення (хв.)",
"You like the adapter? Then support me.": "Вам подобається адаптер? Тоді підтримай мене."
}
"You like the adapter? Then support me.": "Вам подобається адаптер? Тоді підтримай мене.",
"updateCron": "графік оновлення"
}

@@ -80,4 +80,4 @@ {

"lastUpdate": "数据的最后更新",
"updateInterval": "更新间隔(最小)",
"You like the adapter? Then support me.": "你喜欢这个适配器吗?那就支持我吧。"
}
"You like the adapter? Then support me.": "你喜欢这个适配器吗?那就支持我吧。",
"updateCron": "更新时间表"
}

@@ -35,9 +35,8 @@ {

},
"updateInterval": {
"type": "number",
"label": "updateInterval",
"min": 10,
"step": 1,
"updateCron": {
"type": "cron",
"label": "updateCron",
"complex": true,
"sm": 12,
"md": 1
"md": 2
},

@@ -44,0 +43,0 @@ "dividerUnits": {

@@ -26,2 +26,3 @@ "use strict";

var import_moment = __toESM(require("moment"));
var schedule = __toESM(require("node-schedule"));
var forecCastTypes = __toESM(require("./lib/foreCastTypes"));

@@ -32,3 +33,3 @@ var myHelper = __toESM(require("./lib/helper"));

myTranslation;
updateIntervalTimeout;
updateSchedule = void 0;
constructor(options = {}) {

@@ -62,4 +63,4 @@ super({

try {
if (this.updateIntervalTimeout)
clearTimeout(this.updateIntervalTimeout);
if (this.updateSchedule)
this.updateSchedule.cancel();
callback();

@@ -123,9 +124,6 @@ } catch (e) {

await this.updateForeCast();
if (this.updateIntervalTimeout) {
this.clearTimeout(this.updateIntervalTimeout);
this.updateIntervalTimeout = null;
}
this.updateIntervalTimeout = this.setTimeout(() => {
this.updateData();
}, this.config.updateInterval * 1e3 * 60);
this.log.debug(`${logPrefix} starting cron job with parameter '${this.config.updateCron}'`);
this.updateSchedule = schedule.scheduleJob(this.config.updateCron, async () => {
await this.updateForeCast();
});
} else {

@@ -147,3 +145,2 @@ this.log.error(`${logPrefix} station id and / or access token missing. Please check your adapter configuration!`);

await this.updateForeCastCurrent(data.current_conditions);
this.log.info(`${logPrefix} ForeCast data - current conditions updated`);
} else {

@@ -154,5 +151,3 @@ this.log.error(`${logPrefix} Tempest Forecast has no current condition data`);

await this.updateForeCastHourly(data.forecast.hourly);
this.log.info(`${logPrefix} ForeCast data - hourly updated`);
await this.updateForeCastDaily(data.forecast.daily);
this.log.info(`${logPrefix} ForeCast data - daily updated`);
} else {

@@ -192,2 +187,3 @@ this.log.error(`${logPrefix} Tempest Forecast has no forecast data`);

}
this.log.info(`${logPrefix} ForeCast data - current conditions updated (changes: ${statesChanged})`);
} else {

@@ -248,2 +244,3 @@ this.log.error(`${logPrefix} Tempest Forecast has no current condition data`);

}
this.log.info(`${logPrefix} ForeCast data - hourly updated (changes: ${statesChanged})`);
} else {

@@ -304,2 +301,3 @@ this.log.warn(`${logPrefix} downloaded data does not contain a hourly forecast!`);

}
this.log.info(`${logPrefix} ForeCast data - daily updated (changes: ${statesChanged})`);
} else {

@@ -306,0 +304,0 @@ this.log.warn(`${logPrefix} downloaded data does not contain a daily forecast!`);

{
"common": {
"name": "weatherflow-tempest-api",
"version": "1.0.1",
"version": "1.0.2",
"news": {
"1.0.2": {
"en": "bug fixes\nusing cron for update interval",
"de": "fehlerbehebungen\nverwendung von cron für update-intervall",
"ru": "исправления ошибок\nиспользование cron для интервала обновления",
"pt": "correções de bugs\nusando cron para intervalo de atualização",
"nl": "foutherstel\ncron gebruiken voor update-interval",
"fr": "corrections des bogues\nutilisant cron pour l'intervalle de mise à jour",
"it": "correzioni di bug\nusando cron per l'intervallo di aggiornamento",
"es": "bug fixes\nusando cron para intervalo de actualización",
"pl": "poprawki błędów\nprzy użyciu cron dla interwał aktualizacji",
"uk": "виправлення помилок\nза допомогою cron для інтервалу оновлення",
"zh-cn": "错误修正\n使用括号进行更新间隔"
},
"1.0.1": {

@@ -134,3 +147,3 @@ "en": "bug fixes\ndependencies updated",

"dailyMax": 7,
"updateInterval": 15
"updateCron": "1,16,31,46 * * * *"
},

@@ -137,0 +150,0 @@ "objects": [],

{
"name": "iobroker.weatherflow-tempest-api",
"version": "1.0.1",
"version": "1.0.2",
"description": "WeatherFlow Tempest API",

@@ -27,3 +27,5 @@ "author": {

"@iobroker/adapter-core": "^3.1.6",
"moment": "^2.30.1"
"@types/node-schedule": "^2.1.7",
"moment": "^2.30.1",
"node-schedule": "^2.1.1"
},

@@ -30,0 +32,0 @@ "devDependencies": {

@@ -143,2 +143,7 @@ ![Logo](admin/weatherflow-tempest-api.png)

-->
### 1.0.2 (2024-09-17)
- (Scrounger) bug fixes
- (Scrounger) using cron for update interval
### 1.0.1 (2024-09-15)

@@ -145,0 +150,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc