Skip to content

Commit

Permalink
Merge pull request #162 from jack-blackson/v2.3.4
Browse files Browse the repository at this point in the history
var
  • Loading branch information
jack-blackson authored Mar 26, 2023
2 parents 62b380d + c71c3d2 commit 7384b52
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 14 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.meteoalarm",
"version": "2.3.3",
"version": "2.3.4",
"description": "Meteolaram",
"main": "main.js",
"repository": {
Expand Down

0 comments on commit 7384b52

Please sign in to comment.