Update of /usr/bin/wunderground.sh

By: ramsaasen , 8:12 PM GMT on November 06, 2013

Thanks to Lork I finally manage to get my station online again !
see: forum.openwrt.org

For some reason wunderground suddenly stopped receiving data,
it seems to be caused by a space in date/time dateutc.

The fix is to replace space with %20, see code:

while read line
  WGET2="$WGET`echo $line | sed "s/ /%20/g"`"
  echo $WGET2
  wget -O - "$WGET2"
done < $LOG

The views of the author are his/her own and do not necessarily represent the position of The Weather Company or its parent, IBM.

Reader Comments

No reader comments have been posted for this blog entry yet.

ramsaasen doesn't have a bio yet.

Ad Blocker Enabled