Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2026, 10:44 AM   #1
simodon
Junior Member
simodon began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2026
Device: kobo
Kobo Touch 2.0 as train station timetable

Hello every one!
I'm pretty newbie, so plz be kind
I'm try to use my kobo touch 2.0 (a very old model) to display the timetable of the train station I have near my home.
To do so, it is sufficient to access the API of the local train system (which is viaggiatreno.it, since I live in Italy) and parsing the json file that is obtained. The results should be printed on screen.
Now, I'm like 95% from the end (hopefully), since I can see most of my results on the ereader; however, the main issue I am facing is to call the text I got in the piping in the shell with an angle of 90° (widescreen, rather than portrait).
My workflow so far is

1. ail brake the Kobo with NickelMenù
2. install KOReader.
3. install FBInk
4. run the following shell script:
`
#!/bin/sh

STAZIONE="S01513"
INTERVALLO=120
URL_BASE="http://www.viaggiatreno.it/infomobilita/resteasy/viaggiatreno/partenz>
FONT="/mnt/onboard/fonts/FreeMono.ttf"
FBSIZE=24
ROT=90
TMPFILE="/tmp/fbink.txt"

fbink -c
while true; do

DATA=$(date -u +"%a %b %d %Y %H:%M:%S GMT%z" | sed 's/ /%20/g')

wget -q -O - "${URL_BASE}/${STAZIONE}/${DATA}" |
tr '{},' '\n' |
grep -E '"categoria"|"numeroTreno"|"compOrarioPartenzaZero Effettivo"|"destina>
sed 's/"//g' |
awk -F: -v ts="$(date '+%H:%M:%S')" '
BEGIN { printf "Aggiornato: %s\n\n", ts }
/categoria/ {cat=$2}
/numeroTreno/ {num=$2}
/compOrarioPartenzaZeroEffettivo/ {ora=$2}
/destinazione/ {dest=$2}
/ritardo/ {
rit=$2
gsub(/^ +| +$/,"",cat)
gsub(/^ +| +$/,"",num)
gsub(/^ +| +$/,"",ora)
gsub(/^ +| +$/,"",dest)
gsub(/^ +| +$/,"",rit)
printf "%-10s %-6s %-5s %-20s Rit:%2s min\n",
cat, num, ora, dest, rit
}
' | fbink -w >/dev/null 2>&1
#| fbink -f "$FONT" -s $FBSIZE -r $ROT >/dev/null 2>&1

sleep "$INTERVALLO"
done
`

I can actually either do this or run the shell script directly in the shell emulator in KOReader, which follows the screen if it is set at a 90° angle, but which have the floating keyboard that I couldn't remove anyway, no matter what.

So the two possible solutions I see are
1. to close/minimize the keyboard in the shell emulator - which would be optimal
2. being able to rotate and customize the font and size of the FBInk projection - and make a clear visualization of the data.

thanks for your support!
simodon is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Diffrence between Kobo Touch & kobo touch extended Drivers ozgurs Kobo Reader 7 05-09-2020 10:38 AM
Girl from a Train Station: A Psychological Mystery and Suspense Thriller md77metez Self-Promotions by Authors and Publishers 0 01-02-2017 03:26 PM
Free (Kindle DRM-free) Town & Train [Ontario Amnesiac Small Town Ghost Train Horror] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 2 11-14-2016 02:50 PM
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch jbcohen Which one should I buy? 4 06-18-2011 08:58 PM
Android Timetable app for students/teachers borisb enTourage Archive 1 11-30-2010 07:25 PM


All times are GMT -4. The time now is 11:20 AM.


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