From da1ff37c5a9329a52a4623cef9a90b85529f9250 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 4 Apr 2018 13:18:54 +0200 Subject: [PATCH] Updated README --- README.md | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a6b8a08..2e66b7c 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,7 @@ Inspired by https://github.com/defnull/pixelflut It's only a bit of fun. His servers are much better ;P -## Using -### Setup +## Setup Install node.js and download scripts ``` sudo apt-get nodejs git @@ -18,9 +17,32 @@ Open the shown http port in a browser (you can use multiple on multiple machines Start playing at the shown input port. ### Default ports -* HTTP (for viewing) `61813` -* INPUT (for plaing) `1337` +* HTTP (for viewing): `61813` +* INPUT (for plaing): `1337` -### Play +Ports can be changed in index.js + +## Play Use PixelNode with the same protocol as Pixelflut: https://github.com/defnull/pixelflut#pixelflut-protocol + +## Currently supported commands +### Set pixel `PX ` +Response: `PX ` +### Get pixel `PX ` +Response: `PX ` +### Size `SIZE` +Response: `SIZE ` +### Stats `STATS` +Response: `STATS px: conn:` + +### Variables +variable | content | example | description +---------|-------- |-------- | ----------- +`` | value defined in index.js | `100`, `1654` | width of display +`` | value defined in index.js | `100`, `1654` | heigth of display +`` | value between `0` and `` | `45`, `2` | x coordinate +`` | value between `0` and `` | `45`, `2` | y coordinate +`` | can be a rgb or rgba color | `fa341b`, `ba32c9a3` | color +`` | | `45`, `231` | pixel change per second +**[BETA]** `` | | `45`, `231` | currently connected hosts