View Single Post
Old 06-04-2025, 07:23 AM   #4
PamGaoshow
Junior Member
PamGaoshow began at the beginning.
 
PamGaoshow's Avatar
 
Posts: 5
Karma: 10
Join Date: Jan 2019
Device: Kobo Libra Colour
Quote:
Originally Posted by fdread View Post
Looks great, I will give it a try!

It is resource intensive to create such ePub directly on the Kobo Libra?
Yes, I’m building the ePub files directly on the Libra Colour.
I’ve tried using 10 RSS feeds, each fetching 10 articles, and the maximum memory usage was only around 120MB.
On Linux systems, Buffers and Cache might consume a lot of memory resources, so I added two lines in NickelMenu to check memory usage and to clear the Buffer and Cache.

Code:
menu_item : main : Memory Usage : cmd_output : 500 : free -m | awk 'NR==2{printf "Used: %dMB\nBuff/Cache: %dMB\nAvailable: %dMB\n", $3, $6, $7}'
menu_item : main : Clear Memory : cmd_output : 500 : sync && echo 3 > /proc/sys/vm/drop_caches && free -m | awk 'NR==2{printf "Used: %dMB\nBuff/Cache: %dMB\nAvailable: %dMB\n", $3, $6, $7}'
By the way, this script can also run on a server. I'm also exploring whether it can be deployed to Google App Engine to automatically push to Google Drive. That way, it can be used without jailbreaking, although it would still require an internet connection.
PamGaoshow is offline   Reply With Quote