08-24-2018, 07:40 AM | #166 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
08-24-2018, 08:23 AM | #167 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2018
Device: Kobo Touch
|
|
08-25-2018, 04:20 AM | #168 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2018
Device: Kobo Touch
|
Now I have successfully installed Python and Pygame, started the weather.sh, but unfortunately it does not work after giving the coordinates. And screen is upside down now. Any idea?
|
11-19-2018, 03:10 AM | #169 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2018
Device: Kobo Glo
|
Been trying for about four hours now to get weather working. slowly I am getting past some errors... Im stuck on...
UnboundLocalError: local variable 'weather_link' referenced before assignment. Im on a Kobo Wifi version 1.9.12. Any Ideas? |
11-16-2019, 01:55 PM | #170 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2016
Location: Kingston, Nova Scotia, Canada
Device: Kobo Wifi, Kobo Glo
|
Hello all.
I know this is an old topic but I was wondering if anyone still had this working. I have an old Kobl Wifi i was trying to install it on and have been running into some problems. Reading through the comments I see that the weather link had changed so I signed up and received an API but I'm not sure what URL to use as the one with "weather.ashx" no longer seems to exist but there is "/current.xml" or "forecast.xml". Right now I have the weather_link set up as weather_link='http://api.weatherapi.com/v1/current.xml?q={0},{1}&format=xml&num_of_days=5&key =[my API]'.format(lat, lon) and when I start weather.sh via telnet i get the below error. Just wondering if anyone is able to provide me some assistance as I'm really not sure what this all means. [I][root@(none) /]# /mnt/onboard/.python/weather.sh Kobo Wifi weather forecast started. Getting weather information . . . Creating image . . . Traceback (most recent call last): File "weather.py", line 363, in <module> get_weather_data() File "weather.py", line 108, in get_weather_data display(days, highs, lows, conditions, img_links, unit) File "weather.py", line 145, in display high_temp = comfortaa.render(highs[0], True, black, white) IndexError: list index out of range [root@(none) /]# Thanks a lot Dan |
06-19-2020, 07:39 PM | #171 |
Banned
Posts: 2,296
Karma: 5300240
Join Date: Jun 2020
Location: Edmonton, AB
Device: Kobo Aura H2O Edition 2 (mark 7), Kobo Mini
|
aura h2o2?
|
06-22-2020, 08:02 PM | #172 |
Banned
Posts: 2,296
Karma: 5300240
Join Date: Jun 2020
Location: Edmonton, AB
Device: Kobo Aura H2O Edition 2 (mark 7), Kobo Mini
|
Wondering if this hack works with Kobo Aura H2O2 or Mini?
|
06-02-2024, 08:16 AM | #173 |
THEDOM
Posts: 2
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra Color
|
I tested this on a Kobo Libra Colour with the latest firmware and got a segmentation fault when executing
Code:
/mnt/onboard/.python/weather.sh Code:
telnet 192.168.179.13 1023 Trying 192.168.179.13... Connected to kobo.fritz.box. Escape character is '^]'. kobo login: admin Password: login: can't change directory to '/home/admin' [root@kobo ~]# echo C > /mnt/onboard/.apps/koboWeather/unit.txt [root@kobo ~]# cat /mnt/onboard/.apps/koboWeather/unit.txt C [root@kobo ~]# /mnt/onboard/.python/install-python.sh Installing python and pygame libraries . . . Python successfully installed! [root@kobo ~]# /mnt/onboard/.python/weather.sh For the weather forecast to work, please enter your latitude and longitude. There is an easy to use map at http://stereopsis.com/flux/map.html Enter your latitude: XX.XXXXX Enter your longitude: XX.XXXX Just a moment . . . Segmentation fault [root@kobo ~]# cd /mnt/onboard/.apps/koboWeather [root@kobo koboWeather]# ls -l total 704 -rwxr-xr-x 1 root root 97908 Mar 21 2011 Cabin-Regular.ttf -rwxr-xr-x 1 root root 169096 Jan 2 2012 Comfortaa-Regular.ttf -rwxr-xr-x 1 root root 16312 May 1 2011 Fabrica.otf -rwxr-xr-x 1 root root 303316 Oct 16 2012 Forum-Regular.ttf -rwxr-xr-x 1 root root 391 Oct 20 2012 autoupdate.sh -rwxr-xr-x 1 root root 42 Oct 19 2012 cron drwxr-xr-x 2 root root 16384 Jun 2 11:16 icons -rwxr-xr-x 1 root root 16 Jun 2 12:18 location -rwxr-xr-x 1 root root 361 Oct 19 2012 set_location.sh -rwxr-xr-x 1 root root 2 Jun 2 12:17 unit.txt -rwxr-xr-x 1 root root 11904 Nov 2 2012 weather.py [root@kobo koboWeather]# python --version Python 2.7.2 [root@kobo koboWeather]# python weather.py Segmentation fault When taking a look at the bash script Code:
#!/bin/sh if [ ! -f /mnt/onboard/.apps/koboWeather/location ]; then /mnt/onboard/.apps/koboWeather/set_location.sh echo "Just a moment . . ." fi echo 1 > /sys/class/graphics/fb0/rotate cd /mnt/onboard/.apps/koboWeather python weather.py |
06-02-2024, 10:17 AM | #174 |
Grand Sorcerer
Posts: 12,751
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Actually the part failing is the python executable itself; not the script.
I believe it will be related to changes in the underlying hardware between the Kobo Wifi and modern devices. Sent from my Pixel 7a using Tapatalk |
Tags |
hacking, kobo wifi |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Odd; Kobo-purchased book reads fine on Desktop, WiFi and Sony -but not on Kobo Touch. | beautifulsoup | Kobo Reader | 4 | 07-17-2012 10:29 AM |
Kobo Touch in cold weather | Judsuw | General Discussions | 15 | 06-02-2012 07:23 PM |
Sync epubs between Kobo app and Kobo wifi? | emilikins | Kobo Reader | 1 | 11-17-2011 05:12 PM |
Kobo Desktop App v1.7 onboard Kobo WiFi | ZombWii | Kobo Reader | 6 | 10-20-2010 01:24 PM |
Forrester upgrades sales forecast by 50% | xoox | News | 0 | 10-10-2009 05:11 AM |