Skip to content

Commit

Permalink
Merge pull request #134 from jack-blackson/v2.2.1
Browse files Browse the repository at this point in the history
V2.2.1
  • Loading branch information
jack-blackson authored Jul 26, 2022
2 parents e668469 + 0d7bb04 commit 9729595
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,14 @@ If you don't find your country, please create an issue on github, and I will be


## Changelog

## 2.2.1 (2022-07-28)
* (jack-blackson) Bugfix noOfAlarms and numbering of objects

## 2.2.0 (2022-07-05)
* (jack-blackson) Added Object JSON that contains all activ errors in JSON format (e.g. for users of iqontrol)
* (jack-blackson) First step to get rid of duplicate error messages


## 2.1.5 (2022-06-13)
* (jack-blackson) Fixed Error "Error from InMemDB: Error: Not exists"

Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "meteoalarm",
"version": "2.2.0",
"version": "2.2.1",
"news": {
"2.2.1": {
"en": "Bugfixes",
"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修复"
},
"2.2.0": {
"en": "New Object JSON to export data in JSON format, First step to get rid of duplicate alarms",
"de": "New Object JSON zum Export von Daten im JSON-Format, Erste Schritte, um doppelte Alarme loszuwerden",
Expand Down
7 changes: 4 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ async function getData(){
adapter.setStateAsync({device: '' , channel: '',state: 'location'}, {val: regionName, ack: true}),
adapter.setStateAsync({device: '' , channel: '',state: 'link'}, {val: urlAtom, ack: true}),
adapter.setStateAsync({device: '' , channel: '',state: 'color'}, {val: getColor(maxAlarmLevel.toString()), ack: true}),
adapter.setStateAsync({device: '' , channel: '',state: 'noOfAlarms'}, {val: countEntries, ack: true}),
adapter.setStateAsync({device: '' , channel: '',state: 'noOfAlarms'}, {val: warningCount, ack: true}),
adapter.setStateAsync({device: '' , channel: '',state: 'JSON'}, {val: JSON.stringify(JSONAll), ack: true})
])
adapter.log.debug('12: Set State for Widget')
Expand Down Expand Up @@ -901,8 +901,9 @@ async function processDetails(content, countInt,detailsType,detailsIdentifier,de

async function fillAlarm(content, countInt){

var path = 'alarms.' + 'Alarm_' + countInt
const created = await createAlarms(countInt)
var pathInt = countInt +1
var path = 'alarms.' + 'Alarm_' + pathInt
const created = await createAlarms(countInt +1)
adapter.log.debug('10.0.1: Created State')
//adapter.log.debug('Type: ' + detailsType + ' , Identifier: ' + detailsIdentifier)

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.2.0",
"version": "2.2.1",
"description": "Meteolaram",
"main": "main.js",
"repository": {
Expand Down

0 comments on commit 9729595

Please sign in to comment.