01-08-2016, 09:26 PM | #151 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2016
Device: Kobo Wifi
|
Actually, the url error turned out to just be a DNS problem on my end, and its supposed to stay mintemp / maxtemp. Sorry for the bother, and thanks for your original tips
Last edited by Khord; 01-08-2016 at 09:32 PM. |
01-08-2016, 09:52 PM | #152 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2016
Device: Kobo Wifi
|
On another note, I get an error when trying to run the autoupdate script on the original post:
Code:
crond: applet not found Last edited by Khord; 01-08-2016 at 10:00 PM. |
Advert | |
|
02-29-2016, 08:39 AM | #153 |
Member
Posts: 17
Karma: 10
Join Date: Feb 2016
Device: none
|
Hi there,
I hope this thread is still active. I'm trying to get this weatherdisplay to run on a Kobo Glo HD (FW: 3.19.5613), but I ran into several problems. - I managed to gain telnet and ftp-access -> OK - I tried the following packages (the one referenced in the first post, the one intended for the touch and the supplied by david_weese) -> always had problems with import of pygame (python crashed at this point) - Removed python and tried the python-installation for FW 2.6+ supplied by kevin_short (https://www.mobileread.com/forums/sho...d.php?t=219173) -> with this installation import of pygame works - Text rendering does not seem to work for me. I tried the minimal example at http://pastebin.com/4Erz9kqf but I always get a error message ("couldn't find glyph") - So I commented out all textrendering-parts to test the rest and image-update process - Next problem is that the program hangs at pygame.display.set_mode, requiring a ctrl-c at the telnet console. If I hit ctrl-c the program resumes and obviously works. With this I managed to update the display an draw the lines that are used to separate the entries for the different days Did anyone manage to get this to work on a Glo HD? Can anyone point me into a direction what needs to be adapted? Kind regards KristianR |
03-09-2016, 12:36 PM | #154 |
Member
Posts: 17
Karma: 10
Join Date: Feb 2016
Device: none
|
I would like to report some progress on the weatherdisplay on the Glo HD:
Regarding the problem with textrendering I made the following observations:
Regarding the pygame.display.set_mode requiring a ctrl-c I found a "hack" on http://stackoverflow.com/questions/1...o-init-display where a keyboard-interrupt is issued: I implemented this into the script and it works for me. After adjusting the coordinates of the textfields and the graphics I manage to get the Glo HD to display a weatherforecast when I call the pythonscript from the telent-console. Aftter that I tried the following:
Hope the first part might help someone who is alos trying to get the weatherdisplay to run on a Glo HD. For the second part any help or pointers how I could get this running would be greatly appreciated. The main question for me right now is:
Also interesting, but no priority
Thanks in advance and kind regards KristianR edit 09.03.2016 / 22:22: It seems to work now. This time I added the insmod and set the environment-Variables I extracte from the rCS-file and added several sleep-statements. If I know for sure what made it work I will report back Last edited by KristianR; 03-09-2016 at 04:24 PM. |
03-09-2016, 11:33 PM | #155 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2016
Device: Kobo Wifi
|
Seem to be getting some kind of pygame error opening the image all of a sudden. Was working fine for 2 months, stopped working yesterday, and upon investigation I find this:
Code:
Kobo Wifi weather forecast started.
Getting weather information . . .
Creating image . . .
Traceback (most recent call last):
File "weather.py", line 364, in <module>
get_weather_data()
File "weather.py", line 109, in get_weather_data
display(days, highs, lows, conditions, img_links, unit)
File "weather.py", line 167, in display
image = pygame.image.load(img_links[0])
pygame.error: Couldn't open icons/.png
Maybe something to do with some error in here getting the icons? Code:
icons = dom.getElementsByTagName('weatherIconUrl')[1:]
img_links = []
for i in icons:
try:
link = "icons/" + str(i.firstChild.nodeValue)[72:]
except AttributeError as error:
print("Error getting icon links: " + str(error))
img_links.append(link)
Code:
pygame.error: Couldn't open icons/y_with_light_rain.png Last edited by Khord; 03-10-2016 at 03:33 AM. |
Advert | |
|
03-10-2016, 05:03 AM | #156 |
Fanatic
Posts: 509
Karma: 60774
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
You could replace the
Code:
link = "icons/" + str(i.firstChild.nodeValue)[72:] Code:
link = "icons/" + str(i.firstChild.nodeValue)[67:] |
03-10-2016, 05:58 PM | #157 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Jan 2016
Device: Kobo Wifi
|
Quote:
Code:
pygame.error: Couldn't open icons/0017_cloudy_with_light_rain.png |
|
03-13-2016, 05:34 PM | #158 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2016
Device: Kobo Wifi
|
Got this working, then display went black
So I got this working according to the instructions, everything went really well. Then I kept the Kobo Wifi connected to the USB port to charge it for a while. After an hour or so, the display became a little darker, I thought it was some sort of screen saver. After some more time, this display went completely black. Now it doesn't respond to button presses anymore.
It wont show up on wifi, hard reset with a pin doesnt work, the charging light does turn on (magenta, then red?) when connected to USB, but it won't show up as an drive anymore. Did I just brick my Kobo? |
07-16-2016, 01:34 PM | #159 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Jul 2016
Device: Kobo glo HD
|
Quote:
Code:
while : do #echo "ch 4" > /sys/devices/platform/pmic_light.1/lit #echo "dc 4" > /sys/devices/platform/pmic_light.1/lit rmmod sdio_wifi_pwr rmmod dhd sleep 1 insmod /drivers/mx6sl-ntx/wifi/sdio_wifi_pwr.ko insmod /drivers/mx6sl-ntx/wifi/dhd.ko #ifconfig eth0 up wpa_supplicant -s -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant -B ifconfig eth0 add 192.168.0.236 #udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -f -q sleep 15 killall wpa_supplicant > /dev/kmsg wlarm_le -i eth0 down ifconfig eth0 down sleep 5 rtcwake -a -m mem -s 10 #echo "dc 0" > /sys/devices/platform/pmic_light.1/lit sleep 1 done Warning i use static ip (dhcp take many time) For dhcp comment ifconfig eth0 add 192.168.0.236 and uncomment udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -f -q |
|
06-05-2017, 06:51 AM | #160 |
Member
Posts: 17
Karma: 10
Join Date: Feb 2016
Device: none
|
Hi there,
it seems that since begin of june the free version of the worldweatheronline-API got disabled. I get this response and can't find a free offer on their website anymore: Code:
<data><error><msg>API key has been disabled.</msg></error></data> Kind regards Kristian |
06-13-2017, 11:14 AM | #161 | |
Avid reader
Posts: 824
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
Quote:
Andrew |
|
06-17-2017, 12:43 PM | #162 | |
Member
Posts: 17
Karma: 10
Join Date: Feb 2016
Device: none
|
Quote:
I stumbled upon that site as well. So far I did not try it out. Since I rather look up the weather on my mobile I am not sure if its worth the effort to adapt the script to a new service. Kristian |
|
08-23-2018, 08:09 AM | #163 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2018
Device: Kobo Touch
|
How to connect KOBO to WIFI without updating it?
Hi folks,
I bought an used Kobo Touch Mini to try this weather forecast and play a little bit programming it with Python. It came factory reseted. Firmware version is 1.9.11. The problem is, there is no option to connect it to WIFI without updating. It needs to be connected to computer in order to make it possible. But when I do it immediately starts downloading latest firmware which I don't want to have. I presume the WIFI connection information is stored in DB file BookReader.sqlite, which is password protected. Anyone knows how to avoid update and still connect it to WIFI network? Thanks! |
08-23-2018, 09:27 AM | #164 | |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
As to not upgrading, there are patches for more recent firmware. Or you could try adding a host file entry pointing to something other than the Kobo server. There has been a lot of discussion about this over the years, but I don't remember details for the 1.9.x firmware. |
|
08-24-2018, 06:20 AM | #165 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2018
Device: Kobo Touch
|
Quote:
|
|
Tags |
hacking, kobo wifi |
Thread Tools | Search this Thread |
|
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 09:29 AM |
Kobo Touch in cold weather | Judsuw | General Discussions | 15 | 06-02-2012 06:23 PM |
Sync epubs between Kobo app and Kobo wifi? | emilikins | Kobo Reader | 1 | 11-17-2011 04:12 PM |
Kobo Desktop App v1.7 onboard Kobo WiFi | ZombWii | Kobo Reader | 6 | 10-20-2010 12:24 PM |
Forrester upgrades sales forecast by 50% | xoox | News | 0 | 10-10-2009 04:11 AM |