This commit is contained in:
micuat 2022-02-28 11:12:39 +01:00
parent 422520a483
commit 725ba93d0c

View file

@ -6,10 +6,10 @@ This is a clone of [dmx-web](https://github.com/node-dmx/dmx-web) edited for liv
On the computer that has DMX: On the computer that has DMX:
git clone https://github.com/micuat/dmx-flok.git # Clone the repository git clone https://github.com/micuat/dmx-flok.git # Clone the repository
cd dmx-flok cd dmx-flok
npm install npm install
node dmx-web.js -c dmx-web.json node dmx-web.js -c dmx-web.json
`public.js` has to be hosted online. For example, you can use https://light-academy.glitch.me/script.js `public.js` has to be hosted online. For example, you can use https://light-academy.glitch.me/script.js
@ -17,9 +17,9 @@ open a flok session on https://flok.clic.cf/. The session must be opened on the
load the script load the script
loadScript("https://light-academy.glitch.me/script.js") loadScript("https://light-academy.glitch.me/script.js")
lights(1,1,1,1) lights(1,1,1,1)
light0([0,1],()=>Math.sin(time*3),1) light0([0,1],()=>Math.sin(time*3),1)
## API ## API
@ -29,9 +29,9 @@ load the script
currently index is hardcoded (5 lights) and only RGB lights are supported. They have to be configured on `dmx-web.json` and `dmx-web.js` according to your setup. currently index is hardcoded (5 lights) and only RGB lights are supported. They have to be configured on `dmx-web.json` and `dmx-web.js` according to your setup.
original document: ---
# node-dmx # original document: node-dmx
Webinterface and HTTP API using [node-dmx](https://github.com/node-dmx/dmx) Webinterface and HTTP API using [node-dmx](https://github.com/node-dmx/dmx)