- Use the correct Node version by running
nvm use
.
This will install the correct version if it is not already installed,
which is the current latest LTS version (v18). - Install dependencies with
pnpm install
.
Use pnpm, install it withnpm i -g pnpm
. - Prepare the dependencies with
pnpm install
. - Run the project with
tsc && node .
.
In reality, all you need to do is send
{
"ctx": "action/ceilingscripts/activatescript",
"data": {
"script": "wave",
"colourlist": [
{ "r": 357, "g": 808, "b": 980, "ww": 0, "cw": 0 },
{ "r": 0, "g": 0, "b": 0, "ww": 0, "cw": 1000 },
{ "r": 1000, "g": 78, "b": 78, "ww": 0, "cw": 0 }
],
"fadeduration": 1100
}
}
to ws://licht.realraum.at/sock
and you're done.