Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2024, 02:41 PM   #1
UserError
Junior Member
UserError began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2024
Device: Paperwhite B024 FW 5.4.4.2
How to run python script?

Hello, I have a K5 PW1 I bought specifically for this purpose

Over the last week or so and guided by stuff on this forum, I have managed to jailbreak it, install KUAL & Kterm on it. I think I've installed Python (via the Screensavers package, referenced here https://www.mobileread.com/forums/sh...d.php?t=195474 (K5 FW 5.x ScreenSavers Hack).

I have a small script (Timer/stopwatch) that I wrote (admittedly with outside help) that I want to run on the kindle. This is in Python, but could be in another language if it made life easier?

Can I run a .py script? I can't seem to get out of kterm & cd to other directories & I've tried a few Linux commands but they're not working (but ls does). What do I need to look for to find available commands (-h just gives app commands).

Would it be easier to use a different language? I've seen that .sh scripts can be run and I'm very very lightweight on all of this, only did a bit of VBA a good while ago and realise I'm trying to run before I can walk here, but with online resources I can get there I'm sure and most of my current questions are generic I think.

Ultimately I want the timer to display large characters - a bit like those shown in the photo (note that this is served from a Pi to the browser, I'm hoping to do something much simpler, locally on the Kindle) as I'd rather not need the Pi to be running for this use case but could if it would make life a lot easier.

I've read a load of posts on here about various aspects of what I'm attempting, but can't find much about starting off, especially as an inexperienced person. If anyone could point me to a helpful post or other guides I'd appreciate it. Many thanks.
Attached Thumbnails
Click image for larger version

Name:	PerstatExample.jpg
Views:	46
Size:	64.2 KB
ID:	205699  
UserError is offline   Reply With Quote
Old 01-09-2024, 03:31 PM   #2
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,285
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Use kterm to run a python (or any other) script.

Learn to wrap a script as a KUAL extension.

Learn to use fbink to display large characters.

Code:
ls /bin /usr/bin /usr/sbin /sbin /usr/local/bin
to see a list of installed command.
j.p.s is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K4 Run a Python script in background damix Kindle Developer's Corner 5 11-12-2020 06:44 PM
Python script for epub -> kepub Akk Kobo Reader 2 08-24-2015 09:32 PM
Fetching Lenta.ru from python script johanp Recipes 0 01-06-2013 11:43 AM
how to use python script with windows xp tuufbiz1 Other formats 12 01-08-2011 08:22 AM
Nedd a little help with a python script gandor62 Calibre 1 08-07-2008 09:59 PM


All times are GMT -4. The time now is 09:07 PM.


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