Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-divoom-timebox-evo

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-divoom-timebox-evo

A module to generate and decode messages from a Divoom Timebox Evo

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

node-divoom-timebox-evo

This module helps you generate the appropriate mesage to use against the divoom timebox evo.

The communication part is not implemented here and you can use the bluetooth-serial-port module to communicate with the timebox.

Here's how you could do it:

const TIMEBOX_ADDRESS = "11:22:33:44:55:66";
var btSerial = new (require('bluetooth-serial-port')).BluetoothSerialPort();
var Divoom = require('node-divoom-timebox-evo');

btSerial.findSerialPortChannel(TIMEBOX_ADDRESS, function(channel) {
  btSerial.connect(address, channel, function() {
    console.log('connected');

    btSerial.on('data', function(buffer) {
      console.log(buffer.toString('ascii'));
    });
  }, function () {
    console.log('cannot connect');
  });
}, function() {
  console.log('found nothing');
});


var d = new Divoom.DivoomTimeBoxEvoProtocol;
d.displayAnimation('animation.gif').then(result => {
  btSerial.write(result.getDivoomBinaryBuffer(),
    function(err, bytesWritten) {
      if (err) console.log(err);
    });
});

Protocol Documentation

See Protocol

Install

npm i node-divoom-timebox-evo

Usage (TBD)

  • javascript
    var Divoom = require('node-divoom-timebox-evo');
    
    var d = new Divoom.DivoomTimeBoxEvoProtocol;
    d.displayAnimation('file.png').then(result => {
      console.log(result.getDivoomBinaryBuffer());
      // send toSend to the Divoom
      // use https://github.com/eelcocramer/node-bluetooth-serial-port
    });
    

See the complete documentation here

Keywords

FAQs

Package last updated on 31 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc