Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2012, 02:14 PM   #31
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Sorry about the permission denied, I forgot to set it as public.

I really don't know why it can't load the font file. I'm looking into it.
Does it work if you change the font-loading lines in weather.py to use a default font?
Code:
tiny_font = pygame.font.Font(None, 18)
small_font = pygame.font.Font(None, 22)
font = pygame.font.Font(None, 40)
comfortaa = pygame.font.Font(None, 60)
comfortaa_small = pygame.font.Font(None, 35)

Last edited by KevinShort; 11-04-2012 at 02:19 PM.
KevinShort is offline   Reply With Quote
Old 11-04-2012, 02:42 PM   #32
andyh2000
Fanatic
andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.
 
andyh2000's Avatar
 
Posts: 567
Karma: 1568694
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy S4 Mini phone / Kindle 4 Black / Kindle Paperwhite
Quote:
Originally Posted by KevinShort View Post
Sorry about the permission denied, I forgot to set it as public.

I really don't know why it can't load the font file. I'm looking into it.
Does it work if you change the font-loading lines in weather.py to use a default font?
Code:
tiny_font = pygame.font.Font(None, 18)
small_font = pygame.font.Font(None, 22)
font = pygame.font.Font(None, 40)
comfortaa = pygame.font.Font(None, 60)
comfortaa_small = pygame.font.Font(None, 35)
Yeah, I guessed about the file permission thing.

I lied in my last post, I can't leave anything alone until it's working...

It looks like it can't load the TrueType fonts. When I converted them to otf format and used those instead it worked. Then I just had to copy full_update from .python into the weather app folder (or change line 363 in the weather.py script to point to it) and it worked perfectly! Presumably full_update looks in the current directory for a file called image.png and blats it to the display?

Click image for larger version

Name:	2012-11-04 18.29.33.jpg
Views:	234
Size:	152.0 KB
ID:	95437

Thanks ever so much for this. Now I've got it working I'm going to make an astronomer's version, possibly based on data from 7timer.com.

I can't quite believe that the Kobo can run Python and pygame natively - that is so cool!

Andrew
andyh2000 is offline   Reply With Quote
Old 11-04-2012, 03:04 PM   #33
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Great! Yeah, I misplaced full_update. It was supposed to be in the same directory as weather.py.
And that's weird that TTF files don't work...

Pygame is actually drawing directly to the Kobo's framebuffer, full_update just tells the system
to update the e-ink display.

Edit: I've updated the Kobo Touch installer to use OTF fonts, as well as placed full_update
where it needs to be.

Last edited by KevinShort; 12-15-2012 at 10:10 AM.
KevinShort is offline   Reply With Quote
Old 11-04-2012, 08:52 PM   #34
neonpolaris
Junior Member
neonpolaris began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2012
Device: kobo wifi
Fantastic work, I was able to get the weather display working on my kobo wifi easily! I''m now working on making it display some custom data of my own. How did you edit the python file during development? vi is such a pain to use, is there some easy way to get nano (or similar) running on the device?
neonpolaris is offline   Reply With Quote
Old 11-04-2012, 09:18 PM   #35
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 7,361
Karma: 46288753
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
It could be worse... could be emacs rather than vi, or teco (but not sure teco ever got ported from DEC).
PeterT is offline   Reply With Quote
Old 11-05-2012, 09:17 AM   #36
jkgeyti
Member
jkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to behold
 
Posts: 17
Karma: 11628
Join Date: Oct 2012
Device: Kobo Touch
Would it be possible to make the home button restart the Kobo? This way, I can add a link in ikarus9999's plugin to the weather-app, make it kill nickel and run, and still be able to "get back" to nickel by restarting the device using the home button. It's kind of a hassle that you have to telnet into the device to reboot it now.
jkgeyti is offline   Reply With Quote
Old 11-05-2012, 10:13 AM   #37
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by neonpolaris View Post
Fantastic work, I was able to get the weather display working on my kobo wifi easily! I''m now working on making it display some custom data of my own. How did you edit the python file during development? vi is such a pain to use, is there some easy way to get nano (or similar) running on the device?
Since the script uses pygame, I wrote and ran the code on my computer before putting it
on my Wifi. But if you'd still like to have nano on your Kobo, you could try downloading
and extracting this debian package to your Wifi.

