|
|
#1 |
|
Junior Member
![]() 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! |
|
|
|
![]() |
|
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 |