Skip to content

Commit

Permalink
## 1.5.6 (2019-02-12) Evolution release (Ann)
Browse files Browse the repository at this point in the history
* (bluefox) Fix let's encrypt
* (bluefox) Fix "iob" script
* (Dominic Griesel) Revert the changes to `del[Foreign]State`, so the object is not deleted.
* (bluefox) always install the version from repository and not the latest from npm
* (Ingo Fischer) Root should always npm install with --unsafe-perm
* (bluefox) fix iobroker stop
* (bluefox) fix error with formatDate
  • Loading branch information
GermanBluefox committed Feb 13, 2019
1 parent 55de06b commit 079f7c4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
## 1.5.5 (2019-02-12) Evolution release (Ann)
## 1.5.6 (2019-02-12) Evolution release (Ann)
* (bluefox) Fix let's encrypt
* (bluefox) Fix "iob" script
* (Dominic Griesel) Revert the changes to `del[Foreign]State`, so the object is not deleted.
* (bluefox) always install the version from repository and not the latest from npm
* (Ingo Fischer) Root should always npm install with --unsafe-perm
* (bluefox) fix iobroker stop
* (bluefox) fix error with formatDate

## 1.5.3 (2018-09-15) Evolution release (Ann)
* (bluefox) disable the auto-control of quality codes
Expand Down
4 changes: 2 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"common": {
"name": "js-controller",
"version": "1.5.5",
"version": "1.5.6",
"platform": "Javascript/Node.js",
"controller": true,
"title": "JS controller",
Expand All @@ -18,7 +18,7 @@
"zh-cn": "JS控制器"
},
"news": {
"1.5.5": {
"1.5.6": {
"en": "let's encrypt was fixed\nFix iob script\nAlways install the version from repository and not the latest from npm\nRoot should always npm install with --unsafe-perm\niobroker stop was fixed",
"de": "Lass uns verschlüsseln wurde behoben\nIob -Skript korrigieren\nInstallieren Sie die Version immer aus dem Repository und nicht die neueste aus npm\nRoot sollte npm immer mit --unsafe-perm installieren\nIobroker-Stopp wurde behoben",
"ru": "«давайте шифровать» было исправлено\nИсправить скрипт iob\nВсегда устанавливайте версию из репозитория, а не самую последнюю из npm\nRoot всегда должен устанавливать npm с помощью --unsafe-perm\nостановка iobroker была исправлена",
Expand Down
21 changes: 18 additions & 3 deletions lib/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,12 @@ function Adapter(options) {
if (options.useFormatDate) {
that.getForeignObject('system.config', (err, data) => {
if (data && data.common) {
that.dateFormat = data.common.dateFormat;
that.isFloatComma = data.common.isFloatComma;
that.dateFormat = data.common.dateFormat;
that.isFloatComma = data.common.isFloatComma;
that.language = data.common.language;
that.latitude = data.common.latitude;
that.longitude = data.common.longitude;
that.defaultHistory = data.common.defaultHistory;
}
if (typeof cb === 'function') cb();
});
Expand Down Expand Up @@ -944,6 +948,15 @@ function Adapter(options) {
}
}

if (id === 'system.config' && obj && obj.common && (options.useFormatDate || that.defaultHistory !== undefined)) {
that.dateFormat = obj.common.dateFormat;
that.isFloatComma = obj.common.isFloatComma;
that.language = obj.common.language;
that.latitude = obj.common.latitude;
that.longitude = obj.common.longitude;
that.defaultHistory = obj.common.defaultHistory;
}

// process autosubscribe adapters
if (id.match(/^system\.adapter\./)) {
if (obj && obj.common.subscribable) {
Expand Down Expand Up @@ -3454,7 +3467,9 @@ function Adapter(options) {
if (!that.defaultHistory) {
// read default history instance from system.config
return that.getForeignObject('system.config', (err, data) => {
if (data && data.common) that.defaultHistory = data.common.defaultHistory;
if (data && data.common) {
that.defaultHistory = data.common.defaultHistory;
}

// if no default history set
if (!that.defaultHistory) {
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.js-controller",
"version": "1.5.5",
"version": "1.5.6",
"engines": {
"node": ">=4.8.7"
},
Expand Down

0 comments on commit 079f7c4

Please sign in to comment.