11-12-2008, 11:50 PM | #61 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
11-13-2008, 04:07 AM | #62 |
creator of calibre
Posts: 43,976
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Right now the entries in the stanza feed have URL lihe http://somehostname/path/to/epub/file
For this to work the user has to specify a hostname that his iphone can resolve. I was hoping that instead URLs like /path/to/epub/file would work, in which case the iphone should automatically use whatever IP address the user used to get the feed in the first place as the host. |
Advert | |
|
11-13-2008, 05:19 AM | #63 |
iPhone Rookie
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
|
Hi,
Crazy, thanks for the complements for pdaConverter. Sadly for my router there is no modified I know of. (At least Tomato and DD-WRT don't support it). But in the meantime I was able to mainly solve my network problems. It had to do with a wireless AP I use to connect my Linux XBOX to the network. So basically it works, but the server acts strange and I think I found the problem. I have exactly the same behaviour that tHeFiRsTiDioT described. I cannot ping my PC using the hostname, when I started the server with the command server-calibre --hostname=jakewalk and add http://jakewalk:8080/stanza to stanza's online catalog it doesn't work, but starting the server without any parameter and using the IP for the catalog seems to work: http://192.168.2.79:8080/stanza But when I try to download a book it doesn't work (see attached IMG_0002.jpg). Then I looked at the XML file and it is apparently not correct: <entry> <title>Urteil</title> <id>urn:calibre:7</id> <author><name>Kafka</name></author> <updated>2008-11-13T09:43:51+00:00</updated> <link type="application/epub+zip" href="http://localhost:8080/get/epub/7"/> <link rel="x-stanza-cover-image" type="image/jpeg" href="http://localhost:8080/get/cover/7"/> <link rel="x-stanza-cover-image-thumbnail" type="image/jpeg" href="http://localhost:8080/get/thumb/7"/> <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"><pre></pre></div> </content> </entry> So I tried to manually download the epub file through Stanza's Option "Download Book at URL" (hidden in the settings) and I could succesfully import the file through the URL http://192.168.2.79:8080/get/epub/Das%20Urteil_6.epub (see attached IMG_0003.jpg) That's the prove that the network connection is not part of the problem. I think the solution is simple. Could you please add a server parameter to the calibre-server.exe that allows using the IP-address in the XML-output instead of localhost? That should fix the problem. |
11-13-2008, 07:00 AM | #64 |
Random Reader of Rubbish
Posts: 57
Karma: 10
Join Date: Apr 2007
Device: Dell Axim X50v, Sony PRS 505, HTC Incredible, Pocketbook IQ
|
Jakewalk has posted exactly the same problem I have - wont paste the feed here then.
|
11-13-2008, 08:44 AM | #65 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
Advert | |
|
11-13-2008, 08:49 AM | #66 |
iPhone Rookie
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
|
|
11-13-2008, 09:33 AM | #67 |
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
|
That's what I figured was your issue jakewalk. This all stems from not having your networks setup to support hostnames. If you cannot ping every other network device via its hostname then its not setup correctly. Sure you can get by without having this setup but things like running servers becomes much more problematic when you don't.
This is a large problem domain so ideally if you know someone who understands this stuff maybe talk to them for pointers. Google is also your buddy here. If your still stuck then you'll need to explain how your network is setup i.e. what mechanism you use to provide IP addresses to network devices, how you think your setting up hostnames etc. These days I believe all of the off the shelf routers/access points/firewalls that can serve DHCP can provide a hostname and update a local dns server on the router to handle local network hostname to IP address resolution. P.S. Jake you should be trying "http://192.168.2.79:8080/get/epub/7" from stanza. Use a browser to confirm your URL's. Can you see the book cover image at "http://192.168.2.79:8080/get/cover/7" in safari on your iphone? I'm suprised that using the IP address passed in as the server hostname doesn't work. When you pass in the IP to calibre-server are you saying that you don't see the IP in the XML source if you browse to it? Last edited by RoninTech; 11-13-2008 at 09:43 AM. |
11-13-2008, 10:13 AM | #68 |
iPhone Rookie
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
|
Crazy, I am sure you are right an I will have to investigate that network problem. For the moment I solved the problem by adding my IP to the iPhone's host-file (/etc/hosts). Now it works and that's really cool. Thanks for your support here!
|
11-13-2008, 10:16 AM | #69 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
11-13-2008, 11:21 AM | #70 | |
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:
There's DNS server's and then there's DNS servers. Have a read up on dns caching and dnsmasq. The way it works is that your off the shelf router keeps track of DNS queries it has made and keeps them in a local DNS cache. Whenever it doles out a an IP address and hostname to a machine on the LAN its managing via DHCP it adds an ip/hostname entry to its DNS cache. If you look on the machine that received the IP address and do an ipconfig /all (on windows at least) you'll see that the DNS server address matches the DHCP server address which is your off the shelf router/AP/firewall's IP. What happens is that your PC will query the local "DNS server", the router/AP/firewall just queries its local cache and responds if it gets a hit otherwise it forwards the query to your ISP's full blown dns server. Hope that helps. |
|
11-13-2008, 11:39 AM | #71 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
Once again, I do understand IP and networking. I was a Novell CNE (lapsed) and the IP test is one of the elective exams that I chose and passed. My point is, I was not aware that any home routers actually acted as a true DNS server and where basically just pass thru shells. Also, it seems many home routers just reply to the DHCP request with the ISP DNS server addresses directly rather than have it's own pass thru service. I'm not say I don't believe you that there are some routers that do true DNS services but I have yet to own one. So do you know of specific brands and models that do do this? I know for my router in the stepup web server the DNS page basically only allows you to set specific DNS server IPs or to get the DNS addresses from the ISPs DHCP server and there is no facility to maintain a manual DNS routing table. Thanks, BOb |
|
11-13-2008, 12:51 PM | #72 |
creator of calibre
Posts: 43,976
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jakewalk: You should be able to pass the IP address as --hostname to the server. For example is you use --hostname 2.3.4.5 your links in the feed will look like http://2.3.4.5:8080/get/epub/594
|
11-13-2008, 01:05 PM | #73 |
Feedbooks.com Co-Founder
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Relative paths work fine in Stanza catalog's system.
For the covers I believe that they follow the same rules than Mobipocket with OPF 2.0: http://www.mobipocket.com/dev/articl...over.htm#IDPF2 You might modify the way EPUB are generated based on this. |
11-13-2008, 01:24 PM | #74 |
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
|
Strange. I'll take another look tonight. I basically changed the thumb, cover and epub URL's for a book's entry from:
"http://mydomain.com/ebooks/author/book..." to: "ebooks/author/book..." The first one worked fine when viewed via the online catalog. The second one would not let me see the images or book. |
11-13-2008, 04:10 PM | #75 | |
creator of calibre
Posts: 43,976
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
|
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 |