Mirror the parameter(s) of GCode commands M106, M107 to scripts on the OctoPrint host
Mirror the parameter(s) of GCode commands M106, M107 to scripts on the OctoPrint host Example bash scripts and a test gcode file are in extras
http://plugins.octoprint.org/plugin/FanSpeedMirror/