summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff')
-rw-r--r--media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff
new file mode 100644
index 000000000000..a44c70a63212
--- /dev/null
+++ b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff
@@ -0,0 +1,25 @@
+diff -Naur weatherng-0.0.8-pre3.orig/examples/weatherng.sh weatherng-0.0.8-pre3/examples/weatherng.sh
+--- weatherng-0.0.8-pre3.orig/examples/weatherng.sh 2006-10-29 16:12:51.885610489 +0100
++++ weatherng-0.0.8-pre3/examples/weatherng.sh 2006-10-29 16:13:22.559358488 +0100
+@@ -57,9 +57,11 @@
+ ;;
+ esac
+
+-for i in $(seq 0 10) ; do
+- eval ${URLS[$i]:+ wget -t 4 -T 20 "${URLS[$i]}" -O "${WEATHERNG_DATA_DIR}/pic${i}"}
+-done
++if ping -c2 83.97.42.2 > /dev/null ; then
++
++ for i in $(seq 0 10) ; do
++ eval ${URLS[$i]:+ wget -t 4 -T 20 "${URLS[$i]}" -O "${WEATHERNG_DATA_DIR}/pic${i}"}
++ done
+
+ # Dont change or uncomment this and the following 5 lines. ;)
+ # Uncomment download only if you have a permission from The Weather Channel (see README).
+@@ -72,4 +74,6 @@
+ wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${WEATHERNG_STATIONID2}?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "${WEATHERNG_DATA_DIR}/data2.xml"
+ wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${WEATHERNG_STATIONID3}?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "${WEATHERNG_DATA_DIR}/data3.xml"
+
++fi
++
+ echo $MESG