ebook Server

ebook Server

Postby Diejeitor123 » Thu Sep 16, 2021 8:27 am

Hello, it is possible to install a server to access my ebooks? Something like Calibre OPDS or UbooQuity.
Diejeitor123
Donator VIP
Donator VIP
 
Posts: 48
Joined: Wed Apr 29, 2015 10:30 pm

Re: ebook Server

Postby fvdw » Thu Sep 16, 2021 5:44 pm

What would be the benefit of that? :scratch
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: ebook Server

Postby Diejeitor123 » Thu Sep 16, 2021 7:14 pm

Its like a Plex of books, you can read them from any device.
Diejeitor123
Donator VIP
Donator VIP
 
Posts: 48
Joined: Wed Apr 29, 2015 10:30 pm

Re: ebook Server

Postby fvdw » Thu Sep 16, 2021 8:34 pm

In principle it would be possible, but there are a lot dependencies needed by the programs you listed currently not available in our firmware
I will look if there is a server that could fit with our firmware however not on short notice
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: ebook Server

Postby Jocko » Fri Sep 17, 2021 6:47 am

Hi

Maybe some useful information.

This feature is mainly a php development running on a web server.
Currently the firmware should allow to do it without additional change, as we have a php/apache server and also mysql add-on.

So we just have to do a similar way as WordPress like it is described in this topic : viewtopic.php?f=26&t=3502

I think this page is also useful : https://www.phpclasses.org/blog/post/1038-How-to-Create-a-PHP-Ebook-Library-Manager-for-Handling-Collections-of-Ebooks-on-the-Web.html
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: ebook Server

Postby Diejeitor123 » Sat Sep 18, 2021 11:55 am

fvdw wrote:In principle it would be possible, but there are a lot dependencies needed by the programs you listed currently not available in our firmware
I will look if there is a server that could fit with our firmware however not on short notice



Thanks very much
Diejeitor123
Donator VIP
Donator VIP
 
Posts: 48
Joined: Wed Apr 29, 2015 10:30 pm

Re: ebook Server

Postby fvdw » Sat Sep 18, 2021 7:07 pm

Jocko wrote:Hi

Maybe some useful information.

This feature is mainly a php development running on a web server.
Currently the firmware should allow to do it without additional change, as we have a php/apache server and also mysql add-on.

So we just have to do a similar way as WordPress like it is described in this topic : viewtopic.php?f=26&t=3502

I think this page is also useful : https://www.phpclasses.org/blog/post/1038-How-to-Create-a-PHP-Ebook-Library-Manager-for-Handling-Collections-of-Ebooks-on-the-Web.html

Oke that seems to be a nice alternative , thx Jocko
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: ebook Server

Postby fvdw » Wed Sep 29, 2021 8:58 pm

this week I made some trials, I got the calibre server working (version 1.48.0).
Need to clean up the compiles but this might be what you are looking for however the addon is huge

To test what are the commands needed to set it up?

Code: Select all
root@fvdwsl-sg-pc:/share/1000/fvdw/calibre-1.48.0 # calibre-server --help
Usage: calibre-server [options]

Start the calibre content server. The calibre content server
exposes your calibre library over the internet. The default interface
allows you to browse you calibre library by categories. You can also
access an interface optimized for mobile browsers at /mobile and an
OPDS based interface for use with reading applications at /opds.

The OPDS interface is advertised via BonJour automatically.


Whenever you pass arguments to calibre-server that have spaces in them, enclose the arguments in quotation marks

Options:
  --version             show program's version number and exit

  -h, --help            show this help message and exit

  -p PORT, --port=PORT  The port on which to listen. Default is 8080

  -t TIMEOUT, --timeout=TIMEOUT
                        The server timeout in seconds. Default is 120

  --thread-pool=THREAD_POOL
                        The max number of worker threads to use. Default is 30

  --password=PASSWORD   Set a password to restrict access. By default access
                        is unrestricted.

  --username=USERNAME   Username for access. By default, it is: 'calibre'

  --develop             Development mode. Server automatically restarts on
                        file changes and serves code files (html, css, js)
                        from the file system instead of calibre's resource
                        system.

  --max-cover=MAX_COVER
                        The maximum size for displayed covers. Default is
                        '600x800'.

  --max-opds-items=MAX_OPDS_ITEMS
                        The maximum number of matches to return per OPDS
                        query. This affects Stanza, WordPlayer, etc.
                        integration.

  --max-opds-ungrouped-items=MAX_OPDS_UNGROUPED_ITEMS
                        Group items in categories such as author/tags by first
                        letter when there are more than this number of items.
                        Default: 100. Set to a large number to disable
                        grouping.

  --url-prefix=URL_PREFIX
                        Prefix to prepend to all URLs. Useful for
                        reverseproxying to this server from Apache/nginx/etc.

  --with-library=WITH_LIBRARY
                        Path to the library folder to serve with the content
                        server

  --pidfile=PIDFILE     Write process PID to the specified file

  --daemonize           Run process in background as a daemon. No effect on
                        windows.

  --restriction=RESTRICTION, --virtual-library=RESTRICTION
                        Specifies a virtual library to be used for this
                        invocation. This option overrides any per-library
                        settings specified in the GUI. For compatibility, if
                        the value is not a virtual library but is a saved
                        search, that saved search is used. Also note that if
                        you do not specify a restriction, the value specified
                        in the GUI (if any) will be used.

  --auto-reload         Auto reload server when source code changes. May not
                        work in all environments.


Created by Kovid Goyal <kovid@kovidgoyal.net>
root@fvdwsl-sg-pc:/share/1000/fvdw/calibre-1.48.0 #


Code: Select all
root@fvdwsl-sg-pc:/share/1000/fvdw/calibre-1.48.0 # calibre-server
No saved library path. Use the --with-library option to specify the path to the library you want to use.
root@fvdwsl-sg-pc:/share/1000/fvdw/calibre-1.48.0 #
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: ebook Server

Postby fvdw » Wed Sep 29, 2021 9:06 pm

this gets the server running, however I cannot list files, maybe need a specific type ??
Code: Select all
root@fvdwsl-sg-pc:/share/1000/fvdw/calibre-1.48.0 # calibre-server
No saved library path. Use the --with-library option to specify the path to the library you want to use.
root@fvdwsl-sg-pc:/share/1000/fvdw/calibre-1.48.0 # calibre-server --with-library=/share/1000/public

server.JPG
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: ebook Server

Postby fvdw » Fri Oct 01, 2021 9:30 pm

I added two free books, seems to work :punk
server2.JPG
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Next

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest