View Single Post
Old 06-18-2019, 05:30 PM   #1
nick-tech
Enthusiast
nick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned off
 
Posts: 46
Karma: 97694
Join Date: Feb 2012
Device: kindle touch
Weather Maps on Kindle

Dear Fellow Mobilereaders,

it's been quite a while since my last visit here, but I'm glad that the forum is still very active.


As you might remember I equipped my Kindle Touch with a solar cell in 2012 (and upgraded the cell in 2013):
https://www.mobileread.com/forums/sh...d.php?t=182872
I still use this upgraded Kindle and haven't charged it ever since.


However:
For a few years I have been paragliding now, so I am more interested in the wheater as I used to be.
I would like to get a deeper understanding of the wheater than "tomorrow it's gona be rainy and 20 °C". For that I found wheater maps to be helpful (once you learn how to read them and you look in the sky occasionally you understand why the clouds look how they are...
I would like to add funcitionality to my device: I would like to show a wheater map when in standby/screensaver mode.

Basically I want the Kindle to do the following:
- Every Morning at 5:50 AM, wake up, connect to wifi, download a weather map from a public source, e.g.:

Analysis:
https://www.dwd.de/DWD/wetter/wv_spe...ck_weu_ana.png

Prognosis:
https://www.dwd.de/DWD/wetter/wv_spe...den_na_024.png

- disconnect from wifi (i run on solar power, so i don't have mA's for free ;-)

- convert this file to fit the screen (i.e. 800x600 png, greyscale)

- the image from DWD (=Deutscher Wetterdienst/German Wheater Service) almost has the correct aspect ratio. The images attached are slightly squeezed to fit 800x600. Cropping a few pixels on the top would also be ok

- display this image in standby/screensaver mode until the next update

What I've done so far:
- Jailbroken my kindle touch (now running 5.3.7.3)
- ssh via Wifi works
- installed python
- installed the Screensavers Hack (it's already displaying a manually uploaded wheater map)

Where I need help:
- I think I will need a script that does the following
- wake up the kindle
- turn on wifi
- download the image (unfortnunatley it' served why https only, wget on the kindle doesn't support that?)
- turn off wifi
- convert the image
- copy the image to the screensaver folder
- do something to update the screensaver?
- go back to sleep/screensaver
- I have no idea how the png to png(800x600 greyscale) (or something the screensaver can display) conversion could work on a kindle, I think this is the hardest part
- I don't know how to run this script every morning automatically
- After all I think it would be great to do all this in a way that others can use it aswell (with KUAL and the new MRPI), but I have no idea how to do that.

So I would be very happy if someone is willing to help me!
Attached Thumbnails
Click image for larger version

Name:	wetter.png
Views:	294
Size:	219.1 KB
ID:	171970   Click image for larger version

Name:	ico_tkboden_na_024.png
Views:	238
Size:	194.7 KB
ID:	171971  

Last edited by nick-tech; 06-18-2019 at 05:46 PM.
nick-tech is offline   Reply With Quote