-
Notifications
You must be signed in to change notification settings - Fork 4
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
Raspberry Pi zero compatibility issue #33
Comments
Hi, the GPIO module is something I need to include for the leds control. I started it but I switched to other works so the error should be there but should not cause anything (should show the error but keep on going with other stuff).
If this doesn't work, try to change the serial port setting manually in the "server/saves/saved_settings.json" file. You can list the available serial port with a bash command but I do not recall by mind now and I'm away from my computer... Put the correct value (something like "tty/usb0") in the place of "FAKE" Please keep me updated 😉 |
hi, Thanks for the quick reply! When I run the script, it gives me the the errors like I showed in the text file above and I can type new commands ( I'm a really new to this ) When I check the if npm is installed it returns: 6.7.0. I've tried to change the serial port within the saved_setings.json file, however I'm not able to get it to work as I don't really know how. The correct value should indeed be: /dev/ttyUSB0. Thanks in advance, Lou |
Hi again, I just uploaded a small update to remove that package from the imports. You can try it out with (from within the virtual environment on the master branch):
When you do this save the output of the installation in a text file. If this update doesn't fix the problem send me the installation log + the new log when you start the server. This time you should get only one error (I removed the code that was causing the GPIO error) about the serial connection but the server should keep on running and you should be able to reach the interface at the give ip address. Let me know if this update fix the problem or if you get something else... |
Hello, I still can't access the interface, but the GPIO error is gone, these are my logs: |
I found the problem: during the installation there is an error in the build of the frontend.
To fix this you can try like this:
If it gives you the same error try it once again.
If you keep getting an error post the result of the commands as well as the error log file in "in "/home/pi/sandypi/frontend/yarn-error.log". If the commands above ends correctly, it will be enough to go back to the main folder and start the server:
|
hello again, I'm still getting a error when i tried the comand: build yarn, the error is this: pi@raspberrypi:~/sandypi/frontend $ yarn build could the reason be that i'm using the raspberry pi zero w? |
Yes, I think so... The build process can be heavy for the pi3 already. If
you want, you can try to build that part on a computer running windows or
linux and then you can copy the build directory in the same place into the
pi (never tried this but theoretically should work). I will have a look if
it is possible to make the build process lighter to make it compatible also
with the zero but for the moment it is not supported directly...
If you want to try this way on the zero and you cannot figure it out on
your own let me know... I will try to give you more detailed info...
Il ven 26 feb 2021, 16:12 Louhacking <notifications@github.com> ha scritto:
… hello again,
I'm still getting a error when i tried the comand: build yarn, the error
is this:
***@***.***:~/sandypi/frontend $ yarn build
yarn run v1.22.10
$ react-scripts build
Creating an optimized production build...
The build failed because the process exited too early. This probably means
the system ran out of memory or someone called kill -9 on the process.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about
this command.
could the reason be that i'm using the raspberry pi zero w?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUZZG2I4EJZ6UT4UI2YVMDTA624DANCNFSM4YAQRYAQ>
.
|
I investigated a little bit more and it may be possible to make it work on the zero as well but I will need to test it out by myself. I changed the name of the issue. If somebody would like to have a try to fix the problem I will accept it. If the flags do not solve it may be possible to create a guide in order to build the sw on a computer and then copy the necessary files on the raspi. This will require a custom installation script in order to skip the frontend build process on the zero with at least a message that tells to have a look at the right procedure. |
Thanks for your time! I really appreciate it. Lets hope we find a solution soon. |
So, I have news... I had the time today to play with my zero W and I think the build process cannot be done on that board in any way (not enough power). In the future I think the best solution will be to release an image (the only problem with this method is with the updates.) or create a branch with the frontend files already built (in this way the installation will be quicker also). If you cannot run it on a pi3/4, I added some more details in the readme file on how to build it on a computer and the add only the necessary files. |
Luckily my housemate had a RPi2 laying somewhere around, so I was able to compile the build. So it works for me for now, again thanks for the time! |
Perfect! I think it will be slow in doing certain things (like uploadong a drawing)... Let me know how it works and if you have issues |
Hi, I need to use baudrate 250000 for my ramps 1.4 board, however it's not available within the settings tab. |
Hi! 250000 is not in the default baudrates around the world. Still, with a quick search I saw that marlin is using it to reduce the error rate in the communication (I think it is related to the 16KHz clock but not completely sure). I will add it in the list of possible baudrates even if it is not considered to be a standard one because other peoples may be using it.
In the available values, after 230400 add the correct value between brackets (be careful with comas as well). Then, restart the python program, refresh the web page and the option should appear. Let me know if the trick works and also if the communication is working even with a non standard baudrate |
The trick works! My table is now fully working. |
Perfect! |
Hello
I've been trying to get the server to work, however I'm not able to get it to work. I've read the other issues and the troubleshoot page but it still not working. I get this error message where it is talking about not able to find the module named GPIO. Can you help me?
Troubleshooting.txt
Thanks in advance, Lou
The text was updated successfully, but these errors were encountered: