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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2024, 08:43 AM   #1
commandlion
Junior Member
commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'
 
Posts: 3
Karma: 10010
Join Date: Jan 2024
Device: Kobo Libra 2
Question Accessing browser logs?

Hello! My Libra 2 came in the mail today and overall I'm pretty impressed, but I there isn't a story for loading mangadex content that I'm happy with. I noticed that calibre can host a webpage with your library on it and the kobo browser can download epubs directly from that page. My plan is to build something similar that can download chapters from mangadex and squish them into epubs on the fly, that works well in the Kobo browser.

I started hacking on the manga browsing UI and I ran into a snag: this browser doesn't have a devtools button. I'm trying to use the wonderful HTMX library, but it looks like the script isn't doing anything. I did verify that handwritten dom manipulations in a script tag work, so I know that it at least supports some javascript. How can I access the logs to see what's actually going wrong?

What are my options here? Am I going to have to go old-old school and forego js entirely, make every button a form that posts etc...
commandlion is offline   Reply With Quote
Old 01-11-2024, 06:14 PM   #2
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,181
Karma: 15499942
Join Date: Sep 2022
Device: Kobo Libra 2
The browser is essentially there for the sake of novelty if you really, really want to look up something on Wikipedia. You shouldn't use it for normal reading purposes. Create EPUB files with Calibre or some other tool and then sideload them over USB, or use calibre-web to sync your books over Wi-Fi so you can read them natively from the internal storage, rather than through the primitive browser.
Aleron Ives is offline   Reply With Quote
Old 01-11-2024, 07:01 PM   #3
commandlion
Junior Member
commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'
 
Posts: 3
Karma: 10010
Join Date: Jan 2024
Device: Kobo Libra 2
I ended up building the whole thing old school server-style with just a single line of client js. Was kind of a fun challenge tbh
commandlion is offline   Reply With Quote
Old 01-11-2024, 07:03 PM   #4
commandlion
Junior Member
commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'commandlion knows the difference between 'who' and 'whom'
 
Posts: 3
Karma: 10010
Join Date: Jan 2024
Device: Kobo Libra 2
Here's a video of what my web app does in action: it lets me browse mangadex, select chapters of the manga I want, then it downloads the content and stitches them into an epub on the backend, then I can open it directly on the device using the native epub support, without having to reach for a computer. I'm quite pleased

https://nextcloud.chuckdries.com/s/8fYNDBT9Fq92NTe
commandlion is offline   Reply With Quote
Old 01-12-2024, 05:26 PM   #5
elinkser
Groupie
elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.
 
Posts: 187
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
A bit late, since you finished it already, but for the record, the browser does seem to have some interesting capabilities, like Server Sent Events:
https://www.mobileread.com/forums/sh...d.php?t=330150

Just a couple of the interesting browser-based ideas:
https://www.mobileread.com/forums/sh...d.php?t=262353
https://www.mobileread.com/forums/sh...d.php?t=348950

Websockets and canvas sharing on the Kobo browser:

Live Kobo Drawing Sync to Desktop via Browser
https://www.mobileread.com/forums/sh...d.php?t=356361

benkaiser/kobo-whiteboard
https://github.com/benkaiser/kobo-whiteboard

benkaiser/web-share-images
https://github.com/benkaiser/web-sha...hareCanvas.tsx



I don't like the stock browser much either, especially the scrolling action, though there is always elinks for a classic text-based browser option.
https://www.mobileread.com/forums/sh...91&postcount=3


(Not to mention netsurf in a chroot or InkBox, for those willing to go the "extra mile".)

Last edited by elinkser; 01-23-2024 at 10:33 AM. Reason: websockets
elinkser is offline   Reply With Quote
Reply

Tags
browser, web browser, web development

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Kobo logs johnmcd Kobo Developer's Corner 5 10-28-2021 07:09 AM
Logs for crashing... Ghitulescu Calibre 2 03-03-2021 09:10 AM
Server logs * Laval Server 7 05-28-2019 11:51 AM
Logs of library visitors passegua Calibre 2 09-04-2015 02:35 AM
Stack logs jackastor Kobo Reader 18 03-04-2013 01:06 AM


All times are GMT -4. The time now is 12:36 PM.


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