Quote:
Originally Posted by jkgeyti View Post
Would it be possible to make the home button restart the Kobo? This way, I can add a link in ikarus9999's plugin to the weather-app, make it kill nickel and run, and still be able to "get back" to nickel by restarting the device using the home button. It's kind of a hassle that you have to telnet into the device to reboot it now.
Absolutely. I've set up something similar on my Wifi so I can start or stop nickel and
the weather display by pressing the back and home keys at the same time.

The easiest way to do this would probably be to start a "listener" script when you start
the weather display. Here's a python script that waits for the home button to be pressed
and then restarts the device:
Code:
import struct
from subprocess import call

buttons = open("/dev/input/event0")
format = "iihhi"
key_event = buttons.read(16)

running = 1

while running:
        
    (key_time1, key_time2, key_type, key_code, key_value) = struct.unpack(format, key_event)

    # Home button.
    if key_code == 102:
        if key_value == 1:
            print "Home button pressed"
            # Restart the device.
            call(["/bin/busybox", "reboot"])
            
    key_event = buttons.read(16)
Then all you have to do is point the plugin at a script that starts both the listener and the
weather display:
Code:
#!/bin/sh
killall nickel
cd /mnt/onboard/.apps/koboWeather
python listener.py &
./autoupdate.sh 
python weather.py

Last edited by KevinShort; 11-05-2012 at 12:37 PM. Reason: updated script
KevinShort is offline   Reply With Quote
Old 11-05-2012, 12:55 PM   #38
andyh2000
Fanatic
andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.
 
andyh2000's Avatar
 
Posts: 567
Karma: 1568694
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy S4 Mini phone / Kindle 4 Black / Kindle Paperwhite
Quote:
Originally Posted by neonpolaris View Post
Fantastic work, I was able to get the weather display working on my kobo wifi easily! I''m now working on making it display some custom data of my own. How did you edit the python file during development? vi is such a pain to use, is there some easy way to get nano (or similar) running on the device?
I've added a few bits to the display routine in my copy to make it run sensibly on Windows as well as the Kobo (though I haven't tested it on the device yet). I intend doing all the development under Windows then hopefully copy it across and off I go.

