-
-
Notifications
You must be signed in to change notification settings - Fork 88
Documentation and Setup #79
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
Conversation
57a62c7
to
81d3113
Compare
If I lint the project, I get MANY warnings/errors. So this check fails. |
Hi, @jt-helsinki
|
Can I modify it directly to your PR? |
@hishizuka yes, please modify directly as you see fit. 👍
+1 Please check now. Have put it back. Can you please check for correctness?
Good question. I was getting an error at some point but I think that was left over from that. I've removed those lines. |
be232de
to
920e77d
Compare
* Fixed small spelling mistakes caught by codespell * Updated thge README.md with some formatting and spelling * Added Rapberry Pi OS setup instructions * Moved the install.sh script to /scripts to keep all shell scripts together * Renamed install.sh --> install_service.sh to make it clear what it does * Created an initial_install.sh script to simplify the initial device setup
920e77d
to
723cd30
Compare
delete a lot of spaces. modify Stargazers.
608562f
to
1b247f3
Compare
be2e2eb
to
6a38882
Compare
Update initial_setup.sh with new libs and conditional libraries
6a38882
to
72f6c43
Compare
Hi, @jt-helsinki
|
I also noticed that the req folder has not been updated at all. I will probably delete it. As it is now, it is wrong. |
* wait for application to start * removed directory deleting * updated prompt functionality. Fixed quit bug * renamed USER_HOME and USER variables to PI_USER_HOME and PI_USER * small formatting issues
Thanks for reviewing this. I think this is a starter for you (or others) to modify as you see fit. I don't know the software well enough to give a definitive script. I've created this based on my own setup which is from a clean Raspberry Pi Zero 2 W. There is quite a bit involved with setting up and a lot of docs to read through so hopefully this makes it easier.
Even if this is not used it would be very nice to have a working scratch folder that is ignored. I don't want to risk checking in this directory. Yes, renaming to If I do this on my own fork and then branch and PR to the main repo, the entry will come across. It's just easier if it's in the main repo.
Yes, removed that.
Yes, I agree that's confusing. I've used:
This should run the pip command as
Right! Have changed this to wait for the
These files do get the application installed as is even if they are wrong. Can this be left for now and updated later? |
Thank you for your comment. |
fix small typo temp/ --> tmp/
Hi,
Sorry, I meant to say |
|
23aea80
to
b51f7fa
Compare
Hi, have you looked at .gitignore? This directory is already used to contain programs and scripts that you don't want to publish, as you point out. Think of it as I do not want more directories with duplicate roles. |
OK, fair enough. I will remove. |
Sorry, I don't want to create something like the I will delete |
Yes, sure. I have been receiving an error that _exec() is not a function. Apparently this has been renamed to exec(). That upgrade fixes that (in my environment) but if it's not right then yes, please remove. |
Yes, qasync was forced to modify gui_pyqt.py when it moved up from that version, so if you put in the old qasync before the modification, as in this case, it will naturally not start. Fixed versions have advantages and disadvantages, but I believe it will work for the worse in this project. I think it would be better to run the installation script you provided, which is what we intend to do. Please wait a little longer. |
Hi, @jt-helsinki I have made significant modifications to initial_setup.sh. There are still a few parts missing.
|
@hishizuka This looks good and is a nice improvement. I ran the script on a fresh Raspian install on pi zereo 2 WH. Selected "y" for all components to install. Would it be worth reducing the verbosity of the warnings? These look like errors but not really. This might throw the users off. I don't think it shoud be swallow the messages but maybe there is a switch to change the log level? It's not a big deal but might be worth considering. The script ran nicely until the end where the error was 🔧 Starting pizero_bikecomputer.py in headless mode for verification... |
@hishizuka Yes, this fix worked on my mac. Very nice. It would be nice to prompt for the virutalenv at the start of the script so that there is no user interaction half way through. This way, the script can be left to run and I can come back after it's finished. |
There are still a few parts missing. "❌" needs to be corrected. Do you have an idea?
|
Possibly have a switch on the command line to --quit-on-start? OR --write-state-on-startup? This way you could kill the process and still have the files? I think the reboot won't be possible unless you have a Virtual machine. For the trial run, if the script is already starting the app, that might be enough? |
Hi, @jt-helsinki Like homebrew, it can be installed with a single command after ssh login. It can also be re-run later. Now all I need to do is to incorporate it into /boot/firstrun.sh and it will be perfect. Any good ideas on how to make this work? Stopping and restarting the program at the end of the script has not yet been improved. |
I've just installed on a fresh system (new Raspian image) and it's a very smooth running script. Startup after install was no issue. Some ideas for possible solutions:
Option 5 is probably best as it seems this is already in the code base and would require minimal changes. Is this workable? |
Hi @jt-helsinki , Can the added png files be deleted? Also, can the changes in reqs/full.txt be deleted? If there is a time delay, I will import directly into master. |
I have merged. |
@hishizuka sorry for the delay coming back on this. I have been on a small break. :) I tried doing this against the instructions. This is working very nicely. I think the message "✅ pizero_bikecomputer initial setup completed successfully! Please reboot." is a good way to solve the problem of the initial startup however the config files are not written. Not sure if this is really a big issue. The "install_service.sh" script is missing from the docs. I suspect this is run after the inital reboot? Should I add instructions for this in? In another PR, would it be worth trying to support Raspian without the desktop environment? This would reduce the OS footprint and there is a lot of stuff which gets updated which is not needed. |
Hi @jt-helsinki Edit: The Raspberry Pi installation documentation will come much later, as there are many details to be added. |
When setting up the PiZero some of the documetation was a little out of date or unclear.