From b4e0602378f31759677a320a98dccf5cf0eff398 Mon Sep 17 00:00:00 2001 From: Hasse Hagen Johansen Date: Sun, 11 Jul 2021 14:04:22 +0200 Subject: [PATCH] Use ip-address instead of mDNS name as it is not working in docker container(and there would be too many problems with mDNS conflicts with the host if I used avahi in the container) --- app.js | 2 +- connection.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 3a8d1fb..d572ce9 100644 --- a/app.js +++ b/app.js @@ -15,7 +15,7 @@ var first_run = false var roon = new RoonApi({ extension_id: 'dk.hagenjohansen.roontradfri', display_name: "Roon Tradfri", - display_version: "0.0.6", + display_version: "0.0.7", publisher: 'Hasse Hagen Johansen', email: 'hasse-roon@hagenjohansen.dk', website: 'https://github.com/HasseJohansen/roon-extension-ikea-tradfri', diff --git a/connection.js b/connection.js index 035e22a..e9268ce 100644 --- a/connection.js +++ b/connection.js @@ -16,7 +16,7 @@ async function getConnection(gwcode) { } console.log( "Connecting to", gateway.host) - const tradfri = new TradfriClient(gateway.host) + const tradfri = new TradfriClient(gateway.addresses[0]) if( !conf.has( 'security.identity' ) || !conf.has('security.psk' ) ) { let securityCode = gwcode diff --git a/package.json b/package.json index 1aec910..6520b4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "roon-extension-ikea-tradfri", - "version": "0.0.6", + "version": "0.0.7", "description": "Roon Extension for switching IKEA Trådfri smart switches", "main": "app.js", "author": "Hasse Hagen Johansen",