Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fix for the Kobo Weather station hack
- Ok this does NOT WORK as described. You have to apply for a free api license key from http://www.worldweatheronline.com
- Use the API explorer to generate a link with your key and zip code. Use XML format. It will look something like the following.
- http://api.worldweatheronline.com/free/v1/weather.ashx?q=MYZIPCODE&format=xml&num_of_days=5&key=abunchofletttersandnumbers
- Don't pick any of the options, they're not used just enter your zipcode though you can enter zip code or latitude longitude.
- Once you have that get the koboroot.tgz file here
- http://www.mobileread.com/forums/showthread.php?t=194376
- Decompress it in a folder, it's a gzipped tar file so you'll have to find a tool for it for windows.
- inside it is a file called weather.py, it's located at mnt/onboard/.apps
- Edit it and find the worldweatheronline link which will be this
- weather_link='http://free.worldweatheronline.com/feed/weather.ashx?q={0},{1}&format=xml&num_of_days=5&key=525804183f140652120211'.format(lat, lon)
- Delete everything from ' to the end like this
- weather_link='
- paste in the link you made
- weather_link='http://api.worldweatheronline.com/free/v1/weather.ashx?q=MYZIPCODE&format=xml&num_of_days=5&key=abunchofletttersandnumbers'
- do another single quote and save it and then compress the mnt directory into another file named koboroot.tgz and follow the instructions on how to get that loaded into the kobo.
- I am working on a clock that updates every second if I can figure out how to make the screen only refresh every minute and not let the script keep updating the weather every second.
- Once I fixed it I ran the script that sets it up to update every hour. it will get a nice frame to hide the power plug and get hung in my kitchen.
Add Comment
Please, Sign In to add comment