Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2021, 09:25 PM   #16
arooni
Addict
arooni began at the beginning.
 
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
This is what I have so far


Code:
    ["exporter"] = {
        ["html_export"] = false,
        ["joplin_IP"] = "192.168.1.100",
        ["joplin_export"] = true,
        ["joplin_notebook_guid"] = "d50d5af85bb64b189ea16808c88c15e1",
        ["joplin_port"] = 41184,
        ["joplin_token"] = "myuniquetokenid",
        ["json_export"] = false,
        ["txt_export"] = false,
        ["username"] = "",
    },
# i have also tried it with joplin_IP to be my DDNS address without any change. again the same error message "Multiple errors occurred while trying to export notes from the book, booktitle, and 0 others"
arooni is offline   Reply With Quote
Old 11-11-2021, 10:20 PM   #17
eddierm
Member
eddierm began at the beginning.
 
eddierm's Avatar
 
Posts: 11
Karma: 10
Join Date: Nov 2019
Location: Bogotá, Colombia
Device: Kobo Libra
Smile

Hi arooni

I am not sure you are following the right steps. Please read the instructions in my third post:

Quote:
Originally Posted by eddierm View Post
I went to my kobo with koreader and tried to configure in the joplin's section of evernote plugin... there, I had to put 3 values: my IP (I put my computer's IP, here 192.168.0.190), then the port: 41185 (default) and finally the authentication key that I built as a master pass in Joplin app in my PC...
Then the instructions gave by faet.snopp

Quote:
Originally Posted by faet.snopp View Post

Things involved:

