Some scripts I use to optimize my workflow in Joplin.
hotfolder.py
Monitor a folder an add the Files to Joplin as a Note.
Images and text (Mimetype text/plain ) are inserted directly into the note, other Files are added as attachment. For PDF Files a preview of the first page can be generated.
add_pdf_previews.py
Search for notes with a PDF attachment an create a preview of the first PDF Site and add this Preview to Note.
It seems very nice, can you tell what is needed to use these scripts ?
I'm running Joplin on a OS X
I have python installed (pip3) and PymyPDF-1.18.0
I get "no module named click" error when trying todo_overview.py
Thank you for your help
Hello Jack,
thank you for your answer.
I run python todo_overview.py --title "Open ToDo's" --as-todo --tag "importend"
into my Linux command line, but I got the following message : File "todo_overview.py", line 6, in <module> from joplin import joplinapi ImportError: No module named joplin
I've the folder joplin and inside 2 files tools and api.
Do you have any idea of what is not well done on my side ?
To be sure that I run python 3 : python3 todo_overview.py --title "Open ToDo's" --as-todo --tag "importend"
and I got : Traceback (most recent call last): File "todo_overview.py", line 6, in <module> from joplin import joplinapi File "/home/.../Joplin/Joplin-Tools-master/joplin/joplinapi.py", line 8, in <module> from joplin import joplintools File "/home/bva/.../Joplin/Joplin-Tools-master/joplin/joplintools.py", line 1, in <module> import fitz ModuleNotFoundError: No module named 'fitz'
I run command pip3 install -r requirements.txt.
I get a error message : joplin/joplintools.py", line 1, in <module> import fitz ModuleNotFoundError: No module named 'fitz' So I install manually fitz pip3 install fitz`
When I run again python3 todo_overview.py --title "Open ToDo's" --as-todo --tag "importend"
I got this message :
Traceback (most recent call last): File "todo_overview.py", line 6, in <module> from joplin import joplinapi File "/home/xxx/Joplin/Joplin-Tools-master/joplin/joplinapi.py", line 8, in <module> from joplin import joplintools File "/home/xxx/Joplin/Joplin-Tools-master/joplin/joplintools.py", line 1, in <module> import fitz File "/home/xxx/.local/lib/python3.7/site-packages/fitz/__init__.py", line 1, in <module> from frontend import * ModuleNotFoundError: No module named 'frontend'
So I tried following pypi.org
pip install frontend
but I got this message :
Collecting frontend Could not find a version that satisfies the requirement frontend (from versions: ) No matching distribution found for frontend
As I'm not very confortable with python, what could be your suggestion ?
Thank you for any help.