- Notifications
You must be signed in to change notification settings - Fork4
Simple Raspberry Pi GPIO Pendant control for CNCjs
License
NotificationsYou must be signed in to change notification settings
cncjs/cncjs-pendant-raspi-gpio
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Simple Raspberry Pi GPIO Pendant control for CNCjs.
npm install cncjs-pendant-raspi-gpio
sudo npm install -g cncjs-pendant-raspi-gpio@latest --unsafe-perm --build-from-source
# Clone Repositorycd ~/#wget https://github.com/cncjs/cncjs-pendant-raspi-gpio/archive/master.zip#unzip master.zipgit clone https://github.com/cncjs/cncjs-pendant-raspi-gpio.gitcd cncjs-pendant-raspi-gpio*npm install
Runbin/cncjs-pendant-raspi-gpio
to start. Pass --help tocncjs-pendant-raspi-gpio
for more options.
Eamples:
bin/cncjs-pendant-keyboard --helpnode bin/cncjs-pendant-raspi-gpio --port /dev/ttyUSB0
# Install PM2sudo npm install -g pm2# Setup PM2 Startup Script# sudo pm2 startup # To Start PM2 as rootpm2 startup # To start PM2 as pi / current user #[PM2] You have to run this command as root. Execute the following command: sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi# Start CNCjs (on port 8000, /w Tinyweb mount point) with PM2## pm2 start ~/.cncjs/cncjs-pendant-raspi-gpio/bin/cncjs-pendant-raspi-gpio -- --port /dev/ttyUSB0pm2 start $(which cncjs-pendant-raspi-gpio) -- --port /dev/ttyUSB0# Set current running apps to startuppm2 save# Get list of PM2 processespm2 list
- G-Code: M9
- G-Code: M8
- G-Code: M7
- G-Code: $X "Unlock"
- G-Code: $X "Unlock"
- G-Code: $SLP "Sleep"
- G-Code: $SLP "Sleep"
- G-Code: $H "Home"
- 3 Sec: sudo poweroff "Shutdown"
See thefivdi/onoff Raspberry Pi GPIO NodeJS repository for more infomation.
About
Simple Raspberry Pi GPIO Pendant control for CNCjs
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.