Code:
def display(days, highs, lows, conditions, img_links, unit):

    print("Creating image . . .")

    #### change for windows + python 2.6
    if (platform.system() == 'Windows'):
        pygame.init()
    else:
        pygame.display.init()
    ###

    pygame.font.init()
    pygame.mouse.set_visible(False)

    white = (255, 255, 255)
    black = (0, 0, 0)
    gray = (125, 125, 125)

    #### change for windows
    ###
    if (platform.system() == 'Windows'):
        display = pygame.display.set_mode((600, 800))
    else:
        display = pygame.display.set_mode((800, 600), pygame.FULLSCREEN)
    ###

    screen = pygame.Surface((600, 800))
    screen.fill(white)

    tiny_font = pygame.font.Font("Cabin-Regular.otf", 18)
    small_font = pygame.font.Font("Fabrica.otf", 22)
    font = pygame.font.Font("Forum-Regular.otf", 40)
    comfortaa = pygame.font.Font("Comfortaa-Regular.otf", 60)
    comfortaa_small = pygame.font.Font("Comfortaa-Regular.otf", 35)

    # Dividing lines
    pygame.draw.line(screen, gray, (10, 200), (590, 200))
    pygame.draw.line(screen, gray, (10, 400), (590, 400))
    pygame.draw.line(screen, gray, (200, 410), (200, 790))
    pygame.draw.line(screen, gray, (400, 410), (400, 790))

    # Today
    date = small_font.render(days[0], True, black, white)
    date_rect = date.get_rect()
    date_rect.topleft = 10, 15

    high = small_font.render('high: ', True, black, white)
    high_rect = high.get_rect()
    high_temp = comfortaa.render(highs[0], True, black, white)
    htemp_rect = high_temp.get_rect()
    high_rect.topleft = (50, 100)
    htemp_rect.topleft = high_rect.topright

    low = small_font.render("low: ", True, black, white)
    low_rect = low.get_rect()
    low_rect.topleft = (400, 100)
    low_temp = comfortaa.render(lows[0], True, black, white)
    ltemp_rect = low_temp.get_rect()
    ltemp_rect.topleft = low_rect.topright


    condition = font.render(conditions[0], True, black, white)
    con_rect = condition.get_rect()
    con_rect.centerx = 300
    con_rect.top = 5
    # Make sure words don't overlap
    if con_rect.left < date_rect.right:
        con_rect.left = date_rect.right

    image = pygame.image.load(img_links[0])
    image.set_colorkey((255, 255, 255))
    img_rect = image.get_rect()
    img_rect.center = (300, 125)
    degrees = pygame.image.load("icons/%s.png" % unit)

    screen.blit(condition, con_rect)
    screen.blit(high, high_rect)
    screen.blit(degrees, htemp_rect.topright)
    screen.blit(degrees, ltemp_rect.topright)
    screen.blit(high_temp, htemp_rect)
    screen.blit(low, low_rect)
    screen.blit(low_temp, ltemp_rect)
    screen.blit(image, img_rect)
    screen.blit(date, date_rect)


    # Tomorrow
    date = small_font.render(days[1], True, black, white)
    date_rect = date.get_rect()
    date_rect.topleft = 10, 210

    high = small_font.render('high: ', True, black, white)
    high_rect = high.get_rect()
    high_temp = comfortaa.render(highs[1], True, black, white)
    htemp_rect = high_temp.get_rect()
    high_rect.topleft = (50, 300)
    htemp_rect.topleft = high_rect.topright

    low = small_font.render("low: ", True, black, white)
    low_rect = low.get_rect()
    low_rect.topleft = (400, 300)
    low_temp = comfortaa.render(lows[1], True, black, white)
    ltemp_rect = low_temp.get_rect()
    ltemp_rect.topleft = low_rect.topright


    condition = font.render(conditions[1], True, black, white)
    con_rect = condition.get_rect()
    con_rect.centerx = 300
    con_rect.top = 210
    if con_rect.left < date_rect.right:
        con_rect.left = date_rect.right

    image = pygame.image.load(img_links[1])
    image.set_colorkey((255, 255, 255))
    img_rect = image.get_rect()
    img_rect.center = (300, 325)

    screen.blit(condition, con_rect)
    screen.blit(high, high_rect)
    screen.blit(degrees, htemp_rect.topright)
    screen.blit(degrees, ltemp_rect.topright)
    screen.blit(high_temp, htemp_rect)
    screen.blit(low, low_rect)
    screen.blit(low_temp, ltemp_rect)
    screen.blit(image, img_rect)
    screen.blit(date, date_rect)



    # Day 3
    date = small_font.render(days[2], True, black, white)
    date_rect = date.get_rect()
    date_rect.centerx = 100
    date_rect.top = 410

    high = small_font.render('high: ', True, black, white)
    high_rect = high.get_rect()
    high_temp = comfortaa_small.render(highs[2], True, black, white)
    htemp_rect = high_temp.get_rect()
    high_rect.topright = (100, 630)
    htemp_rect.midleft = high_rect.midright

    low = small_font.render("low:  ", True, black, white)
    low_rect = low.get_rect()
    low_rect.topright = (100, 710)
    low_temp = comfortaa_small.render(lows[2], True, black, white)
    ltemp_rect = low_temp.get_rect()
    ltemp_rect.midleft = low_rect.midright


    condition = tiny_font.render(conditions[2], True, black, white)
    con_rect = condition.get_rect()
    con_rect.centerx = 100
    con_rect.top = 450

    image = pygame.image.load(img_links[2])
    image.set_colorkey((255, 255, 255))
    img_rect = image.get_rect()
    img_rect.center = (100, 540)

    screen.blit(condition, con_rect)
    screen.blit(high, high_rect)
    screen.blit(degrees, htemp_rect.topright)
    screen.blit(degrees, ltemp_rect.topright)
    screen.blit(high_temp, htemp_rect)
    screen.blit(low, low_rect)
    screen.blit(low_temp, ltemp_rect)
    screen.blit(image, img_rect)
    screen.blit(date, date_rect)



    # Day 4
    date = small_font.render(days[3], True, black, white)
    date_rect = date.get_rect()
    date_rect.centerx = 300
    date_rect.top = 410

    high = small_font.render('high: ', True, black, white)
    high_rect = high.get_rect()
    high_temp = comfortaa_small.render(highs[3], True, black, white)
    htemp_rect = high_temp.get_rect()
    high_rect.topright = (300, 630)
    htemp_rect.midleft = high_rect.midright

    low = small_font.render("low:  ", True, black, white)
    low_rect = low.get_rect()
    low_rect.topright = (300, 710)
    low_temp = comfortaa_small.render(lows[3], True, black, white)
    ltemp_rect = low_temp.get_rect()
    ltemp_rect.midleft = low_rect.midright


    condition = tiny_font.render(conditions[3], True, black, white)
    con_rect = condition.get_rect()
    con_rect.centerx = 300
    con_rect.top = 450

    image = pygame.image.load(img_links[3])
    image.set_colorkey((255, 255, 255))
    img_rect = image.get_rect()
    img_rect.center = (300, 540)

    screen.blit(condition, con_rect)
    screen.blit(high, high_rect)
    screen.blit(degrees, htemp_rect.topright)
    screen.blit(degrees, ltemp_rect.topright)
    screen.blit(high_temp, htemp_rect)
    screen.blit(low, low_rect)
    screen.blit(low_temp, ltemp_rect)
    screen.blit(image, img_rect)
    screen.blit(date, date_rect)

    # Day 5
    date = small_font.render(days[4], True, black, white)
    date_rect = date.get_rect()
    date_rect.centerx = 500
    date_rect.top = 410

    high = small_font.render('high: ', True, black, white)
    high_rect = high.get_rect()
    high_temp = comfortaa_small.render(highs[4], True, black, white)
    htemp_rect = high_temp.get_rect()
    high_rect.topright = (500, 630)
    htemp_rect.midleft = high_rect.midright

    low = small_font.render("low:  ", True, black, white)
    low_rect = low.get_rect()
    low_rect.topright = (500, 710)
    low_temp = comfortaa_small.render(lows[4], True, black, white)
    ltemp_rect = low_temp.get_rect()
    ltemp_rect.midleft = low_rect.midright


    condition = tiny_font.render(conditions[4], True, black, white)
    con_rect = condition.get_rect()
    con_rect.centerx = 500
    con_rect.top = 450

    image = pygame.image.load(img_links[4])
    image.set_colorkey((255, 255, 255))
    img_rect = image.get_rect()
    img_rect.center = (500, 540)

    screen.blit(condition, con_rect)
    screen.blit(high, high_rect)
    screen.blit(degrees, htemp_rect.topright)
    screen.blit(degrees, ltemp_rect.topright)
    screen.blit(high_temp, htemp_rect)
    screen.blit(low, low_rect)
    screen.blit(low_temp, ltemp_rect)
    screen.blit(image, img_rect)
    screen.blit(date, date_rect)

    ### change for windows
    if (platform.system() == 'Windows'):
        update_time = "Last updated at " + datetime.now().strftime("%I:%M%p")
    else:
        update_time = "Last updated at " + datetime.now().strftime("%l:%M%P")
    ###

    last_update = tiny_font.render(update_time, True, gray, white)
    screen.blit(last_update, (5, 770))

    # Rotate the display to portrait view.

    ### change for windows
    if (platform.system() == 'Windows'):
        graphic = pygame.transform.rotate(screen, 0)
    else:
        graphic = pygame.transform.rotate(screen, 90)
    ###

    display.blit(graphic, (0, 0))
    pygame.display.update()

    ### change for windows
    if (platform.system() == 'Windows'):
        running = True
        while running:
            for event in pygame.event.get():
                if event.type == QUIT:
                    running = False
                elif event.type == KEYDOWN and event.key == K_ESCAPE:
                    pygame.event.post(pygame.event.Event(QUIT))

        pygame.quit()
    else:
        call(["./full_update"])
    ###


    #convert_to_raw(screen)
    #call(["/mnt/onboard/.python/display_raw.sh"])
    #index_error(error)
