Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2023, 02:04 PM   #1
dankmaster
Junior Member
dankmaster began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2023
Device: kobo libra 2
Auto Kepupify and FTP Uploader (Python+Win)

Hi all,

Hope everything is cool with you. I recently found this forum while researching ereaders for my wife.

After much consideration, I decided to go with the Kobo Libra 2, and it seems like a solid buy. To make everything easier for her and get to practice some python, me and ChatGPTto put together a Python script. Now, she can simply drop epubs and PDFs into an inbox folder, and they will magically be kepubified and uploaded to the Kobo via FTP on our local network.

Prerequisites:

Kobo with the ability to host an FTP server.
Possibility to refresh library.
Python 3.
NickelMenu (Probably optional if you know what to do)
Required packages:
Code:
pip install -r requirements.txt
Instructions:

Make sure to edit the config.json file with your credentials.

Code:
{
  "ftp_server": "0.0.0.0", //Change to your local IP address assigned for your KOBO.
  "ftp_port": 1021,
  "ftp_username": "root",
  "ftp_password": "",
  "ftp_path": "/ebooks/", //Some might just export files to the root folder, in that case, leave this path empty. 
  "inbox_directory": "inbox", //The inbox directory can be changed, I suppose.
  "outbox_directory": "outbox", //The outbox folder is a way to ensure that files are not uploaded incorrectly. If there is a connection error, this ensures that we complete the process.
  "archive_directory": "archive", //All processed files are archived here.
  "bin_directory": "bin", //This folder contains kepubify.
  "error_log_file": "error_log.txt", //Contains error messages.
  "processed_log_file": "processed_log.txt", //Keeps track of processed files, probably unnecessary, but the idea was to not always ping the Kobo.
  "script_log_file": "script_log.txt" //Script text.
}
Run the script by clicking on main.py or using any command tool.


Code:
python main.py
Close when you're done.

The instructions are written for NickelMenu when you run the script, but you can adjust them in main.py if needed.

I've also attached my NickelMenu config for anyone interested.


Code:
_  __     _     _  __
| |/ /   _| |__ (_)/ _|_   _  ___ _ __
| ' / | | | '_ \| | |_| | | |/ _ \ '__|
| . \ |_| | |_) | |  _| |_| |  __/ |
|_|\_\__,_|_.__/|_|_|  \__, |\___|_|
                       |___/

Instructions:
1. Start Kobo.
2. Turn on WiFI.
3. Turn on FTP via NickelMenu ---> FTP.
4. Drop .EPUB/.PDF files into the Inbox folder.
5. Watch files being processed and uploaded.
6. When all files have been uploaded, Import Books via NickelMenu ---> Import books.
7. ????.
8. Profit.
Attached Files
File Type: zip KepubifyFTP.zip (1.47 MB, 81 views)
File Type: txt menu.txt (3.4 KB, 49 views)
dankmaster is offline   Reply With Quote
Reply

Tags
ftp, kepubify, nickelmenu


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploader .....? 1eduard Sigil 6 06-03-2022 03:20 PM
Win 10 auto brightness dimmer yegor.rav Calibre 8 04-14-2020 12:46 PM
calibre + win 7 auto-sleep cybmole Calibre 6 06-26-2013 12:24 AM
Calibre, Win 64 bit, News not auto downloading LibertyToad Devices 3 12-09-2011 11:03 PM
NewsRaider FTP Uploader released Today MatYadabyte Lounge 0 03-08-2006 01:54 PM


All times are GMT -4. The time now is 09:06 AM.


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