Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 09-11-2019, 03:36 PM   #1
Amon_Re
Connoisseur
Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.
 
Posts: 74
Karma: 14644
Join Date: Sep 2015
Device: Boyue LikeBook Mimas
Koreader > Calibre Wireless Device Connection

Hi,

I've installed Koreader on my Boyue Likebook Mimas and I'm trying to use koreader's wireless connection to Calibre.

I can successfully connect to Calibre from Koreader as long as I don't set a password and send eBooks to the device, but on reconnect Calibre can't see the eBooks I previously transmitted nor sync reading position.

Is this normal behaviour or am I messing something up?
Amon_Re is offline   Reply With Quote
Old 09-11-2019, 06:11 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 9,383
Karma: 15000336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
IIRC, yes, that's normal behavior.

There's a couple of threads and/or issues about this, but your conclusions look sound, from what I can recall.
NiLuJe is offline   Reply With Quote
Advert
Old 10-17-2019, 12:45 PM   #3
Isomorpheus
Junior Member
Isomorpheus began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2019
Device: Kobo Aura HD
Quote:
Originally Posted by NiLuJe View Post
IIRC, yes, that's normal behavior.

There's a couple of threads and/or issues about this, but your conclusions look sound, from what I can recall.
I can't find those related threads or issues. Can you link some?

Is there intention to fix this behavior?
Isomorpheus is offline   Reply With Quote
Old 10-18-2019, 06:41 AM   #4
sherman
Fanatic
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 544
Karma: 1202637
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
Quote:
Originally Posted by Isomorpheus View Post
I can't find those related threads or issues. Can you link some?

Is there intention to fix this behavior?
I am not a Koreader developer at all, but having implemented a Calibre wireless client myself (in fact, it's going through an update at the moment), I can say that the Koreader implements just enough of the protocol to keep Calibre from complaining, and no more. It is a very bare-bones implementation.

In other words, it would take some effort to "fix" it. I have no idea when or if anyone will do so (not a koreader dev, so can't speak for them). I don't know Lua, or the koreader architecture, but if anyone on the team wants to create a more complete implementation, I'm happy to share any of my own learning about the protocol.

As a side-note, I was very grateful for the bare-bones Koreader implementation. It helped me figure out where to start with my own.
sherman is offline   Reply With Quote
Old 10-18-2019, 11:09 AM   #5
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 9,383
Karma: 15000336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Yeah, the developer that came up with it (@chrox) is currently inactive, so I wouldn't get my hopes up .

I don't think any of the currently active contributors actually even *use* it, so, if someone's up to it, PRs welcome .

In the meantime, I highly recommend @sherman's own implementation .
NiLuJe is offline   Reply With Quote
Advert
Old 10-18-2019, 04:54 PM   #6
Isomorpheus
Junior Member
Isomorpheus began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2019
Device: Kobo Aura HD
Quote:
Originally Posted by sherman View Post
I am not a Koreader developer at all, but having implemented a Calibre wireless client myself (in fact, it's going through an update at the moment), I can say that the Koreader implements just enough of the protocol to keep Calibre from complaining, and no more. It is a very bare-bones implementation.

In other words, it would take some effort to "fix" it. I have no idea when or if anyone will do so (not a koreader dev, so can't speak for them). I don't know Lua, or the koreader architecture, but if anyone on the team wants to create a more complete implementation, I'm happy to share any of my own learning about the protocol.

As a side-note, I was very grateful for the bare-bones Koreader implementation. It helped me figure out where to start with my own.
Your solution sounds nice. I gave it a try but got an error. Opened an issue for it.
Isomorpheus is offline   Reply With Quote
Old 10-18-2019, 05:14 PM   #7
Frenzie
Guru
Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.
 
Posts: 814
Karma: 135782
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Quote:
Originally Posted by NiLuJe View Post
I don't think any of the currently active contributors actually even *use* it, so, if someone's up to it, PRs welcome .
Depends on how you define use. I figure I might use it as an EPUB debugging aid once every few months, to see how fast or slow it renders something or to inspect its DOM and styles.
Frenzie is online now   Reply With Quote
Old 10-18-2019, 05:24 PM   #8
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 9,383
Karma: 15000336
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
I, err, meant the plugin, not Calibre itself ^^.
NiLuJe is offline   Reply With Quote
Old 10-18-2019, 06:00 PM   #9
sherman
Fanatic
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 544
Karma: 1202637
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
Quote:
Originally Posted by Isomorpheus View Post
Your solution sounds nice. I gave it a try but got an error. Opened an issue for it.
As noted on Github, I'm looking into this.

As a sidenote, I sometimes hate working with Calibre emitted JSON. It seems to assume one is processing it with a dynamically typed language, so data types aren't always very... strict. For example, date/timestamp fields. If there is no date/time, one would expect the field to be non-existent, or null. What one doesn't expect is the string "None"

It makes unmarshalling into a Go struct an exercise in frustration
sherman is offline   Reply With Quote
Old 10-18-2019, 06:39 PM   #10
Frenzie
Guru
Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.Frenzie has rectified all his or her action issues with transformational deconfliction.
 
Posts: 814
Karma: 135782
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
None is Python null. You'd think the JSON library would convert it to null though, not string "None" (which isn't what "None" is, anyway).

Edit: like so
Code:
>>> bla = None
>>> if bla == None: print('wee')
... 
wee
>>> bla = 'None'
>>> if bla == None: print('wee')
...
>>>

Last edited by Frenzie; 10-18-2019 at 06:44 PM.
Frenzie is online now   Reply With Quote
Old 10-18-2019, 06:45 PM   #11
sherman
Fanatic
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 544
Karma: 1202637
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
Quote:
Originally Posted by Frenzie View Post
None is Python null. You'd think the JSON library would convert it to null though, not string "None" (which isn't what "None" is, anyway).
Yeah, it doesn't. Which is highly frustrating when trying to decode a timestamp, because of course the parser errors out when it sees "None" instead of a RFC3339 formatted timestamp.

What's really annoying is that null is used elsewhere in the JSON.

EDIT: Just thinking about it a bit more, the problem probably isn't with the JSON encoder, but rather that "None" may have been stored as a string in the metadata database.

Last edited by sherman; 10-18-2019 at 06:53 PM.
sherman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Companion works with content server but not wireless device connection cd2013 Calibre Companion 3 02-27-2019 07:19 PM
Wireless Device Connection Problem HisLittleOne Calibre Companion 1 12-09-2014 03:53 AM
Cannot start wireless device connection bobbert1234 Calibre 3 06-18-2014 05:10 PM
Books on device with wireless connection by CC Purple Lady Devices 13 11-26-2013 04:50 AM
Headless Calibre-Server enable "Wireless device connection" mohataj Devices 11 10-11-2012 06:39 AM


All times are GMT -4. The time now is 08:33 AM.


MobileRead.com is a privately owned, operated and funded community.