diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ae2a03c2941bf92573f89b88ef73f8aa842bea0a (patch) | |
tree | 3566563f3fb6ac3cb3496669d8f233062d3091bc /kweather/test.sh | |
download | tdetoys-ae2a03c2941bf92573f89b88ef73f8aa842bea0a.tar.gz tdetoys-ae2a03c2941bf92573f89b88ef73f8aa842bea0a.zip |
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
Diffstat (limited to 'kweather/test.sh')
-rwxr-xr-x | kweather/test.sh | 28 |
1 files changed, 28 insertions, 0 deletions
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 + |