Andrew
andyh2000 is offline   Reply With Quote
Old 11-09-2012, 05:10 AM   #39
ghalfacree
Junior Member
ghalfacree began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: Sony PRS-505 and Kobo WiFi
Quote:
Originally Posted by KevinShort View Post
Edit: I've updated the script, it should now work globally. I also added an option to use
either Celsius or Fahrenheit for the temperature.
Sure enough, I'm now up and running. Thanks so much for doing this - it's a great hack!
ghalfacree is offline   Reply With Quote
Old 11-10-2012, 01:12 PM   #40
lst
Junior Member
lst began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2012
Device: kobo wifi
Quote:
Originally Posted by KevinShort View Post
Then all you have to do is point the plugin at a script
Which plugin are people using on the Wifi? All the plugins I could find on this forum seemed to be for the Touch, not the Wifi.

(I've got firmware 1.9.10 which is the latest as far as I can see)

cheers
lst is offline   Reply With Quote
Old 11-12-2012, 11:42 AM   #41
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by lst View Post
Which plugin are people using on the Wifi? All the plugins I could find on this forum seemed to be for the Touch, not the Wifi.
There is no plugin for the Wifi, though it might be possible if someone wanted to give it a shot.
What I've done on my Wifi is set up a listener that starts on boot and waits for the "back" and
"home" buttons to be pressed at the same time, and then starts either nickel or the weather display.
I'll upload the script as soon as I have time.
KevinShort is offline   Reply With Quote
Old 11-17-2012, 12:59 AM   #42
pcapelo
Junior Member
pcapelo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2007
Device: PRS-500
Hi,

First of all thank you for such great development. I bought a Kobo just for that, and now I have a fancy weather display

As a newbie, I have no idea about python, but I sure can follow instructions LOL, I have some questions regarding the weather software and Kobo:

1- After I setup the weather.sh with my latitude and longitude I went to worldweatheronline.com's website to check the data, turns out the temperatures on kobo are not the same that the ones on the website (using same lat/long). since this is my first day I will keep running weather.sh for a few days to compare data. Is that a reason why the info is different????

2-Is that a way to avoid kobo going to sleep, so I can have the weather display on all the time????

3- I understood kobo's OS is debian (or debian compatible, right??), if that so would be possible to install a webserver on it (I was thinking about using kobo as a python learning platform), for web development using python.

4- Is that a way to start weather.sh directly from kobo and not with telnet??? I saw something about this here but I have no idea how to implement (need some help).

Thank you again one more time

PC
pcapelo is offline   Reply With Quote
Old 11-17-2012, 05:19 AM   #43
ro-76
Junior Member
ro-76 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2003
Location: Ireland
Device: Pocket PC
Quote:
Originally Posted by pcapelo View Post
Hi,

2-Is that a way to avoid kobo going to sleep, so I can have the weather display on all the time????
I too would like to be able to set this up and forget about it.

If it's connected to a power source, will it stay awake?

Fantastic project BTW.
ro-76 is offline   Reply With Quote
Old 11-17-2012, 11:48 AM   #44
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by pcapelo View Post
1- After I setup the weather.sh with my latitude and longitude I went to worldweatheronline.com's website to check the data, turns out the temperatures on kobo are not the same that the ones on the website (using same lat/long). since this is my first day I will keep running weather.sh for a few days to compare data. Is that a reason why the info is different????
I'm not sure why that is. I've noticed that sometimes it seems to be off, but other times it's fine.

Quote:
Originally Posted by pcapelo View Post
2-Is that a way to avoid kobo going to sleep, so I can have the weather display on all the time????

4- Is that a way to start weather.sh directly from kobo and not with telnet??? I saw something about this here but I have no idea how to implement (need some help).
Yes and yes. If you run the command "killall nickel" from a terminal, your Kobo will not
go to sleep. To start the weather display without telnet, install this package on your Kobo.
You can then switch between the weather display and the normal Kobo interface by pressing
the Back and Home buttons at the same time (this will stop your Kobo from sleeping as well).

Quote:
Originally Posted by pcapelo View Post
3- I understood kobo's OS is debian (or debian compatible, right??), if that so would be possible to install a webserver on it (I was thinking about using kobo as a python learning platform), for web development using python.
The Kobo runs Linux, and most debian packages work just fine on the Kobo once you
install all the necessary dependencies, which is the hard part. I know nothing about
setting up a webserver, but it should be possible.

Quote:
Originally Posted by ro-76 View Post
I too would like to be able to set this up and forget about it.
If it's connected to a power source, will it stay awake?
It will. Or you can use the installer I linked to above.

Last edited by KevinShort; 11-17-2012 at 12:09 PM.
KevinShort is offline   Reply With Quote
Old 11-17-2012, 11:28 PM   #45
pcapelo
Junior Member
pcapelo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2007
Device: PRS-500
Hey Kevin,

Thank you very much. I couldn't ask for more.

Everything its working and I am now running some battery test to figure out how long it will last keeping kobo on all the time and updating weather every hour.

Again, I really appreciate your work and dedication

cheers

PC
pcapelo is offline   Reply With Quote
Reply

Tags
hacking, kobo wifi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 01:24 PM.


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