GithubHelp home page GithubHelp logo

chrishutchinson / christmas-tree-painter Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 689 KB

๐ŸŽ„ Festive Christmas tree decoration with Node.js, TypeScript and WS281x lights

Home Page: https://chrishutchinson.github.io/christmas-tree-painter/

JavaScript 48.64% TypeScript 49.84% HTML 1.18% Shell 0.34%
christmas christmas-lights christmas-tree typescript nodejs javascript raspberry-pi ws2811 ws281x

christmas-tree-painter's Introduction

Paint your own Christmas Tree ๐ŸŽ„

A Node.js server and TypeScript web client allowing you to colour in your Christmas tree lights

Compatible lights

Pre-requisites

  • You'll need a device running Node.js 8+, I've tested using a Raspberry Pi 3
  • Some basic wiring will be required to connect up your lights to your device

Installation

First! Clone this repo down to your device

Node.js server

  1. cd into the packages/server directory
  2. Install the dependencies using $ npm install
  3. Start the server by running $ npm run start

This will run the server on your device on port 2811. You can then use the client app to connect to this server.

TypeScript Client

Note! While you can run your own client app, it is pre-deployed at https://chrishutchinson.github.io/christmas-tree-painter

  1. cd into the packages/client directory
  2. Install the dependencies using $ npm install or $ yarn
  3. Run the app with $ yarn start
  4. The web UI should open in your browser, enter the IP address or hostname of the device running the Node.js server, with the port number 2811, e.g. 192.168.0.10:2811

christmas-tree-painter's People

Contributors

chrishutchinson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

christmas-tree-painter's Issues

Document wiring

WS281x output

Usually:

  • White = ground
  • Red = 5v
  • Green = data in (DIN)

Raspberry pi

  • Pin 12 = data out

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.