Open CrNMGuy opened 1 year ago
Here is how PSU Control seems to check for upload (don't knowing python & octoprint context) https://github.com/kantlivelong/OctoPrint-PSUControl/blob/c0490c8c30388a649cc6e87525241dfe3b5923ca/octoprint_psucontrol/__init__.py#L586
flask.request.path.startswith('/api/files/') and
flask.request.method == 'POST' and
flask.request.values.get('print', 'false') in valid_boolean_trues):
About Power ON on print event : Still mentionning PSU Control as it upgraded a lot my print experience : When powering ON, plugin seems to activate a Connect to printer and wait while not connected. my config : Post on delay : 5sec
if self.config['connectOnPowerOn'] and self._printer.is_closed_or_error():
self._printer.connect()
time.sleep(0.1)
Ok. Now I understand.
This is Upload
event having print
option in its payload, @CrNMGuy
PSU Control provide a useful feature that is powering up the printer on a API event which is "Print" Would like this feature :)