Skip to content

Commit

Permalink
output some useful info for future me
Browse files Browse the repository at this point in the history
  • Loading branch information
3nth committed May 8, 2022
1 parent 6461e7d commit 5ba4944
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ class ElgatoController extends ScryptedDeviceBase implements DeviceProvider {
this.console.log('Elgato device discovery started ...')
browser.on('up', service => {
this.console.log(`Found Elgato device: ${service.name}`)
function replacer(key, value) {
if (key === 'rawTxt') {
return undefined;
}
return value;
}
this.console.log(`${JSON.stringify(service, replacer, 2)}`)
this.addDevice(service);
});
browser.start();
Expand Down

0 comments on commit 5ba4944

Please sign in to comment.