mrmeval

Fix for the Kobo Wifi weather station hack

Nov 2nd, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. Fix for the Kobo Weather station hack
  2.  
  3. Ok this does NOT WORK as described. You have to apply for a free api license key from http://www.worldweatheronline.com
  4.  
  5. Use the API explorer to generate a link with your key and zip code. Use XML format. It will look something like the following.
  6.  
  7. http://api.worldweatheronline.com/free/v1/weather.ashx?q=MYZIPCODE&format=xml&num_of_days=5&key=abunchofletttersandnumbers
  8.  
  9. Don't pick any of the options, they're not used just enter your zipcode though you can enter zip code or latitude longitude.
  10.  
  11. Once you have that get the koboroot.tgz file here
  12.  
  13. http://www.mobileread.com/forums/showthread.php?t=194376
  14.  
  15. Decompress it in a folder, it's a gzipped tar file so you'll have to find a tool for it for windows.
  16.  
  17. inside it is a file called weather.py, it's located at mnt/onboard/.apps
  18.  
  19. Edit it and find the worldweatheronline link which will be this
  20.  
  21. weather_link='http://free.worldweatheronline.com/feed/weather.ashx?q={0},{1}&format=xml&num_of_days=5&key=525804183f140652120211'.format(lat, lon)
  22.  
  23. Delete everything from ' to the end like this
  24.  
  25. weather_link='
  26.  
  27. paste in the link you made
  28.  
  29. weather_link='http://api.worldweatheronline.com/free/v1/weather.ashx?q=MYZIPCODE&format=xml&num_of_days=5&key=abunchofletttersandnumbers'
  30.  
  31. 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.
  32.  
  33. 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.
  34.  
  35. 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