UNPKG
botnanajs
Version:
latest (0.1.1)
0.1.1
0.1.0
0.0.2
0.0.1
Botnana Control API for Javascript
github.com/botnana/botnanajs
botnana/botnanajs
botnanajs
/
examples
/
words.js
16 lines
(12 loc)
•
285 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict"
;
var
botnana =
require
(
"../index"
);
function
words
(
) { botnana.
debug_level
=
1
; botnana.
once
(
"ready"
,
function
(
) {
// Real-time script API
var
script =
"words"
; botnana.
motion
.
evaluate
(script); }); botnana.
start
(
"ws://192.168.7.2:3012"
); }
words
();