Skip to content

Commit

Permalink
GitHub #35 - Doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmk committed Dec 21, 2015
1 parent 02c708e commit d13f67d
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ this user by calling `client.users.get`.
```js
client.users.get()
.then(user => {
console.log(`Username: ${user.username}`);
console.log(`Device type: ${user.deviceType}`);
console.log(`Create date: ${user.created}`);
console.log(`Last use date: ${user.lastUsed}`);
console.log('Username:', user.username);
console.log('Device type:', user.deviceType);
console.log('Create date:', user.created);
console.log('Last use date:', user.lastUsed);
});
```

Expand Down Expand Up @@ -251,8 +251,8 @@ and saving configuration.
client.bridge.get()
.then(bridge => {
console.log(`Retrieved bridge ${bridge.name}`);
console.log(` Id: ${bridge.id}`);
console.log(` Model Id: ${bridge.modelId}`);
console.log(' Id:', bridge.id);
console.log(' Model Id:', bridge.modelId);
});
```

Expand Down Expand Up @@ -328,10 +328,10 @@ return a `Portal` object.
```js
client.portal.get()
.then(portal => {
console.log(`Is signed on: ${portal.signedOn}`);
console.log(`Incoming: ${portal.incoming}`);
console.log(`Outgoing: ${portal.outgoing}`);
console.log(`Communication: ${portal.communication}`);
console.log('Is signed on:', portal.signedOn);
console.log('Incoming:', portal.incoming);
console.log('Outgoing:', portal.outgoing);
console.log('Communication:', portal.communication);
});
```

Expand All @@ -349,9 +349,9 @@ pending updates to the bridge or other resources.
```js
client.softwareUpdate.get()
.then(softwareUpdate => {
console.log(`State: ${softwareUpdate.state}`);
console.log(`Release URL: ${softwareUpdate.releaseUrl}`);
console.log(`Release notes: ${softwareUpdate.releaseNotes}`);
console.log('State:', softwareUpdate.state);
console.log('Release URL:', softwareUpdate.releaseUrl);
console.log('Release notes:', softwareUpdate.releaseNotes);
});
```

Expand Down Expand Up @@ -445,9 +445,9 @@ client.lights.getNew()
console.log('Found new lights:');
for (let light of lights) {
console.log(`Light [${light.id}]:`);
console.log(` Unique Id: ${light.uniqueId}`);
console.log(` Model: ${light.model.name}`);
console.log(` Reachable: ${light.reachable}`);
console.log(' Unique Id:', light.uniqueId);
console.log(' Model:', light.model.name);
console.log(' Reachable:', light.reachable);
}
});
```
Expand Down Expand Up @@ -762,7 +762,7 @@ to control all lights at once.
client.groups.getById(0)
.then(group => {
console.log('Special group 0');
console.log(' Light Ids: ' + group.lightIds.join(', '));
console.log(' Light Ids:', group.lightIds.join(', '));
});
```

Expand Down Expand Up @@ -810,7 +810,7 @@ client.groups.getById(6)
return client.groups.save(group);
})
.then(group => {
console.log(` Group [${group.id}] was saved`);
console.log(`Group [${group.id}] was saved`);
})
.catch(error => {
console.log(error.stack);
Expand Down Expand Up @@ -879,7 +879,7 @@ client.scenes.getAll()
.then(scenes => {
for (let scene of scenes) {
console.log(`Scene [${scene.id}]: ${scene.name}`);
console.log(' Lights: ' + scene.lightIds.join(', '));
console.log(' Lights:', scene.lightIds.join(', '));
console.log();
}
});
Expand Down Expand Up @@ -911,7 +911,7 @@ is thrown.
client.scenes.getById('123456abcdef')
.then(scene => {
console.log(`Scene [${scene.id}]: ${scene.name}`);
console.log(' Lights: ' + scene.lightIds.join(', '));
console.log(' Lights:', scene.lightIds.join(', '));
console.log();
})
.catch(error => {
Expand Down

0 comments on commit d13f67d

Please sign in to comment.