Giter VIP home page Giter VIP logo

node-dcled's Introduction

Node.js dcled controller

This is a NodeJS driver/framework for the Dream Cheeky USB Message Board. It contains preinstalled plugins for weather, clock and Bitcoin exchange rate. Custom plugins can be easily written.

run examples

git clone https://github.com/b2un0/node-dcled.git
cd node-dcled
npm install
npm install --only=dev
npm run-script examples

install as dependency in your project

npm install dcled

use in your project

const dcled = require('dcled');
let board = new dcled();
board.connect();

// inspect the examples for more

Docker

There is a Docker Container with mqtt client https://hub.docker.com/r/b2un0/dcled

services:
    dcled:
        image: b2un0/dcled:latest
        restart: always
        container_name: dcled
        network_mode: bridge
        devices:
            - /dev/bus/usb
        environment:
            NODE_HID_DRIVER: "libusb"
            DCLED_DEVICE_NUMBER: "0"
            MQTT_HOST: "mqtt://192.168.1.2:1883"
            # MQTT_HOST: "mqtt://USERNAME@PASSWORD:192.168.1.2:1883"
            MQTT_TOPIC: "home/dcled"

the topic payload must be a json like this:

{
    "text": "word", // must be a string (short)
    "align": 0 // optional, positive integer padding from left side, negative integer = padding from right side, 0 = default = auto
}

node-dcled's People

Contributors

b2un0 avatar morbz avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.