{"id":16218400,"url":"https://github.com/kevinnovak/matrix","last_synced_at":"2026-04-13T12:31:18.036Z","repository":{"id":97569157,"uuid":"126405798","full_name":"KevinNovak/Matrix","owner":"KevinNovak","description":"Web app - Control an LED matrix in real-time.","archived":false,"fork":false,"pushed_at":"2018-04-25T00:38:55.000Z","size":815,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T23:23:52.207Z","etag":null,"topics":["iot","mosca","mqtt","mqtt-js","paho-mqtt","paho-python","raspberry-pi"],"latest_commit_sha":null,"homepage":"http://kevinnovak.me/matrix/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KevinNovak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-22T23:15:14.000Z","updated_at":"2018-04-25T00:38:56.000Z","dependencies_parsed_at":"2023-06-19T02:32:17.998Z","dependency_job_id":null,"html_url":"https://github.com/KevinNovak/Matrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KevinNovak/Matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinNovak%2FMatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinNovak%2FMatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinNovak%2FMatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinNovak%2FMatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevinNovak","download_url":"https://codeload.github.com/KevinNovak/Matrix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevinNovak%2FMatrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot","mosca","mqtt","mqtt-js","paho-mqtt","paho-python","raspberry-pi"],"created_at":"2024-10-10T11:49:24.451Z","updated_at":"2026-04-13T12:31:18.018Z","avatar_url":"https://github.com/KevinNovak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matrix\n### Control an LED matrix in real-time.\n\nLeverages the MQTT protocol using Mosca, MQTT.js, and Paho Python.\n\n![Matrix](https://i.imgur.com/xKW0vTJ.png)\n\n[View screenshots from Redditors here](https://imgur.com/a/hmzj8Ev)\n\nBroken into 3 main applications:\n\n1. **MQTT/UI Server**\n    * Single Node.js application with two main functions:\n        1. Run a Mosca MQTT broker.\n        2. Serve web pages using Express.\n            * Each UI client subscribes to the Mosca broker.\n    * Start with ```npm start```.\n        * Remember to ```npm install```.\n        * Requires a MongoDB instance.\n        * NGINX is an optional dependency.\n    * Commands:\n        * View logs with ```pm2 logs matrix```.\n        * See online users with ```pm2 trigger matrix online```.\n        * Ban a user with ```pm2 trigger matrix ban \u003cip\u003e```.\n        * Unban a user with ```pm2 trigger matrix unban \u003cip\u003e```.\n2. **LED Client**\n    * Raspberry Pi client which subscribes to the Mosca broker.\n    * Controls an 8x8 RGB LED matrix.\n    * Start with ```sudo python app.py```.\n        * Requires Python 3.6 and dependencies in ```requirements.txt```.\n        * Run ```pip install -r requirements.txt``` to install dependencies.\n3. **Stream Server**\n    * Streams live video of the LED matrix to the UI clients.\n    * Runs on the same Raspberry Pi as the LED client.\n    * Start with ```npm start```.\n        * Remember to ```npm install```.\n\n## References\n* [Mosca](https://www.npmjs.com/package/mosca) by [Matteo Collina](https://github.com/mcollina) - Node.js MQTT broker\n* [MQTT.js](https://www.npmjs.com/package/mqtt) by [Matteo Collina](https://github.com/mcollina) - Use MQTT in the browser\n* [MQTT over WebSockets](https://github.com/mcollina/mosca/wiki/MQTT-over-Websockets) by [Matteo Collina](https://github.com/mcollina) - Use MQTT over WebSockets\n* [Paho Python](https://www.eclipse.org/paho/clients/python/) by [Eclipse](https://www.eclipse.org/) - Use MQTT in Python\n* [rpi_ws281x](https://github.com/jgarff/rpi_ws281x) by [Jeremy Garff](https://github.com/jgarff) - Control WS281X RGB LEDs through Raspberry Pi\n* [raspivid-stream](https://www.npmjs.com/package/raspivid-stream) by [Tim Perry](https://github.com/pimterry) - Capture video from Raspberry Pi\n* [pi-cam](https://github.com/pimterry/pi-cam) by [Tim Perry](https://github.com/pimterry) - Working example of raspivid-stream\n* [h264-live-player](https://github.com/131/h264-live-player) by [François Leurent](https://github.com/131) - Play h264 video in the browser\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinnovak%2Fmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinnovak%2Fmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinnovak%2Fmatrix/lists"}