11-10-2008, 11:14 PM | #31 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
OK, Just tried it on my ipod Touch in Stanza. Getting there slowly but surely as I can now browse the feed. Some issues are that I can't see either of the images, the summary field doesn't wrap on the screen due to the <pre> tag and stanza can't access the books epub file. I looked at the xml being served and here's an example:
Code:
<entry> <title>The Time Machine</title> <id>urn:calibre:8</id> <author><name>H G Wells</name></author> <updated>2008-10-12T23:40:34+00:00</updated> <link type="application/epub+zip" href="http://localhost:8080/get/epub/8"/> <link rel="x-stanza-cover-image" type="image/jpeg" href="http://localhost:8080/get/cover/8"/> <link rel="x-stanza-cover-image-thumbnail" type="image/jpeg" href="http://localhost:8080/get/thumb/8"/> <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"><pre>SUMMARY: H. G. Wells’s sobering, thought-provoking novel is one of the greatest works of science fiction ever created—and as powerful today as when it was written. After inventing a machine that moves through time, the Traveler leaves Victorian London and goes far, far into the future.</pre></div> </content> https://www.mobileread.com/forums/sho...3&postcount=18 The stanza feed generated by calibredb list --output-format=stanza etc. works if I replace all the "http%3A"'s with "http:", add the missing thumbnail link and change the content formatting as mentioned above. Cheers, Crazy |
11-10-2008, 11:31 PM | #32 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Never mind I'm an idiot. Forgot to use the --hostname option to override localhost.
Now the only issue is the formatting of the content section and the stanza output of calibredb list. Cheers, Crazy |
Advert | |
|
11-10-2008, 11:48 PM | #33 |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
|
11-11-2008, 06:28 AM | #34 |
iPhone Rookie
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
|
OK, i can run the server via the calibre-server.exe and access the localhost XML-feed.
Crazy, you wrote you have overridden the localhost variable, but which server did you use? Your personal? I mean I could start with Code:
calibre-server.exe --hostname http://www.google.com Am I right that with 0.4.104 it still isn't possible to transfer the epub-file to my iPhone (without a personal server)? No need to hesitate, but I don't want to miss it when it works. Regards, jakewalk |
11-11-2008, 09:10 AM | #35 | |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Quote:
Calibre now has a built in web server. That's what lets you access it from localhost. The same process works when accessing from places other than localhost. You just have to tell calibre what the real hostname is of the web server and it works great except for the content formatting. Cheers, Crazy |
|
Advert | |
|
11-11-2008, 09:48 AM | #36 |
iPhone Rookie
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
|
Hi Crazy,
sorry to ask again, but I just don't get it: I have a webserver running through Calibre at the port 8080. But how can I access the Calibre server with my iPhone? What is the "real hostname"? Do I have to use the computer's IP? Could you please give me an example how you use the server? Regards, jakewalk |
11-11-2008, 09:58 AM | #37 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
It is just the hostname of the machine you are running calibre on. If you don't have one or know how to find it ("hostname" command works on most windows boxes and linux distros) you should be able to use that machine's IP address. For example if your machine running calibre is called jakewalk you would run this from the command line:
calibre-server.exe --hostname jakewalk Then on your iPod Touch or Iphone you go into Stanza's advanced settings page and set the feed url to be: http://jakewalk:8080/stanza Hope that helps. Cheers, Crazy |
11-11-2008, 01:20 PM | #38 |
iPhone Rookie
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
|
Thanks Crazy, that clarified the configuration. Now I know that I probably have a problem with my network configuration. My PC and the iPhone were at the beginning connected with DHCP activated, but that didn't work with the stanza server. So I assigned static IP addresses. Now it basically works but not completely.
Though that's not specifically a Calibre problem maybe someone has an idea? Regards, jakewalk Last edited by jakewalk; 11-11-2008 at 01:54 PM. Reason: Now I can ping my iPhone |
11-11-2008, 02:29 PM | #39 | |
creator of calibre
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
11-11-2008, 03:16 PM | #40 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Hey Jakewalk,
It just dawned on me where I'd heard your name before. So your jakewalk of pdaconverter fame! Man I still use that program to make ztxt's for my clie! Just wanted to to thank you for that great prog! Gotta hate those intermittent network issues. On some of the wireless AP's they have memory leaks and slowly start flaking out over time. A reboot normally fixes it. You could try that. I've found that the community built router images often are more dependable than the commercial ones. For instance I'm using the tomato firmware on my Linksys AP. Kovid, thanks for chucking the pre tags. Any chance we could get a align="center" added to the content div? Cheers, Crazy |
11-11-2008, 03:29 PM | #41 |
creator of calibre
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
do you need align="center" or will style="text-align:center" work?
|
11-11-2008, 03:55 PM | #42 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
|
11-11-2008, 07:32 PM | #43 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Ok,
Here's the results:
Do you think the extra fields are do-able from within Calibre? Not sure how they could be configured? So here's the XML for photo4's formatting: Code:
<content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml" style="text-align:center">TAGS: science fiction, classics<br />RATING: 5/5<br />SUMMARY: H. G. Wellsâs sobering, thought-provoking novel is one of the greatest works of science fiction ever createdâand as powerful today as when it was written. After inventing a machine that moves through time, the Traveler leaves Victorian London and goes far, far into the future.</div> </content> Crazy P.S. The black marks in the images obscures the URL of my server Last edited by RoninTech; 11-11-2008 at 07:41 PM. |
11-11-2008, 08:44 PM | #44 |
creator of calibre
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Adding the extra fields at the beginning of the comments section is easy enough, can you check if the ★ character &#9733; displays correctly in stanza?
|
11-11-2008, 10:44 PM | #45 | |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Quote:
Code:
★/&#9733;<br /> Crazy |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Covers in Stanza on iPhone/iPod Touch | pietvo | Calibre | 3 | 07-25-2011 05:28 AM |
iPhone Get your Ebooks off your iPhone/Touch Stanza Library | RoninTech | Apple Devices | 15 | 03-25-2010 09:17 AM |
Creating an online Stanza catalog | wdonne | News | 6 | 02-25-2010 03:33 PM |
Still can't generate a Mobi catalog | Sydney's Mom | Library Management | 11 | 02-02-2010 08:55 AM |
Loading Stanza on jailbroken iPhone/iPod Touch? | Robotech_Master | Apple Devices | 1 | 08-12-2009 04:57 PM |