Open leoheck opened 4 years ago
Actually I made it work with this command (the README.md lacks the init
and the render
commands.
echo "setup 1,8,3;init;rainbow;brightness 1,100;render;" | nc 127.0.0.1 9998
Here, the example for a loop, that disconnects the client after sending the command. It is working
read -r -d '' cmd <<-EOM
setup 1,8,3
init
rainbow
thread_start
do
rotate 1,1,2
render
delay 200
loop
thread_stop
EOM
echo -e "$cmd" | nc -w 0 127.0.0.1 9998
TCP version works better than using file or uname pipe. Thanks for referring me that.
you're right the documentation was not up to date. I've updated that now also added 2 new effects: chaser and color_change.
This is still wrong
sudo ./ws2812svr -tcp
It should be like this unless you added a default port in the code.
sudo ./ws2812svr -tcp [PORT]
yes default port is 9999
First of all, the README.md shows
The command has the port missing, it should be like
Also How could I use the
-tcp
mode with the command line.I am trying this:
It gives me
And the server closes, which is not good because someone can send some wrong command to just close the server.
Trying to send the same command from the README, like