UNPKG
jw-weather
Version:
latest (2.1.5)
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Reader for various weather APIs
github.com/jonwyett/weather
jonwyett/weather
jw-weather
/
tester.js
15 lines
(9 loc)
•
247 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
jwGate =
require
(
'jw-gate'
);
console
.
log
(
'go'
);
var
myGate =
new
jwGate.
Gate
([
'a'
],
true
); myGate.
on
(
'unlocked'
,
function
(
) {
console
.
log
(
'unlocked'
); });
setTimeout
(
function
(
) { myGate.
lock
([
'a'
],
false
); },
2500
);