Code Monkey home page Code Monkey logo

fabufor's Introduction

Purpose

Fabulous front-end for controlling a Luxafor light via node-luxafor2 in node.js.

Installation

As mentioned in the MIT license, you run these commands at your own risk.

Using Ubuntu:

$ sudo apt update && sudo apt upgrade
$ sudo apt install libusb-dev libudev-dev build-essential
$ sudo su -
$ echo 'SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372" MODE="0666"' > /etc/udev/rules.d/99_luxafor.rules
$ reboot
$ yarn add global fabufor
# or
$ npm install -g fabufor

Using Fedora:

$ sudo dnf install systemd-devel gcc-c++
$ sudo su -
# echo 'SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f372" MODE="0666"' > /etc/udev/rules.d/99_luxafor.rules
# udevadm control --reload
# udevadm trigger
# exit
$ yarn add global fabufor
 -- OR --
$ npm install -g fabufor

Usage

Lighting:                                              [string] [default: "all"]

Color Controls:
  --red, -r     Red component                                           [number]
  --green, -g   Green component                                         [number]
  --blue, -b    Blue component                                          [number]
  --color, -c   The name of a color to set                              [string]
  --preset, -p  One of the preset colors built into the hardware        [string]

Presentation Controls:
  --time, -t    Adjust the time interval                                [number]
  --repeat, -e  Number of times to repeat, 0 for infinite               [number]
  --speed, -s   Adjust the speed element                                [number]
  --fade, -f    Set color with a slow transition. Persists.            [boolean]

Modes:
  --strobe, -o    Make the light strobe                                [boolean]
  --wave, -w      Specify a wave pattern                                [string]
  --pattern, -a   Display one of the built-in patterns                  [string]
  --sequence, -q  Run the light through a sequence of named colors     [boolean]
  --random, -m    Transition through randomized colors                 [boolean]

Options:
  --version   Show version number                                      [boolean]
  -h, --help  Show help                                                [boolean]

Examples

# wave red 5 times
fabufor --wave UNKNOWN_1 --color red --repeat 5 --speed 10

# strobe teal 5 times
fabufor --strobe --color teal --led ALL --time 10 --repeat 5

# set the entire light to blue
fabufor --led ALL --color blue

fabufor's People

Contributors

jonathonball avatar tuckerrc avatar

Stargazers

 avatar

Watchers

 avatar  avatar

fabufor's Issues

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.