0.0.7 • Published 5 years ago

lisalive v0.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

LisaLive

Connect and control StreamIt Lisa devices via LiveCom.

Installation

npm install lisalive

Usage

Connect to a device and send a command.

var serial = 'xxxxxx';
var token = 'xxxxxx';
var pusherAppToken = 'xxxxxx';

import LisaLive from 'lisalive';

var LL = new LisaLive(serial, token, pusherAppToken);

// turn on debugging
LL.debug();

// connect to the device
LL.connect(function(){

    // send a status command to the device
    LL.sendCommand('status', function(response){
        console.log(response);
    });

});

// disconnect
LL.disconnect(function(){
    console.log('disconnected');
});

// listen to events
LL.on('disconnect', function(msg){
    console.log(msg);
});

LL.on('error', function(msg){
    console.error(msg);
});

Available Commands

CommandDescription
ispretrieve ip and provider information
statusget the player status
volumeget the current volume
volume [0-31]set the volume between 0-31
ps [1-32]play station 1-32
pw [0|1]power on or off player
udupdate the configuration
channelget channels programmed
curchanget the current channel
restartrestart the player

Tests

Coming Soon!

Contributing

Send a pull request.

0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

8 years ago

0.0.1

8 years ago