paperless-ng
paperless-ng copied to clipboard
[Other] Abuse the Task-Scheduler to run generic scripts
Hi, first of all, I´m not familiar with Python but I am willing to learn :) I´ve got following request: Is it possible to "abuse" the task scheduler inside of paperless-ng to run/execute a script ?
Background story: The trend seems to be that more and more providers/shops etc. are shifting from sending a invoice/receipt etc. directly via mail, to just sending a notification that a new document is available and I need to login to the portal to download it. By now, I´ve got several PowerShell scripts which are doing this task: Login, Look for new Documents and if available download them to the consume folder. While this works, it would be a way more elegant to configure and manage this directly via the paperless-ng interface. I hope I´ve explained it reasonably.
As far as I seen paperless uses DjangoQ which is just a task scheduler. You can use its documentation to find out how to add a task and just write it as a python code.