1. The Ko-Reader (I only have a Kindle PW, so I don't know how its implemented elsewhere) with the Evernote/Joplin Plugin

2. A Joplin instance, that is listening on an open port 41184 on localhost (127.0.0.1)

3. A program (netsh or socat) that is forwarding incoming traffic (from hostport) on the Joplin host to the Joplin port (41184)
- this is because Joplin is only listening on localhost:41184, so that it can not be reached directly from outside
- the host port (port that is listening on an outbound interface on the host, for example "eth0" with your local ip (f.e. 192.168.23.42)) can have an arbitrary port but lets say it will be 41185 as its the default
- I'm on linux so I'm using socat, Windows might be netsh

These components then should work in this fashion:
- Ko-Reader sends notes to Joplin host IP on port 41185
- On the Joplin host the intermediary programm (socat or netsh) is listening on 41185 and forwards to
- Joplin, which is listening on localhost:41184


So, now for the guide:

1. First install Joplin Desktop. (There is also a server package here but I have not looked into it so far.)

1.1 Launch it and go to Options -- Web-Clipper and activate
- this will make Joplin listen on localhost:41184
(As I understood this is originally an interface for a browser-extension which is why it only needs to listen locally.
1.2 In the Web-Clipper menu, a token will appear once it is activated - it'll be important later

Joplin is ready to receive like that.

2. Set up the intermediary:
- Now the bride must be build between the interface that can talk to the world (your wifi) and to Joplin.


Since I am on Linux I'll do it like this:
Code:
$ socat tcp-listen:41185,reuseaddr,fork tcp:localhost:41184
Windows (not tested by me, default from docs):
Code:
netsh interface portproxy add listeningaddress:0.0.0.0 listeningport:41185 connectaddress:localhost connectport:41184
This will forward traffic that is coming to port 41185 (your networkinterface) to localhost:41184 (Joplins interface)

You can check if your programs are listening (using) on the ports:

Linux:
Code:
$ ss -tlpn
Windows:
Code:
netstat -aof
The ports should be in the list in the following fashion (or windows similar) including an indication which programm is using the ports:
Code:
State               Recv-Q              Send-Q                           Local Address:Port                              Peer Address:Port              Process                                                    
LISTEN              0                   511                                  127.0.0.1:41184                                  0.0.0.0:*                  users:(("@joplinapp-desk",pid=175283,fd=71))              
LISTEN              0                   5                                      0.0.0.0:41185                                  0.0.0.0:*                  users:(("socat",pid=176574,fd=5))
Like this, only the reader is left to be configured.

3. Configure Ko-reader
3.1 My ko-reader has an Evernot-Plugin, which then has the Joplin-Plugin included.
- In the Joplin-Plugin I can enter an IP-address and a port:
The IP-address should be the one of the host from your Joplin instance (the address you are using in your wifi)
the port is the one defined in the intermediary (socat or netsh), so here 41185
- check the "export to Joplin" Box
- also, there is an option for the token, which is mentioned in 1.2.
The token has to be inserted. This can be done by typing on the readers interface but since it's really long this would be quite dull.
- On the kindle I can access the configuration directly, once the device is connected to my computer, giving me the chance to copy+paste
1. connect the reader (kindle in my case but I presume it's similar on other devices)
2. open the (koreader/)settings.reader.lua (make a backup copy of the file first) in an editor
3. find the entry evernote
4. insert the option ["joplin_token"] = "", with your token as value
In the end, the evernote-section should look like this (it's just the menuentries with values):
Code:
    ["evernote"] = {
        ["html_export"] = false,
        ["joplin_IP"] = "192.168.23.42",
        ["joplin_export"] = true,
        ["joplin_notebook_guid"] = "d50d5af85bb64b189ea16808c88c15e1",
        ["joplin_port"] = 41185,
        ["joplin_token"] = "255f85babc8e8341b2ba5d4088d655df7f59c77904ec23400c71e818c1efd649c40b68b3bc60fea3b605a09730784b41d04fc659ed181118f8c9a19ab95ad25f",
        ["json_export"] = false,
        ["txt_export"] = false,
        ["username"] = "",
    },
Thats it, now, when you hit "export notes", your reader sends the notes to the Joplins-Host-address (joplin_IP in the koreader config) on the port 41185 where they are forwarded by the intermediary (socat, netsh) to the localport localhost:41184 and finaly received by Joplin.

Troubleshooting:
- If the configuration in ko-reader is not reaching the Joplin interface (ko-reader not set up correctly, intermediary not reachable, Joplin not reachable, ...) it will crash each time you hit sync
- make sure there are no firewalls on the Joplin-host preventing the reception of packets on the intermediary port (41185)

I hope this helps!
So, when you said that your DDNS is involved, I went a little confused.

Quote:
Originally Posted by arooni View Post

# i have also tried it with joplin_IP to be my DDNS address without any change. again the same error message "Multiple errors occurred while trying to export notes from the book, booktitle, and 0 others"
The joplin app ONLY works locally! that means you need to connect your kobo (kindle or whatever device with koreader) in the same wifi that your windows pc (mac or linux) locally... then run joplin in your pc (mac or whatever), go to tools -> options -> web clipper and enable it! Finally run the export option in kobo AFTER connect it to the same wifi... it should work...

I hope you can solve it!

Last edited by eddierm; 11-12-2021 at 12:02 AM.
eddierm is offline   Reply With Quote
Old 11-20-2021, 04:47 PM   #18
Jiyu09
Junior Member
Jiyu09 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2021
Device: Kobo Sage
https://github.com/koreader/koreader/issues/8321

I followed everything here, got such an error on my kobo sage:
No response from Joplin Server.

["exporter"] = {
["html_export"] = false,
["joplin_IP"] = "192.168.109.1",
["joplin_export"] = true,
["joplin_port"] = 41185,
["joplin_token"] = "f87d30f11e2b1a...(it's correct)",
["json_export"] = false,
["txt_export"] = false,
},

I ran this command below on win11, 192.168.109.1 is my laptop ip which is running the joplin and the web clipper started on port 41184.

netsh interface portproxy add v4tov4 listeningaddress:192.168.109.1 listeningport:41185 connectaddress:localhost connectport:41184

result of netstat -aof, though there's no 0.0.0.0:41185, don't know if that's why.
TCP 127.0.0.1:41184 DESKTOP-SL0JQAA:0 LISTENING 9028

crash.log:
--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 3.051/3.051/3.051 ms
11/20/21-21:09:03 INFO Loading plugins from directory: plugins
ffi.load: sqlite3
11/20/21-21:09:03 INFO GestureDetectorrobeClockSource: Touch event timestamps appear to use CLOCK_REALTIME
11/20/21-21:09:09 INFO opening file /mnt/onboard/book/Hui Yin Pian - Bai La Tu.kepub.epub
./luajit: plugins/exporter.koplugin/JoplinClient.lua:37: No response from Joplin Server
stack traceback:
[C]: in function 'error'
plugins/exporter.koplugin/JoplinClient.lua:37: in function '_makeRequest'
plugins/exporter.koplugin/JoplinClient.lua:121: in function 'createNotebook'
plugins/exporter.koplugin/main.lua:433: in function 'exportClippings'
plugins/exporter.koplugin/main.lua:340: in function 'exportCurrentNotes'
plugins/exporter.koplugin/main.lua:238: in function 'action'
frontend/ui/uimanager.lua:1201: in function '_checkTasks'
frontend/ui/uimanager.lua:1622: in function 'handleInput'
frontend/ui/uimanager.lua:1730: in function 'run'
./reader.lua:323: in main chunk
[C]: at 0x00014119
Jiyu09 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
H202 Setup and Beginner Help FlyHero Kobo Reader 12 06-30-2019 09:15 PM
Best way to achieve KPVBooklet + KOReader setup skunkos Kindle Developer's Corner 14 05-12-2019 01:06 AM
Beginner's Guide To Running kanisknayan Self-Promotions by Authors and Publishers 1 09-03-2017 10:49 AM
How To Read eBooks: A Beginner's Guide Bob Russell Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-09-2005 11:13 PM


All times are GMT -4. The time now is 05:35 AM.


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