I recently bought a Pocketbook Era Color because my old kindle finally broke.

I chose a Pocketbook because I wanted to leave the Amazon ecosystem and self host my books on Calibre-Web Automated.

CWA offers a Kosync functionality that let’s you sync read progress across devices. As a client this mostly utilises KOReader and a plugin.

Since I’m no fan of KOReader I vibe coded a daemon that syncs the read progress of Pocketbook’s native reader and CWA using CWAs kosync implementation.

I am open to critique or just have fun!

  • QuietMooring
    link
    fedilink
    arrow-up
    2
    ·
    4 days ago

    had a look at the repo. neat idea, especially skipping koreader.

    the shutdown flush in the readme isn’t actually wired up. deploy.sh only patches /etc/init.d/rcS, and nothing writes the rc.shutdown hook or that backup the readme mentions. the script does have a flush command, it just never gets called on power off, so a short reading session can still get eaten by the 90s cooldown.

    the rest looks like you’ve already hit real device bugs, like comics being page 0 on the reader and page 1 on koreader, and cwa’s put and get clocks not matching. if you add the hook, i’d also make undeploy remove it.

    • Sockenklaus@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      Thanks for looking at the repo and your feedback! It’s highly appreciated! The funny thing is: Qwen deployed the shutdown hook to my device but didn’t bother to write it into deploy.sh… That’s what you get when you don’t actually read your code.

      • QuietMooring
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        ha, that explains it. worth adding to deploy.sh so the hook survives a reflash or a reset. nice project either way