-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It doesn't work with the -p flag #32
Comments
I am seeing the
The file is being created but the |
Actually the error is here: input_file = fopen(named_pipe_file, "r"); |
I made it work by recreating the FIFO every time. I don't know if it is right thing to do, but it worked by now.
|
Seems to work fine here maybe try added a ; after render? |
Oh, sure, maybe that is the problem. I just replaced this
By this, because it was giving me segfault.
If you find something, please let me know. And thank you for this project, it is awesome. |
You're right the file needs to be reopened. I will fix this as soon as possible and add some other things too. |
Cool! It will be nice. |
should not be fixed |
You can also add some examples in the README.md to make clear for other folks how to use this feature. |
Since you are working hard, I have one question. Is it possible to create a command to stop/halt the current execution? I am sending a lot of commands (the whole animation) for the FIFO device with an external loop in bash (for example). Then, I want to stop the current animation to send another animation. But looks like the server keeps playing the previous animations for a while. |
Yes it will read until everything is processed and it reads line by line from FIFO and executes it so this makes it difficult to add a stop command at this moment because when it will read this command it's already too late... One thing you could to is restart it (sudo killall ws2812svr and sudo ./ws2812svr -p) or use a TCP connection and thread command. With TCP you can first store all commands in memory and then start a thread executing them. Next time you connect to the TCP port it will automatically stop the current animation and do anything new. |
I am doing the same as you said. But I am thinking further. Do you think it is too much to create a second FIFO to make this kind of action possible? For example, if you right |
You said
Maybe it is almost working, I just found that it is not working fine. |
Hi, I could not make it run with the
-p
flag.I am using RPi3 and RPi4.
Do you have any (bash) example to share here?
I am trying something like:
Is it right? Am I doing anything wrong?
The text was updated successfully, but these errors were encountered: