From ae2a03c2941bf92573f89b88ef73f8aa842bea0a Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kweather/test.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 kweather/test.sh (limited to 'kweather/test.sh') diff --git a/kweather/test.sh b/kweather/test.sh new file mode 100755 index 0000000..ee64ba2 --- /dev/null +++ b/kweather/test.sh @@ -0,0 +1,28 @@ +#!/bin/bash +mkdir nowind nopress notemp +for file in `ls .` +do + METAR=`cat $file | grep -v ":"` +# echo testing data $METAR + KWEATHER=`dcopfind kweather* weatherIface` + dcop "$KWEATHER" parseWeather "$METAR" false + WIND=`dcop "$KWEATHER" get_wind` + PRESS=`dcop "$KWEATHER" get_pressure` + TEMP=`dcop "$KWEATHER" get_temperature` + if `test "$WIND"=""` + then + cp $file nowind/$file + fi + if `test "$PRESS"=""` + then + cp $file nopress/$file + fi + if `test "$TEMP"=""` + then + cp $file notemp/$file + fi + + echo $WIND $PRESS $TEMP +# #sleep 1 +done + -- cgit v1.2.1