hi all,
so I managed with some help to get the kindle to download, shut down wifi and convert the wanted image:
Code:
import requests
import os
r = requests.get('https://www.dwd.de/DWD/wetter/wv_spez/hobbymet/wetterkarten/ico_tkboden_na_024.png', allow_redirects=True)
os.system("lipc-set-prop com.lab126.cmd wirelessEnable 0")
with open('bild.png', 'wb') as f:
f.write(r.content)
os.system("/mnt/us/linkss/bin/convert /mnt/us/wetter/bild.png -rotate 270 -colorspace gray -resize 600x800\! -depth 8 -colors 16 +dither -type palette -quality 75 /mnt/us/linkss/screensavers/bg_xsmall_ss00.png")
I tested earlier that I could run that scipt through cron (that will also turn on wifi one minute earlier).
That seems to work.
However until now the screensaver only displays a new image after restarting the framework (through kual).
Is there a better way to do that? The image should already have the correct format and has always the same name, so I don't understand why that is necessary..