Skip to content

Commit

Permalink
Use ip-address instead of mDNS name as it is not working in docker co…
Browse files Browse the repository at this point in the history
…ntainer(and there would be too many problems with mDNS conflicts with the host if I used avahi in the container)
  • Loading branch information
HasseJohansen committed Jul 11, 2021
1 parent 2738c9d commit b4e0602
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]',
website: 'https://github.com/HasseJohansen/roon-extension-ikea-tradfri',
Expand Down
2 changes: 1 addition & 1 deletion connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
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": "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",
Expand Down

0 comments on commit b4e0602

Please sign in to comment.