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 09-28-2013, 09:47 AM   #106
weese
Junior Member
weese began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2013
Device: Kobo Mini
Quote:
Originally Posted by pcapelo View Post
Hi gang,

I had mine working for so long that when it stopped working i had no ideia what was going on.

what exactly changed, where can I get the new script and how can I install??

thanks in advance

PC
I just adapted the new weather app to some API changes at worldweatheronline. Just update or clone the app from:
http://bitbucket.org/david_weese/kobo-weather-app

Cheers,
David
weese is offline   Reply With Quote
Old 01-01-2014, 02:55 PM   #107
laidig
Junior Member
laidig began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2014
Device: Kobo WiFi
API Link has changed

Just a note for anyone trying this out from here on. It appears that the API from worldweatheronline has changed slightly:
1. The key embedded in the app has ceased to work
2. If you request a new key, you will receive a new URL.

To solve this, go to worldweatheronline.com, sign up for an account and request a new 'free' api key. Once you have it, go to
http://developer.worldweatheronline.com/io-docs to see how it works.

You can then drop your new URL into the same python script, searching for "weather_link="

http://api.worldweatheronline.com/free/v1/weather.ashx?q={0},{1}&format=xml&num_of_days=5&ke y=[YOUR KEY HERE]
laidig is offline   Reply With Quote
Old 01-04-2014, 02:27 AM   #108
exachillus
Zealot
exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.exachillus once ate a cherry pie in a record 7 seconds.
 
Posts: 107
Karma: 1910
Join Date: Jan 2014
Device: Nook
Hi

Does this work with Kobo Glo?
exachillus is offline   Reply With Quote
Old 01-10-2014, 06:02 PM   #109
Tandy
Junior Member
Tandy began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2014
Device: Kobo
Hello all,

A newbie here who very much wants to get a Kobo for this specific purpose. I'm planning on scouring ebay for one. Are there any concerns (aside from condition) regarding particular models/versions that would prevent rooting and this from working?

Thanks for all the work you've done!
Tandy is offline   Reply With Quote
Old 01-12-2014, 03:36 PM   #110
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: 340
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by Tandy View Post
Hello all,

A newbie here who very much wants to get a Kobo for this specific purpose. I'm planning on scouring ebay for one. Are there any concerns (aside from condition) regarding particular models/versions that would prevent rooting and this from working?

Thanks for all the work you've done!
There are two models of the Kobo Wifi, and this hack works on both of them. You will have to make the change outlined in this post since World Weather Online changed their API.
KevinShort is offline   Reply With Quote
Old 01-12-2014, 06:35 PM   #111
rantoie
Enthusiast
rantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of lightrantoie is a glorious beacon of light
 
Posts: 32
Karma: 12054
Join Date: Jan 2014
Device: kobo aura hd
Does this work for the Aura (HD)? The latest firmware is 3.1.1 and it looks like this doesn't work with anything newer than 2.5.2...
rantoie is offline   Reply With Quote
Old 01-13-2014, 03:18 PM   #112
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: 340
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by rantoie View Post
Does this work for the Aura (HD)? The latest firmware is 3.1.1 and it looks like this doesn't work with anything newer than 2.5.2...
No, I haven't updated the app to run on anything besides the Wifi, Touch, and Mini.
KevinShort is offline   Reply With Quote
Old 01-15-2014, 09:55 PM   #113
Tandy
Junior Member
Tandy began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2014
Device: Kobo
Got my Kobo in today, and all is working! The device did do a firmware update when I connected it to the network. And later I noticed that the autoupdate would not work, it looks like this busybox doesn't have crond.

Can that be installed on its own?

I did a temporary workaround with "watch" :
watch -n 300 /mnt/onboard/.python/weather.sh > /dev/null &

However I haven't read up on the power requirements of this device. Eventually I plan on building a little docking station so it can stay plugged in. Thanks for your work, Kevin!
Tandy is offline   Reply With Quote
Old 01-20-2014, 03:47 PM   #114
Tandy
Junior Member
Tandy began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2014
Device: Kobo
My Kobo Wifi has an 8-bit display, as indicated by fbset. Is there any way to refresh the display without it filling the screen with black, and then back to white?
Tandy is offline   Reply With Quote
Old 01-20-2014, 05:39 PM   #115
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: 340
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by Tandy View Post
My Kobo Wifi has an 8-bit display, as indicated by fbset. Is there any way to refresh the display without it filling the screen with black, and then back to white?
I don't have an 8-bit Kobo myself, so I don't know if there's another way. The only way I've found to refresh the screen on the Wifi is by using Pickel.
KevinShort is offline   Reply With Quote
Old 01-20-2014, 05:50 PM   #116
Tandy
Junior Member
Tandy began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2014
Device: Kobo
Quote:
Originally Posted by KevinShort View Post
I don't have an 8-bit Kobo myself, so I don't know if there's another way. The only way I've found to refresh the screen on the Wifi is by using Pickel.
Thanks Kevin. So in your Tetris example, you're using the Touch - I'm guessing that means it has additional capabilities for drawing or screen refresh?

