First, some background. I've installed some external cooling fans on my printer. These are 12v fans commonly found in PCs. I have added a hat to my Raspberry Pi to control these fans including variable speed. I want the speed of these fans to mirror the speed of the part cooling fans on the tool head, i.e. follow "M106 Sn" and "M107".
I have installed the "GCode System Commands" plugin, defined some "OCTO" commands, and can successfully control the speed of the fans through the GCode. The last step is modifying the GCode to insert the appropriate OCTO commands whenever there is an "M106 Sn" or "M107" command.
The plugins "CommandSplitter" and "Fan Speed Control" are almost exactly what I need. Since I'm a NOOB when it comes to writing plugins, I'd like to start with these and modify one of them for my needs. I believe AGPLv3 allows me to do this but I need some help with how to do this
First, after I install one of these plugins can I then modify its source code on my system? Where would I find the sources? After modifying them, how do I tell OctoPrint to "compile" or "build" it? How do I "debug" in this environment?