I’m using v1pi to control my LR2 and manage the cuts. I’ve been having issues with some fairly large and complex cut files, and have been unable to load them via a web browser, as the CNCjs web interface crashes, disrupting the upload.
The solution for this is to enable a “Watch Directory” and upload the files via SFTP or SCP from my system.
CNCjs supports looking for files in a folder on the system, and you can load them from there through the web interface. You upload the files to this folder using FileZilla or WinSCP or some such and then just select the Watch Directory from within the web interface and load the G-Code.
You can enable the Watch Directory in v1pi by editing the cncjs file located at /etc/default/cncjs using your editor of choice. I am a fan of Nano. Type the command sudo nano /etc/default/cncjs and enter the password when prompted.
Arrow down to the DAEMON_ARGS line, and immediately at the end of $PORT in front of the last double quote, type in --watch-directory /home/pi/watch, and ensure that the double quote is at the end of the line.
Hit Ctrl O, Enter, Ctrl X, Enter, and you’ll be back at the command prompt.
Type mkdir /home/pi/watch and hit enter.
Restart the CNCjs service by typing: sudo systemctl restart cncjs and hitting enter. Enter the password when prompted.