Giter Site home page Giter Site logo

kevinnovak / matrix Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 815 KB

Web app - Control an LED matrix in real-time.

Home Page: http://kevinnovak.me/matrix/

License: MIT License

HTML 16.91% CSS 10.41% JavaScript 61.24% Python 11.44%
mqtt mosca raspberry-pi iot mqtt-js paho-python paho-mqtt

matrix's Introduction

Matrix

Control an LED matrix in real-time.

Leverages the MQTT protocol using Mosca, MQTT.js, and Paho Python.

Matrix

View screenshots from Redditors here

Broken into 3 main applications:

  1. MQTT/UI Server
    • Single Node.js application with two main functions:
      1. Run a Mosca MQTT broker.
      2. Serve web pages using Express.
        • Each UI client subscribes to the Mosca broker.
    • Start with npm start.
      • Remember to npm install.
      • Requires a MongoDB instance.
      • NGINX is an optional dependency.
    • Commands:
      • View logs with pm2 logs matrix.
      • See online users with pm2 trigger matrix online.
      • Ban a user with pm2 trigger matrix ban <ip>.
      • Unban a user with pm2 trigger matrix unban <ip>.
  2. LED Client
    • Raspberry Pi client which subscribes to the Mosca broker.
    • Controls an 8x8 RGB LED matrix.
    • Start with sudo python app.py.
      • Requires Python 3.6 and dependencies in requirements.txt.
      • Run pip install -r requirements.txt to install dependencies.
  3. Stream Server
    • Streams live video of the LED matrix to the UI clients.
    • Runs on the same Raspberry Pi as the LED client.
    • Start with npm start.
      • Remember to npm install.

References

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.