Skip to content

Commit

Permalink
3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hombach authored and Hombach committed Jun 3, 2024
1 parent dae2f5e commit 7e5359e
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 18 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ If you enjoyed this project — or just feeling generous, consider buying me a b

! Note that missing version entries are typically dependency updates for improved security.

### 3.2.1 (2024-06-03)

- (HombachC) added unique endpoint string

### 3.2.0 (2024-06-03)

- (HombachC) IMPORTANT: adapter components had been blocked by Tibber - you have to update!
Expand Down
4 changes: 4 additions & 0 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/main.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "tibberlink",
"version": "3.2.0",
"version": "3.2.1",
"news": {
"3.2.1": {
"en": "added unique endpoint string",
"de": "eindeutigen Endpunktstring hinzugefügt",
"ru": "добавлен уникальный конечный строка",
"pt": "adicionado string de endpoint única",
"nl": "toegevoegde unieke eindpuntreeks",
"fr": "ajouté une chaîne d'extrémité unique",
"it": "aggiunta stringa di endpoint univoca",
"es": "añadida cadena de endpoint única",
"pl": "dodano unikalny ciąg końcowy",
"uk": "додано унікальний кінцевий рядок",
"zh-cn": "添加唯一的端点字符串"
},
"3.2.0": {
"en": "IMPORTANT: adapter components had been blocked by Tibber - you have to update!\nbump base dependencies\nadapter will use internal output states for calculator if none defined in configuration (#325)\nimplement first run mode in calculator to reduce system load\ninternal optimizations",
"de": "WICHTIG: Adapterkomponenten wurden von Tibber blockiert - Sie müssen aktualisieren!\nBasisabhängigkeiten aktualisieren\nAdapter wird interne Ausgangszustände für den Rechner verwenden, wenn keine in der Konfiguration definiert sind (#325)\nErstlaufmodus im Rechner implementieren, um die Systemlast zu reduzieren\ninterne Optimierungen",
Expand Down Expand Up @@ -224,19 +237,6 @@
"uk": "Впровадження отримання історичних даних про споживання від сервера Tibber (#163)",
"zh-cn": "实现从 Tibber 服务器获取历史耗电数据 (#163)"
},
"1.5.0": {
"en": "Implement calculator object names (#186)",
"de": "Implementiere Objektnamen des Taschenrechners (#186)",
"ru": "Реализовать имена объектов калькулятора (#186)",
"pt": "Implementar nomes de objetos de calculadora (#186)",
"nl": "Implementeer objectnamen van de rekenmachine (#186)",
"fr": "Mettre en œuvre les noms d'objet de la calculatrice (#186)",
"it": "Implementa i nomi degli oggetti della calcolatrice (#186)",
"es": "Implementar nombres de objetos de la calculadora (#186)",
"pl": "Wdrożyć nazwy obiektów kalkulatora (#186)",
"uk": "Реалізувати імена об'єктів калькулятора (#186)",
"zh-cn": "实施计算器对象名称 (#186)"
},
"1.4.0": {
"en": "implement min/max states (#131)\nfix error with ignored calculator channel deactivations (#143)",
"de": "Implementiere Min-/Max-Werte (#131)\nBehebung des Fehlers bei ignorierten Deaktivierungen von Taschenrechnerkanälen (#143)",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.tibberlink",
"version": "3.2.0",
"version": "3.2.1",
"description": "links tibber API data to be used in ioBroker",
"author": {
"name": "Hombach",
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ class Tibberlink extends utils.Adapter {
this.setState(`info.connection`, false, true);
} else {
// Need 2 configs - API and Feed (feed changed query url)
// WIP 3.2.1
const tibberConfigAPI: IConfig = {
active: true,
apiEndpoint: {
apiKey: this.config.TibberAPIToken,
queryUrl: this.queryUrl,
userAgent: `${this.config.TibberAPIToken.slice(5, 20).split("").reverse().join("")}${Date.now}`,
},
};
// Now read homes list from API
Expand Down Expand Up @@ -220,12 +222,14 @@ class Tibberlink extends utils.Adapter {
//#region *** If user uses live feed - start feed connection ***
if (this.homeInfoList.some((info) => info.FeedActive)) {
// array with configs of feeds, init with base data set
// WIP 3.2.1
const tibberFeedConfigs: IConfig[] = Array.from({ length: this.homeInfoList.length }, () => {
return {
active: true,
apiEndpoint: {
apiKey: this.config.TibberAPIToken,
queryUrl: this.queryUrl,
userAgent: `${this.config.TibberAPIToken.slice(5, 20).split("").reverse().join("")}${Date.now}`,
},
timestamp: true,
};
Expand Down

0 comments on commit 7e5359e

Please sign in to comment.