From dcef9bbeb230dc97970240456e97022a8c343b56 Mon Sep 17 00:00:00 2001 From: Marcus Westin Date: Mon, 13 Jan 2020 21:19:55 +0100 Subject: [PATCH 1/2] extended logging in api --- plejd/api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plejd/api.js b/plejd/api.js index 9e02c76..91e2e98 100644 --- a/plejd/api.js +++ b/plejd/api.js @@ -44,7 +44,8 @@ class PlejdApi extends EventEmitter { } login() { - logger('login()'); + console.log('plejd-api: login()'); + console.log('logging into ' + this.siteName); const self = this; const instance = axios.create({ @@ -79,7 +80,7 @@ class PlejdApi extends EventEmitter { } getCryptoKey(callback) { - logger('getCryptoKey()'); + console.log('plejd-api: getCryptoKey()'); const self = this; const instance = axios.create({ From 74ee9e0c2184f6d56756df8b7518e983102ce41a Mon Sep 17 00:00:00 2001 From: icanos Date: Tue, 14 Jan 2020 17:28:41 +0000 Subject: [PATCH 2/2] resolved container build error and upped version --- plejd/Dockerfile | 2 +- plejd/config.json | 2 +- plejd/main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plejd/Dockerfile b/plejd/Dockerfile index bc4cff1..320ec88 100644 --- a/plejd/Dockerfile +++ b/plejd/Dockerfile @@ -25,7 +25,7 @@ RUN \ libc-dev=0.7.1-r0 \ linux-headers=4.19.36-r0 \ make=4.2.1-r2 \ - python=2.7.16-r1 \ + python=2.7.16-r2 \ bluez=5.50-r3 \ eudev-dev=3.2.8-r0 \ \ diff --git a/plejd/config.json b/plejd/config.json index f5abb0f..5e4d574 100644 --- a/plejd/config.json +++ b/plejd/config.json @@ -1,6 +1,6 @@ { "name": "Plejd", - "version": "0.2.2", + "version": "0.2.3", "slug": "plejd", "description": "Adds support for the Swedish home automation devices from Plejd.", "url": "https://github.com/icanos/hassio-plejd/", diff --git a/plejd/main.js b/plejd/main.js index 7f07ba6..4e6fafd 100644 --- a/plejd/main.js +++ b/plejd/main.js @@ -3,7 +3,7 @@ const mqtt = require('./mqtt'); const fs = require('fs'); const PlejdService = require('./ble'); -const version = "0.2.2"; +const version = "0.2.3"; async function main() { console.log('starting Plejd add-on v. ' + version);