Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Calibre (& Calibre web?)

    App Wishlist
    10
    43
    1300
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mehdi
      mehdi App Dev @ultraviolet last edited by

      @ultraviolet

      On the desktop app side, I cannot find an option to connect its library to a remote server 😕 I don't think it's possible.

      1 Reply Last reply Reply Quote 0
      • T
        thetomester13 App Dev @ultraviolet last edited by

        @ultraviolet Ok, I'm starting to find my way here.
        The admin:admin123 credentials worked great! Eventually it'd be cool to tie into Cloudron's LDAP, but I know I'm asking for a lot 🙂
        Also, it turns out that Calibre-web offers its own OPDS catalog at calibre.cloudron.com/opds, so I was able to connect my e-reader to that endpoint and download a book, meaning that exposing the real Calibre's endpoint to the www might not be necessary after all!
        Very good work, thanks again! I'll be migrating my exiting Calibre library over during the next few days!

        ultraviolet 1 Reply Last reply Reply Quote 3
        • scooke
          scooke @ultraviolet last edited by

          @ultraviolet This is super! I thought I saw a few lines of how to clone, build and install this app. Was it here on this forum, or was it in the README.md at Github? Could you post those again please?

          Do you ever get teased about Star Wars or trainspotting or riding a motorbike across Central Asia (if you are the own of the gh repository)?

          A life lived in fear is a life half-lived

          1 Reply Last reply Reply Quote 0
          • ultraviolet
            ultraviolet App Dev @thetomester13 last edited by

            @thetomester13 awesome glad it is of use to you I will look at the LDAP integration soon just finishing off a few other packages just now.

            @scooke you will need to install the cloudron cli there is stuff in the docs telling you how. Login to your instance using cloudron login then cloudron build then cloudron install. You will docker either installed locally or using the build service app from the store. Also need a repo on docker hub . Failing that you can use my build which I can get the tag for you.

            Also how do you know I am not the one in those movies? 😊

            1 Reply Last reply Reply Quote 3
            • girish
              girish Staff last edited by

              @thetomester13 @ultraviolet So is the conclusion that we don't actually need the calibre server and that calibre-web can be used standalone? @mehdi 's comment led me to believe that it's not possible to connect but I think @thetomester13 is saying this is possible.

              T 1 Reply Last reply Reply Quote 0
              • T
                thetomester13 App Dev @girish last edited by

                @girish I may not have come across well (I tend to do that 😅). As far as I know, Calibre-web uses the Calibre application as a database/backend. I thought that Calibre proper was also the only way to get an OPDS catalog available to e-readers, but it turns out that Calibre-web offers this as well. What this means is that Calibre doesn't need to be accessible to the www, but still needs to be part of the package as that is the actual book database behind Calibre-web. Hope that helps!

                1 Reply Last reply Reply Quote 1
                • ultraviolet
                  ultraviolet App Dev last edited by

                  Calibre web operates completely standalone. It just uses the calibre database to store and order the books.

                  1 Reply Last reply Reply Quote 2
                  • girish
                    girish Staff last edited by

                    @ultraviolet Do you think you can add a license to https://github.com/euanmcgregor/calibre-web-cloudron as well? Thanks

                    ultraviolet 1 Reply Last reply Reply Quote 1
                    • ultraviolet
                      ultraviolet App Dev @girish last edited by

                      @girish all done!

                      1 Reply Last reply Reply Quote 2
                      • yusf
                        yusf last edited by

                        Oh! Gonna take it for a spin.

                        1 Reply Last reply Reply Quote 2
                        • yusf
                          yusf last edited by

                          Works pretty good! LDAP integration will ace it! 🎴

                          1 Reply Last reply Reply Quote 2
                          • ei8fdb
                            ei8fdb last edited by

                            I've read this thread but wanted to ask - is there a procedure to follow for this installation? I'd like to try it.

                            1 Reply Last reply Reply Quote 1
                            • girish
                              girish Staff last edited by

                              @ultraviolet I tried to move the app package forward. Can you tell me how those database files are created (and why are they needed?). Meaning the files here - https://github.com/euanmcgregor/calibre-web-cloudron/tree/master/Library

                              ultraviolet 1 Reply Last reply Reply Quote 1
                              • girish
                                girish Staff last edited by

                                @ei8fdb I put a small tutorial here - https://forum.cloudron.io/topic/3102/building-custom-packages . Feel free to ask questions there.

                                1 Reply Last reply Reply Quote 2
                                • ultraviolet
                                  ultraviolet App Dev @girish last edited by

                                  @girish Yes they are needed that is the base database for calibre, they are copied to the app/data on build (if I recall correctly)

                                  1 Reply Last reply Reply Quote 0
                                  • girish
                                    girish Staff last edited by

                                    @ultraviolet I see but how did you generate them or create them? Are they provided by the upstream project?

                                    ultraviolet 1 Reply Last reply Reply Quote 0
                                    • ultraviolet
                                      ultraviolet App Dev @girish last edited by

                                      @girish ah with you. No it needs to be generated by the calibre project it is an empty database created that the web app uses to connect to. I created it as I would then need to install calibre into the app container then use the api to generate the empty db then remove calibre. Seemed a waste of time so I created a blank one for the purpose of ease.

                                      1 Reply Last reply Reply Quote 3
                                      • girish
                                        girish Staff last edited by

                                        Got to hack on the app this weekend. Still have to figure how to automate the settings but I wanted to ask how this integrates with mobile apps. It seems to me that this is done via the calibre content server (and not calibre web). I think it would not be very useful if we just had calibre web but no way to access the books from the mobile apps. I think what this means is that I have to set up the app so that the content server is also running (and authenticates via LDAP or something).

                                        Am I correct about this?

                                        jdaviescoates 1 Reply Last reply Reply Quote 0
                                        • jdaviescoates
                                          jdaviescoates @girish last edited by

                                          @girish I don't know, but I'd still find it useful even if I couldn't use mobile apps (my phone is full up and has no space for any more apps anyway - it's so annoying I can't delete all the Google apps I never user, once this phone dies I'm definitely going to get a 2nd hand phone that will run https://e.foundation/ or https://lineageos.org/ )

                                          I use Cloudron with Gandi & Hetzner

                                          1 Reply Last reply Reply Quote 1
                                          • T
                                            thetomester13 App Dev last edited by

                                            @girish the combination of Calibre and Calibre-web is quite tricky. That being said, there are plenty of apps that can read from Calibre-web's OPDS server. I personally use MapleRead SE on iOS, but any app that supports OPDS can plug into Calibre-web's server.

                                            Also, I could be wrong here, but I believe Calibre doesn't support LDAP whereas Calibre-web does.

                                            1 Reply Last reply Reply Quote 1
                                            • girish
                                              girish Staff last edited by

                                              @thetomester13 said in Calibre (& Calibre web?):

                                              OPDS

                                              Ah, thanks for this note. This is what I was missing. I was wondering how to get books out of the app for mobile use and this seems to be it.

                                              @jdaviescoates I also managed to figure out how to automate the LDAP parts, so I will get it published soonish.

                                              jdaviescoates 1 Reply Last reply Reply Quote 3
                                              • jdaviescoates
                                                jdaviescoates @girish last edited by

                                                @girish said in Calibre (& Calibre web?):

                                                @jdaviescoates I also managed to figure out how to automate the LDAP parts, so I will get it published soonish.

                                                Woohoo! 😄

                                                I use Cloudron with Gandi & Hetzner

                                                1 Reply Last reply Reply Quote 0
                                                • mehdi
                                                  mehdi App Dev last edited by

                                                  So, anyone know if the desktop apps can synchronize with the web app ? I have a quite large Calibre library locally, I'd appreciate uploading it and keeping it in sync

                                                  T 1 Reply Last reply Reply Quote 1
                                                  • T
                                                    thetomester13 App Dev @mehdi last edited by

                                                    @mehdi Yes, Calibre is the 'backend' for Calibre-web. If you manage to upload your local Calibre to this Calibre, then Calibre-web should have it all synced up for you. I managed to do this upgrade before (with a relatively small library). I wonder if I can dig up the instructions somewhere...

                                                    1 Reply Last reply Reply Quote 1
                                                    • jdaviescoates
                                                      jdaviescoates last edited by

                                                      @mehdi from a quick search around it also seems one possible option (which I think I might try once we've got Calibre-web in Cloudron) is to store your Calibre library in a Nextcloud folder and then connect/ sync both the desktop Calibre and Calibre-web to that.

                                                      I use Cloudron with Gandi & Hetzner

                                                      1 Reply Last reply Reply Quote 0
                                                      • girish
                                                        girish Staff last edited by

                                                        Alright, almost there. There's a few bugs I have to report upstream and learn some python along the way to get those fixed.

                                                        585435e5-45cf-4c88-97b2-712d61451ee8-image.png

                                                        1 Reply Last reply Reply Quote 7
                                                        • robi
                                                          robi last edited by

                                                          I hope there's a dark mode!

                                                          Life of Gratitude.
                                                          Life of Advanced Technology

                                                          yusf 1 Reply Last reply Reply Quote 0
                                                          • girish
                                                            girish Staff last edited by

                                                            I have opened https://github.com/janeczku/calibre-web/issues/1656 for a start.

                                                            1 Reply Last reply Reply Quote 3
                                                            • girish
                                                              girish Staff last edited by

                                                              I have pushed this to unstable now. Still some work to be done, hopefully should get done next week.

                                                              T 1 Reply Last reply Reply Quote 4
                                                              • T
                                                                thetomester13 App Dev @girish last edited by

                                                                @girish 👏 thanks! This is definitely something I've been wanting for a while. I'll play around with this soon and try and post instructions on migrating from a manual installation (@ultraviolet 's package) to this one.

                                                                girish 1 Reply Last reply Reply Quote 2
                                                                • girish
                                                                  girish Staff @thetomester13 last edited by

                                                                  @thetomester13 yes, I want to move in all my books as well. The app itself works well , just the integration points need to be ironed out. Also, let me know if the OPDS works for you.

                                                                  T 1 Reply Last reply Reply Quote 2
                                                                  • T
                                                                    thetomester13 App Dev @girish last edited by

                                                                    @girish Ok, got it up and running! I'm not seeing LDAP working, I'm only able to logon using the admin/admin123 credentials, but I know you mentioned this as an issue. I am able to get the OPDS link to work though. I'm using the MapleRead SE iOS app, and the link should look like https://calibre.my.cloudron/opds.

                                                                    In the way of migrating things over from a manual instance to this instance:

                                                                    1. I went to the Terminal of the old instance and hit 'Download' and downloaded the /app/data/Library directory
                                                                    2. In your new instance, go to the File Manager. Upload this Library folder. Change permissions to the folder from 'root' to 'cloudron'.
                                                                    3. In your new Calibre instance, go to the 'Admin' view page. Under 'Basic Configuration' => 'Library Configuration' put /app/data/Library and hit 'save'.
                                                                    4. Back in the Admin view page, hit 'Reconnect to Calibre DB'.
                                                                    5. If you go to your Calibre-web home you should now see your library!
                                                                    1 Reply Last reply Reply Quote 2
                                                                    • yusf
                                                                      yusf @robi last edited by

                                                                      @robi There's this caliBlur thing, but I wouldn't necessarily trust its longevity.

                                                                      1 Reply Last reply Reply Quote 1
                                                                      • First post
                                                                        Last post
                                                                      Powered by NodeBB