I understand there are many tools to do that in linux. For instance I could run “motion” and it would in theory do that, amongst others. I’m just saying since the purpose of CNCJS is to run a CNC mill, and there is a webcam widget, it seems the widget could be a tad more useful. I find time lapses one of the better debugging tools for 3D printing. And while I can’t imagine you can make one (I’m sure someone can prove me wrong) tools like the Spaghetti Detective can watch your time-lapse shots in realtime and using ML detect impending doom for a print and stop it (saved me many a birds nest overnight). Plus for teaching it is cool of course, and for people getting a work piece kind of neat to show the making-of video. I’ve mostly done it with a GoPro and using time lapse. One problem there is you often run out of battery during a 10 hour carve or whatever.
I have a go pro mount for doing that in my Tormach, and the challenge there was flood coolant on the lens. So I created a 3D clip on air-blast attachment that blows the air off the lens from above whenever the coolant pump is active (see video below) using an aquarium air pump (somewhat quiet and good for continuous flow rather than my compressor that runs the ATC and power drawbar would not be happy, plus it could drop the pressure sufficiently doing this such that the ATC or drawbar fail during a tool change. [even worse I had a defective pressure switch on my ATC so support had me bypass it, so it wouldn’t sense an under-pressure - I have to admit I almost always do manual tool changes - with the power draw bar and tool holders it’s such a nothing problem unlike the X-carve where tool changes are like defusing a motion sensitive bomb, one because there is no force needed and 2 even if you bump against the z-column it weighs several hundred pounds and of course is rigidly locked in X-Y since the table moves rather than the z-column like on the x-carve.
Of course using the GoPro turned up another problem which I describe/solve in this video: