tim-hellhake / sonos-adapter

Sonos adapter for the Mozilla IoT Gateway / Web Things Adapter
MIT License
9 stars 5 forks source link

How to use this? #2

Closed Mikro007 closed 5 years ago

Mikro007 commented 5 years ago

Could you explain how this adapter works?

Should I add a thing in the gateway to see my speaker?

freaktechnik commented 5 years ago

Adapter adapt non-WoT devices to the gateway. You still need to follow normal gateway usage, like adding the devices from the pairing screen etc.

Mikro007 commented 5 years ago

Okay, like I thought then. But it will not add my speaker... It scans for new devices but not find any.

freaktechnik commented 5 years ago

Is the speaker on the same network? If that's all the case, could you check the logs (settings -> developer -> view logs -> there should be just one file available)?

Mikro007 commented 5 years ago

Yes, they are in the same network.

`nvm version 0.33.8 node version v8.12.0 npm version 6.4.1 Starting gateway ...

things-gateway@0.6.1 start /home/pi/mozilla-iot/gateway webpack && node build/gateway.js "--check-wifi"

[at-loader] Using typescript@2.7.2 from typescript and "tsconfig.json" from /home/pi/mozilla-iot/gateway/tsconfig.json.

[at-loader] Checking started in a separate process...

[at-loader] Ok, 2.687 sec. Hash: 3a03cabf1a5ac4cb64897baccc32d32eca68ab64c3bf63a12c1208159f89 Version: webpack 4.12.0 Child Hash: 3a03cabf1a5ac4cb6489 Time: 53308ms Built at: 2018-10-11 19:46:58 Asset Size Chunks Chunk Names gateway.js 420 KiB main [emitted] main gateway.js.map 471 KiB main [emitted] main [./src/addon-manager.js] 34.3 KiB {main} [built] [./src/app-instance.js] 1.18 KiB {main} [built] [./src/app.js] 10 KiB {main} [built] [./src/constants.js] 4.09 KiB {main} [built] [./src/db.js] 15.9 KiB {main} [built] [./src/log-timestamps.js] 3.19 KiB {main} [built] [./src/mdns-server.js] 9.1 KiB {main} [built] [./src/router.js] 5.44 KiB {main} [built] [./src/rules-engine/index.js] 2.59 KiB {main} [built] [./src/ssltunnel.js] 4.13 KiB {main} [built] [./src/user-profile.js] 7.51 KiB {main} [built] [fs] external "fs" 42 bytes {main} [built] [ip-regex] external "ip-regex" 42 bytes {main} [built] [node-getopt] external "node-getopt" 42 bytes {main} [built] [path] external "path" 42 bytes {main} [built]

freaktechnik commented 5 years ago

There's nothing in the logs that would point to the sonos adapter not working, sorry. It just implements the speaker discovery protocol, which should eventually find sonos speakers.