diff --git a/README.md b/README.md index 619eb22..3794df2 100755 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ Choose your country, and afterwards the region you want the warnings for. If you ## Changelog +## 2.3.4 (2023-03-26) +* (jack-blackson) IOBROKER-METEOALARM-4A + ## 2.3.3 (2023-02-09) * (jack-blackson) Added possibility to define the alarm levels for the widget, JSON and notification * (jack-blackson) Added ukrainian language diff --git a/io-package.json b/io-package.json index 6d22ec7..c9e4f93 100755 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,21 @@ { "common": { "name": "meteoalarm", - "version": "2.3.3", + "version": "2.3.4", "news": { + "2.3.4": { + "en": "Bugfix", + "de": "Fehlerbehebung", + "ru": "Исправление ошибок", + "pt": "Correções de bugs", + "nl": "Bugfixes", + "fr": "Corrections de bugs", + "it": "Correzioni di bug", + "es": "Corrección de errores", + "pl": "Poprawki", + "zh-cn": "Bug修复", + "uk": "Виправлення помилок" + }, "2.3.3": { "en": "Define which alarm levels you are interested in", "de": "Definiere, welche Alarmstufen dich interessieren", diff --git a/main.js b/main.js index cf2416c..4977341 100755 --- a/main.js +++ b/main.js @@ -414,9 +414,12 @@ async function getData(){ detailsIdentifier = result.alert.identifier detailsIdentifier = detailsIdentifier.replace(/\./g,'') // remove dots detailssent = result.alert.sent - if (detailsType != "Alert"){ + if (detailsType != "Alert" && detailsReference != ""){ detailsReference = result.alert.references var searchTerm = "," + adapter.log.debug('TEMP: searchterm = ' + searchTerm) + adapter.log.debug('TEMP: detailsreference = ' + detailsReference) + const indexOfFirstComma = detailsReference.indexOf(searchTerm); const indexOfSecondComma = detailsReference.indexOf(searchTerm, indexOfFirstComma +1); detailsReference = detailsReference.substring(indexOfFirstComma +1,indexOfSecondComma) diff --git a/package.json b/package.json index 7c661f4..984d94e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "iobroker.meteoalarm", - "version": "2.3.3", + "version": "2.3.4", "description": "Meteolaram", "main": "main.js", "repository": {