Basically I'm looking at rendering data from my own home weather station. At first I figured the easiest way would be for my Linux box of doing the heavy lifting of processing the data and creating the raw image for the Kobo to consume. I figured I'd FTP a new image to the Kobo every time the data is updated.

That was until I realized refreshing the screen every 30 seconds or so would be unpleasant if it has to do a full redraw, so I'm wondering what my other options are.
Tandy is offline   Reply With Quote
Old 01-21-2014, 11:06 AM   #117
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: 340
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Yeah, on the newer Kobos such as the Touch I found the native IOCTL calls to refresh the screen, so you can then choose what kind of refresh to do. But I haven't been able to find anything like that for the Wifi, although the Kobo software does do partial refreshes somehow.
KevinShort is offline   Reply With Quote
Old 01-25-2014, 04:54 AM   #118
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: 561
Karma: 1568694
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy S4 Mini phone / Kindle 4 Black / Kindle Paperwhite
Latest in the line of "what can I do with my Kobo?" - pushing position updates to it over the mqtt protocol and showing an openstreetmap map using osmviz. Python code on the Kobo is based on stuff in this thread. You could use this for showing realtime weather info from sensors as well - anything where you want to push data to the Kobo rather than have it polling.



Code:
import urllib2
import pygame, os
import platform
import time
import mosquitto

from osmviz.manager import PygameImageManager, OSMManager
from pygame.locals import *
from datetime import date, datetime, timedelta
from subprocess import call


def on_connect(mosq, obj, rc):
    mosq.subscribe("hello/#", 0)
    print("rc: "+str(rc))

def on_message(mosq, obj, msg):
    print(msg.topic+" "+str(msg.qos)+" "+str(msg.payload))
    if (platform.system() == 'Windows'):
        update_time = "Last updated at " + datetime.now().strftime("%H:%M:%S %Y-%m-%d")
    else:
        update_time = "Last updated at " + datetime.now().strftime("%l:%M%P")

    last_update = tiny_font.render(update_time, True, gray, white)

    me = tiny_font.render("o", True, black, white)

    #Clear screen
    screen.fill(white)

    # Map image
    latlng = msg.payload.split(',')
    lat = float(latlng[0])
    lng = float(latlng[1])
    minlat = lat - 0.01
    maxlat = lat + 0.01
    minlng = lng - 0.01
    image,bnds = osm.createOSMImage( (minlat, maxlat, minlng, maxlng), 16)
    screen.blit(image, (0, 0))
    imgr.destroy_image()

    #Me marker
    screen.blit(me, (299, 399))

    #Update date/time
    screen.blit(last_update, (185, 770))

    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()

    call(["./full_update"])

def on_publish(mosq, obj, mid):
    print("mid: "+str(mid))

def on_subscribe(mosq, obj, mid, granted_qos):
    print("Subscribed: "+str(mid)+" "+str(granted_qos))

def on_log(mosq, obj, level, string):
    print(string)

os.environ['SDL_NOMOUSE'] = '1'

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)

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))

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)
#bigfont = pygame.font.Font("Forum-Regular.otf", 120)
#comfortaa = pygame.font.Font("Comfortaa-Regular.otf", 80)
#comfortaa_small = pygame.font.Font("Comfortaa-Regular.otf", 35)

imgr = PygameImageManager()
osm = OSMManager(image_manager=imgr)

# Rotate the display to portrait view.

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()

mqttc = mosquitto.Mosquitto()
mqttc.on_message = on_message
mqttc.on_connect = on_connect
mqttc.on_publish = on_publish
mqttc.on_subscribe = on_subscribe
# Uncomment to enable debug messages
#mqttc.on_log = on_log
mqttc.connect("mqttbroker.local", 1883, 60)

if (platform.system() != 'Windows'):
    running = True
    while running:
        mqttc.loop(timeout=0)
        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))

    mqttc.disconnect()
    pygame.quit()
Andrew
andyh2000 is offline   Reply With Quote
Old 01-25-2014, 09:25 AM   #119
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: 340
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
That's awesome, Andrew!
KevinShort is offline   Reply With Quote
Old 01-25-2014, 10:48 AM   #120
lohtse
Zealot
lohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exerciselohtse juggles running chainsaws for a bit of light exercise
 
lohtse's Avatar
 
Posts: 120
Karma: 38050
Join Date: Oct 2013
Location: Anywhere I am sent!!!
Device: Kobo Touch
any chance someone could create and easy all in one installation using update file ??
lohtse 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 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


All times are GMT -4. The time now is 02:38 PM.


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