remarkable_syncthing icon indicating copy to clipboard operation
remarkable_syncthing copied to clipboard

Is that possible to using this to update pdfs to the remarkable?

Open JackySnake opened this issue 5 years ago • 7 comments

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.

JackySnake avatar Sep 09 '19 14:09 JackySnake

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.

NicolaiRuckel avatar Mar 05 '20 09:03 NicolaiRuckel

You could write a script that generates the metadata file automatically. E.g.

re_pdfgen.sh

#!/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

re_pdfgen.sh /path/to/input.pdf /path/to/syncthing/xochitl

Then reboot the device so xochitl rescans for new metadata files.

Evidlo avatar Mar 13 '20 19:03 Evidlo

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. As an idea :)

jonathanmmm avatar May 20 '20 07:05 jonathanmmm

Relevant: https://github.com/syncthing/syncthing/issues/5601

Evidlo avatar Nov 03 '20 09:11 Evidlo

I'm also interested in this.

martin-braun avatar Aug 13 '22 13:08 martin-braun

Until this is possible, you may way to consider programmatically interacting with reMarkable's Cloud.

https://github.com/splitbrain/ReMarkableAPI

https://github.com/reHackable/awesome-reMarkable#cloud-api

leoherzog avatar Aug 22 '22 16:08 leoherzog