From f39086e1c585d522676aab0da5b5d2dd5b0174d8 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 27 Dec 2022 16:39:42 +0100 Subject: [PATCH] Cache DWD radar image --- defaults/cron/dwd | 3 +++ defaults/skin-wdc/skin.conf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults/cron/dwd b/defaults/cron/dwd index ad84293..394b513 100644 --- a/defaults/cron/dwd +++ b/defaults/cron/dwd @@ -23,4 +23,7 @@ export PATH="/opt/venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sb # BBK /usr/local/bin/bbk-warnings --config=/data/weewx.conf 2>/dev/null >/dev/null +# Radar +/usr/bin/wget -nv -O /home/weewx/skins/weewx-wdc/dwd/radar_nrw.gif https://www.dwd.de/DWD/wetter/radar/radfilm_nrw_akt.gif 2>/dev/null >/dev/null + exit 0 diff --git a/defaults/skin-wdc/skin.conf b/defaults/skin-wdc/skin.conf index d146387..d9850de 100644 --- a/defaults/skin-wdc/skin.conf +++ b/defaults/skin-wdc/skin.conf @@ -7,7 +7,7 @@ SKIN_VERSION = 2.3.2 github_link = True # This radar image would be available as $Extras.radar_img - radar_img = https://www.dwd.de/DWD/wetter/radar/radfilm_nrw_akt.gif + radar_img = /dwd/radar_nrw.gif # This URL will be used as the image hyperlink: radar_url = https://www.dwd.de/DE/leistungen/radarbild_film/radarbild_film.html