-
Notifications
You must be signed in to change notification settings - Fork 5
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
Script on startup? #12
Comments
1. Yes, it was just in case someone had a 4th access. Not many folks do.
You could certainly remap the buttons to do whatever you would like. In
fact, if you do it in a generic way to make it easy to remap stuff, feel
free to commit it and send a pull request so that we can make it a feature!
2. I do have it launched automatically, but I can't recall exactly what I
did (unfortunately, can't ssh into it at the moment). Do a search for
running scripts on bootup with raspbian. If i recall, I installed it as a
service so I could do "service start blah" and "service stop blah". I'm
guessing this will depend on whether or not you are running systemd or
not. Also, there is always the /etc/rc.local method if that exists in your
distribution.
FG
…On Wed, Feb 15, 2017 at 10:17 AM, HCS-II ***@***.***> wrote:
Thanks for the great script!
I'll be using it on my OxCNC running GRBL and bCNC on a RPi3 with 7"
official LCD.
Two questions:
1- What is the purpose of the A axis? Just to stay in-line with the
Tormach implementation and allow for future expansion? I was thinking of
remapping the three middle buttons to X, Y and Z and use the
previously-assigned X button to Home. Thoughts?
2- I have tried to run the script on startup via init.d but it doesn't
work. Have you launched your script automatically, and if yes, how did you
go about it?
Regards,
Mike
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWKCnvc3ggjQ8p3it5XkIAgcsJrQlcIks5rcyUagaJpZM4MB6zJ>
.
|
Frank, Thanks for the reply. I also want to launch as a service in systemd but my script failed. Probably because it called the When you get a chance, I would appreciate if you could share the startup script file you used. In my testings, shuttleCP didn't crash or cause issues if launched before bCNC, though it reported failed postings when the jog button was used. Once bCNC was executed, it worked correctly. So I don't understand why you've put the following warning in the README file: "For bCNC, make sure that bCNC is running and is connected to the GRBL board. All alarms must be clared and the CNC machine state is reported as "Idle"." Regards, Mike |
Well, unfortunately my Raspbian didn't use systemd. I guess it was an OS
release before they switched over.
FG
Sent from my Android phone
…On Feb 15, 2017 11:35 PM, "HCS-II" ***@***.***> wrote:
Thanks for the reply. I also want to launch as a service in systemd.
When you get a chance, I would appreciate if you could share the script
file you used.
Regards,
Mike
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWKCo7ZHYE0XNgYjze8-hY6HccuvDZ1ks5rc-AZgaJpZM4MB6zJ>
.
|
O.K., I've got it working and here is the recipe. Sorry, I'm new to Github so I don't know yet how to do a pull request :-) First, the
In the ShuttleCP package, you need a file called
With this done, here are the instructions you could add for the user: Autorun the Reference and more details here. We first need to add a unit file that tells Next, the permission on the unit file needs to be set to 644 : Last, we can tell
You can confirm the new service runs by checking it's status: |
Frank, My 15yo son is going to show me how to make a pull request for the above mods. Just standby for later tonight. |
Thanks for the great script!
I'll be using it on my OxCNC running GRBL and bCNC on a RPi3 with 7" official LCD.
Two questions:
1- What is the purpose of the A axis? Just to stay in-line with the Tormach implementation and allow for future expansion? I was thinking of remapping the three middle buttons to X, Y and Z and use the previously-assigned X button to Home. Thoughts?
2- I have tried to run the script on startup via init.d but it doesn't work. Have you launched your script automatically, and if yes, how did you go about it?
Regards,
Mike
The text was updated successfully, but these errors were encountered: