UPLOAD FILES TO REMARKABLE FROM CONSOLE VIA CURL
2024 March 20 | CommentsToday I wanted to upload the SCP Foundation files to my reMarkable for an upcoming vacation. Unfortunately, accessing the web interface of the device at http://10.11.99.1/ was more than problematic to the point of breaking repeatedly, if it was accessible using stupid ass NetworkManager and Firefox relying on its broken information at all.
So once I caught a useful network trace I put together a small bash script that will actually upload the files from the CLI with no issues:
# Upload files to remarkable
function upload_to_remarkable ()
{
for x in "${@}"; do
if ! ping -c 1 10.11.99.1 > /dev/null; then
echo "Can't reach remarkable!" >&2
return;
fi
curl 'http://10.11.99.1/upload' -X POST --header "Content-Type:multipart/form-data" -F name=file -F file="@${x};type=application/epub+zip" -F filename="${x}" -v
done
}
$ upload_to_remarkable *.epub
EOF
Category: blog
Tags: Linux CLI cURL reMarkable
Comments
You can use a Mastodon account to comment on this article by replying to the associated Mastodon toot.