ddvk / rmfakecloud

host your own cloud for the remarkable
GNU Affero General Public License v3.0
751 stars 61 forks source link

localfs not working #292

Closed abehidek closed 1 week ago

abehidek commented 6 months ago

First let me thank for this awesome project.

After setting up a docker compose on server and connecting my remarkable 2 device to it manage to properly configure it using the .userprofile file.

However I couldn't managed to get localfs provider working under integrations, after investigating a while, I see that the remarkable device can hit /integrations/v1, but it doesn't show the integration on the menu.

Here's the .userprofile settings:

name: "abehidek"
password: "password"
isadmin: true
integrations:
  - provider: localfs
    id: fdedf078-9d76-4d33-a978-7671e3eba302
    name: hako
    path: /media # points to a volume I mounted on docker container

rmfakecloud version: 0.0.17 remarkable version: 2.15.1.1189

Eeems commented 6 months ago

Have you reviewed the logs to see if it has an error or not?

abehidek commented 6 months ago

Yes, I could not find any error. I tried changing the LOGLEVEL environment var to debug but it shows nothing.

Eeems commented 6 months ago

have you tried hitting /integrations/v1 manually to see what integrations are listed?

abehidek commented 6 months ago

It says I should pass an Auth header, which endpoint should I hit to obtain it?

Eeems commented 6 months ago

You can grab the token from your rM's configuration file (/home/root/.config/remarkable/xochitl.conf), as for the format of the header, that I'm not sure, you can probably take a look at https://github.com/juruen/rmapi to see how it's done.

abehidek commented 1 week ago

Forgot to add here, but I recently upgraded to latest version (both rm2 device and rmfakecloud) and it's working fine now