Hallo!
Seit geraumer Zeit schlage ich mit dem Weather-Plugin rum. Es mag mir einfach keine Vorschauwerte liefern. Satbilder hingegen kann ich empfangen!
Diesen Thread habe ich zwar gelesen - komme aber damit auch nicht weiter...
WeatherNG Instalation für Dummies gesucht
Hier mal meine weatherng.conf:
Code
#
# Weather map images
#
# Specifiy the URLs of weather maps, which should be displayed in the plugin
#
MAP_URL_1=""
MAP_URL_2="http://www.dwd.de/bvbw/generator/Sites/DWDWWW/Content/Oeffentlichkeit/WV/WV11/Warnungen/Wetter__Aktuell/Regionenwetter/WetterDeutschland__allgemein__Bild,property=default.jpg"
MAP_URL_3="http://www.tagesschau.de/import/wetter/de-vs-tn.jpg"
MAP_URL_4="http://www.tagesschau.de/import/wetter/de-vs-tt.jpg"
MAP_URL_5="http://www.tagesschau.de/import/wetter/de-vs-3t.jpg"
#
# The Weather Channel XML data source
#
# See README.Debian on how to obtain the partner id, license key and
# station ID (up to three different station ID's can be provided).
#
TWC_PARTNER_ID="1075717114"
TWC_LICENSE_KEY="a2357f8a22f475c5"
TWC_STATION_ID_1="89250"
TWC_STATION_ID_2="GMXX0131" #Ulm
TWC_STATION_ID_3=""
Alles anzeigen
und meine weatherng.sh
Bash
#!/bin/sh
#
#
# This script is responsible for downloading weather maps and weather
# information for vdr-plugin-weatherng
#
CACHEDIR=/var/cache/vdr-plugin-weatherng
CFGFILE=/etc/vdr/plugins/weatherng.conf
if [ -f $CFGFILE ] ; then
. $CFGFILE
else
echo "config file '$CFGFILE' not found" >&2
exit 1
fi
if [ ! -d $CACHEDIR ] ; then
echo "cache dir '$CACHEDIR' not found" >&2
exit 1
fi
#
# Download weather maps
#
for URL_NUMBER in $(seq 1 5) ; do
URL=`eval echo \\$MAP_URL_$URL_NUMBER`
PIC_NUMBER=`expr $URL_NUMBER - 1`
wget -t 4 -T 20 "$URL" -O "$CACHEDIR/pic$PIC_NUMBER"
done
#
# Download XML Feed from The Weather Channel
#
for STATION_NO in 1 2 3 ; do
STATION_ID=`eval echo \\$TWC_STATION_ID_$STATION_NO`
if [ -n "$STATION_ID" ] ; then
wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${STATION_ID}?cc=*&unit=m&dayf=10&link=xoap&prod=xoap&par=${TWC_PARTNER_ID}&key=${TWC_LICENSE_KEY}" -O "$CACHEDIR/data$STATION_NO.xml"
fi
done
#!/bin/sh
#
#
# This script is responsible for downloading weather maps and weather
# information for vdr-plugin-weatherng
#
CACHEDIR=/var/cache/vdr-plugin-weatherng
CFGFILE=/etc/vdr/plugins/weatherng.conf
if [ -f $CFGFILE ] ; then
. $CFGFILE
else
echo "config file '$CFGFILE' not found" >&2
exit 1
fi
if [ ! -d $CACHEDIR ] ; then
echo "cache dir '$CACHEDIR' not found" >&2
exit 1
fi
Alles anzeigen