# cd /usr/local/src # wget http://vdr.bluox.org/download/vdr-weatherng/vdr-weatherng-0.0.6a.tgz # tar xvfz vdr-weatherng-0.0.6a.tgz -C VDR/PLUGINS/src # cd VDR/PLUGINS/src # ln -s weatherng-0.0.6a weatherng # cd ../.. # make plugins # cp PLUGINS/lib/* /usr/local/lib/vdr/ # cd .. # rm vdr-weatherng-0.0.6a.tgzIl faut à présent installer les images du plugins. Ces images affichent la tendance météo en fonction des données Internet.
# mkdir /VDRConf/plugins/weatherng # cd /usr/local/src # wget http://vdr.bluox.org/d/vdr-weatherng/images-196x196.tar.gz # tar xvfz images-196x196.tar.gz -C /VDRConf/plugins/weatherng # cd /VDRConf/plugins/weatherng # rm SatDownload # wget http://vdr.bluox.org/d/vdr-weatherng/SatDownload # chmod +x SatDownload
#!/bin/sh
#
# SatDownload
#
# source: vdr-plugin weatherng
#
# add this line to your commands.conf:
# folgende zeile in die commands.conf eintragen:
#
# Update satellite image(s) : /path_to_this_script/SatDownload
SETUPDIR=/VDRConf
LANGUAGE=( `grep -s ^OSDLanguage.*[0-9]$ "$SETUPDIR/setup.conf"` )
case "${LANGUAGE[2]}" in
1) MESG='Download abgeschlossen und Radarmaps aktualisiert'
URLS=(\
http://www.dwd.de/scripts/getimg.php?src=/wundk/Wetter.jpg \
http://www.wetter24.de/automatic/brd_tag_n+ww00002.jpg \
http://www.wetter24.de/automatic/brd_tag_dd00002.jpg \
http://www.wetter24.de/automatic/brd_tag_tt00002.jpg \
http://www.wetter24.de/automatic/brd_tag_rr00002.jpg \
http://www.wetterzentrale.de/pics/sat.mpg \
)
;;
6) MESG='Téléchargement des données Météo OK'
URLS=(\
http://meteo.france3.fr/img/f3-france-512x384-j0pm.jpg \
http://meteo.france3.fr/img/f3-ouest-512x384-j0pm.jpg \
http://meteo.france3.fr/img/f3-ouest-512x384-j1am.jpg \
http://meteo.france3.fr/img/f3-ouest-512x384-j1pm.jpg \
http://meteo.france3.fr/img/f3-ouest-512x384-j2am.jpg \
)
;;
8) MESG='Sääkuvat päivitetty'
URLS=(\
http://www.yle.fi/saakartat/isokartta.jpg \
http://www.yle.fi/saakartat/imgday1.jpg \
http://www.yle.fi/saakartat/imgday2.jpg \
http://www.yle.fi/saakartat/image1.jpg \
http://weather.fmi.fi/yle/suomineito_1.gif \
)
;;
*) MESG='Weather pictures updated'
URLS=(\
"?" \
"?" \
"?" \
"?" \
"?" \
)
;;
esac
${URLS[0]:+ wget -t 4 -T 20 "${URLS[0]}" -O "$SETUPDIR/plugins/weatherng/overall.wet"}
${URLS[1]:+ wget -t 4 -T 20 "${URLS[1]}" -O "$SETUPDIR/plugins/weatherng/pic1.wet"}
${URLS[2]:+ wget -t 4 -T 20 "${URLS[2]}" -O "$SETUPDIR/plugins/weatherng/pic2.wet"}
${URLS[3]:+ wget -t 4 -T 20 "${URLS[3]}" -O "$SETUPDIR/plugins/weatherng/pic3.wet"}
${URLS[4]:+ wget -t 4 -T 20 "${URLS[4]}" -O "$SETUPDIR/plugins/weatherng/pic4.wet"}
${URLS[5]:+ wget -t 4 -T 20 "${URLS[5]}" -O "$SETUPDIR/plugins/weatherng/Wetteranimation.mpg"}
echo $MESG
Editez votre fichier commands.conf (dans /VDRConf/)
et ajouter la ligne suivante: