Skip to content

Commit 11fed2f

Browse files
committed
Update README examples and LICENSE year
1 parent bc6e261 commit 11fed2f

File tree

2 files changed

+30
-44
lines changed

2 files changed

+30
-44
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013 The Hybrid Group
1+
Copyright (c) 2013-2015 The Hybrid Group
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

README.md

+29-43
Original file line numberDiff line numberDiff line change
@@ -39,75 +39,69 @@ my.pebble.on('accel', function(data) {
3939
##### Hello Pebble!
4040

4141
```javascript
42-
var Cylon = require('cylon');
42+
var Cylon = require("cylon");
4343

4444
Cylon.api({
45-
host: '0.0.0.0',
46-
port: '8080',
47-
ssl: false
45+
host: "0.0.0.0",
46+
port: "8080",
47+
ssl: false
4848
});
4949

5050
Cylon.robot({
51-
name: 'pebble',
51+
name: "pebble",
5252

53-
connection: {
54-
name: 'pebble',
55-
adaptor: 'pebble'
53+
connections: {
54+
pebble: { adaptor: "pebble" }
5655
},
5756

58-
device: {
59-
name: 'pebble',
60-
driver: 'pebble'
57+
devices: {
58+
pebble: { driver: "pebble" }
6159
},
6260

6361
work: function(my) {
6462
my.pebble.send_notification("Hello Pebble!");
6563

66-
my.pebble.on('button', function(data) {
64+
my.pebble.on("button", function(data) {
6765
console.log("Button pushed: " + data);
6866
});
6967

70-
my.pebble.on('tap', function(data) {
68+
my.pebble.on("tap", function() {
7169
console.log("Tap event detected");
7270
});
7371
}
74-
});
75-
76-
Cylon.start();
72+
}).start();
7773
```
7874

7975
##### Accelerometer
8076

8177
```javascript
82-
var Cylon = require('cylon');
78+
"use strict";
79+
80+
var Cylon = require("cylon");
8381

8482
Cylon.api({
85-
host: '0.0.0.0',
86-
port: '8080',
87-
ssl: false
83+
host: "0.0.0.0",
84+
port: "8080",
85+
ssl: false
8886
});
8987

9088
Cylon.robot({
91-
name: 'pebble',
89+
name: "pebble",
9290

93-
connection: {
94-
name: 'pebble',
95-
adaptor: 'pebble'
91+
connections: {
92+
pebble: { adaptor: "pebble" }
9693
},
9794

98-
device: {
99-
name: 'pebble',
100-
driver: 'pebble'
95+
devices: {
96+
pebble: { driver: "pebble" }
10197
},
10298

10399
work: function(my) {
104100
my.pebble.on('accel', function(data) {
105101
console.log(data);
106102
});
107103
}
108-
});
109-
110-
Cylon.start();
104+
}).start();
111105
```
112106

113107
### More information about pebble drivers/adaptors
@@ -131,17 +125,20 @@ After app is installed, click on "Settings" and configure:
131125
* robot name
132126
* robot api host
133127
* robot api port
128+
* device name
134129

135130
# Usage
136131

137132
Watchbot has 3 main sections:
138133

134+
* Commands: Execute custom commands defined in your robot.
139135
* Events: Listen to tap and button events.
140136
* Accelerometer: Send x/y/z accel data to your programs.
141-
* Commands: Execute custom commands defined in your robot.
142137

143138
# Releases
144139

140+
* 2.3 - Updated to Pebble SDK 3.0, fixed config page on iOS.
141+
145142
* 2.0 - Adding menu to listen to events, execute commands or send accel information. Using pebblejs.
146143

147144
* 0.2.0 - Compatible with CPPP.io robot API
@@ -177,15 +174,4 @@ Watchbot has 3 main sections:
177174

178175
## LICENSE
179176

180-
Copyright (c) 2014 The Hybrid Group
181-
182-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
183-
this file except in compliance with the License. You may obtain a copy of the
184-
License at
185-
186-
http://www.apache.org/licenses/LICENSE-2.0
187-
188-
Unless required by applicable law or agreed to in writing, software distributed
189-
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
190-
CONDITIONS OF ANY KIND, either express or implied. See the License for the
191-
specific language governing permissions and limitations under the License.
177+
Copyright (c) 2013-2015 The Hybrid Group. Licensed under the Apache 2.0 license

0 commit comments

Comments
 (0)