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
the part that does not work and needs a fix is the Python script
weather.py