Jeffs OctoPrint and Cnc.Js - LCD question

First, i didn’t see a category in software/firmware for CNC.js or Octoprint…so general it is

Love the cnc.js and octoprint image that Jeff created. I am wondering if anyone out there has added the 7 inch pi lcd to it? I thought about running the touch ui in octo like i do for my ender 3 but the interface for tinyweb looks more cnc friendly.
tinyweb

In my intial testing i get the node.js error EADDRINUSE 0.0.0.0:8000
when trying to install it per these instructions: https://github.com/cncjs/cncjs-pendant-tinyweb

I also must add that i am a windows weenie and only a hack in linux. with that said, any advice?

Thanks

The key is to put the tinyweb code somewhere and then edit the command line that already runs cnc.js to point to your tinyweb.

cnc -m /pendant:/home/tinyweb/src

I am doing this from memory, but the location of the default command is in /etc/defaults/cncjs. If you are happy hacking around, that is where you would put the - m part. Then, you would need to reboot, or restart the cnc.js service.

A while bunch of typos can make things not work, so be ready to troubleshoot or reflash it if it gets borked.

Jeff, you were correct. cncjs -m /tinyweb:/home/tinyweb/src needed to be run once you killed cncjs, which natively runs on 8000. my physical setup is a bit bulky but seemed to cut with no problem. I used a single power source and a buck converter for the pi+lcd.

1 Like

Very cool.

You can change the arguments the default cnc.js uses. It is in /etc/default/cncjs.

There is a line like this:

DAEMON_ARGS="--host=$HOST --port=$PORT"

Which you can add -m /tinyweb:/home/tinyweb/src to.

It would then be:

DAEMON_ARGS="--host=$HOST --port=$PORT -m /tinyweb:/home/tinyweb/src"

good to know. is used the defaults and added the “service” to pm2 for cnc.js tinyweb
i then added the “application” (next is all by memory) chromium full screen http://127.0.0.1:8000/tinyweb to the startup location. i told you windows weenie! all i know it works.