-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is that possible to using this to update pdfs to the remarkable? #1
Comments
I tried this yesterday and I don't think it's possible. The ReMarkable creates it's own metadata file and renames the pdf file. If you just sync it with Syncthing there will be no metadata file and therefore the ReMarkable won't show the file, unfortunately. |
Unfortunately just copying the PDF to the device is not enough. You have to generate extra files such as If any reMarkable developers ever see this, it would make the development community's lives a lot simpler if xochitl looked for new PDFs in a specific folder and imported the same way that the web interface does. Until then, you could write a script that generates the metadata file automatically. E.g.
#!/bin/bash
set -e
if [[ $# != 2 ]]
then
echo "Expected 2 arguments: INPUT.PDF OUTPUT_DIR"
exit
fi
uuid=$(uuidgen)
cp $1 $2/${uuid}.pdf
cat << EOF > $2/${uuid}.metadata
{
"deleted": false,
"lastModified": "$(date +%s000)",
"metadatamodified": true,
"modified": true,
"parent": "",
"pinned": false,
"synced": false,
"type": "DocumentType",
"version": 0,
"visibleName": "$(basename $1)"
}
EOF
echo "Created $2/${uuid}.pdf"
echo "Created $2/${uuid}.metadata" Then you would call it like so
Then reboot the device so xochitl rescans for new metadata files. |
Great idea, is it possible to combine this somehow with syncthings API so that everytime a change accours the file system of the reMarkable is refreshed or forced to rescan the specific folder? That would make tjis automatic and completely replace reMarkables Cloud. Maybe other API projects can help there. |
Relevant: syncthing/syncthing#5601 |
I'm also interested in this. |
Until this is possible, you may way to consider programmatically interacting with reMarkable's Cloud. |
If you guys want reMarkable devs to see this, consider submitting it to their wishlist with the title |
Thank you for your excellent job!
I want to use this to manage my books and notes. But I still do not figure out how to using the syncthing to update the pdfs to the remarkable. Could you teach me how to do this?
Thank you again.
The text was updated successfully, but these errors were encountered: