Skip to content
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

Open
JackySnake opened this issue Sep 9, 2019 · 6 comments
Open

Comments

@JackySnake
Copy link

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.

@NicolaiRuckel
Copy link

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.

@Evidlo
Copy link
Owner

Evidlo commented Mar 13, 2020

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.

@jonathanmmm
Copy link

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 :)

@Evidlo
Copy link
Owner

Evidlo commented Nov 3, 2020

Relevant: syncthing/syncthing#5601

@martin-braun
Copy link

I'm also interested in this.

@leoherzog
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants