01-11-2024, 09:43 AM | #1 |
Junior Member
Posts: 3
Karma: 10010
Join Date: Jan 2024
Device: Kobo Libra 2
|
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... |
01-11-2024, 07:14 PM | #2 |
Wizard
Posts: 1,489
Karma: 16300090
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.
|
01-11-2024, 08:01 PM | #3 |
Junior Member
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
|
01-11-2024, 08:03 PM | #4 |
Junior Member
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 |
01-12-2024, 06:26 PM | #5 |
Addict
Posts: 222
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 11:33 AM. Reason: websockets |
Tags |
browser, web browser, web development |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading Kobo logs | johnmcd | Kobo Developer's Corner | 5 | 10-28-2021 08:09 AM |
Logs for crashing... | Ghitulescu | Calibre | 2 | 03-03-2021 10:10 AM |
Server logs * | Laval | Server | 7 | 05-28-2019 12:51 PM |
Logs of library visitors | passegua | Calibre | 2 | 09-04-2015 03:35 AM |
Stack logs | jackastor | Kobo Reader | 18 | 03-04-2013 02:06 AM |