I don't think mktodo has any additional arguments beyond the name of the note. If you want to automate things like that then I suspect you really want to be using the data API instead
Worth noting that this is not the up to date version of the app which is v2.6.2, the maintainer of that package doesn't seem to have kept it updated (it is not an official release, the only official terminal release is via npm).
There is no irc channel but there is a discord server, however the forums are considerably more active.
Or maybe even can you please provide an mktodo --json command which expects a JSON todo as its parameter (similarly to the one seen above)? Thank you in advance.
import os
import time
from joppy.api import Api
# Get the token from the environment or hardcode it here.
# https://joplinapp.org/api/references/rest_api/#authorisation
api = Api(token=os.getenv("API_TOKEN"))
# Add a notebook.
notebook_id = api.add_notebook(title="Example notebook")
# Add a todo in the previously created notebook.
note_id = api.add_note(
title="Example todo",
body="Example content",
parent_id=notebook_id,
is_todo=1,
)
# Modify the due date.
api.modify_note(
id_=note_id,
todo_due=int((time.time() + 60) * 1000),
)
Use curl, like it's done in the API documentation examples. You would need to figure out how to handle the returned json (maybe this is an option). The pattern and arguments should be analog to the python script:
Create a notebook or find the notebook where you want to store the todos