From b6e5cb41d9b5169c919ff2000793a18d8f30d624 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= <einar@haraldseid.net>
Date: Thu, 7 Mar 2013 15:32:49 +0100
Subject: [PATCH 1/1] =?utf8?q?Mottatt=20patch=20for=20=C3=A5=20matche=20me?=
 =?utf8?q?r=20n=C3=B8yaktig=20p=C3=A5=20temperatur=20og=20tidspunkt=20for?=
 =?utf8?q?=20siste=20m=C3=A5ling?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 yr-temp.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/yr-temp.sh b/yr-temp.sh
index 07898b5..0f9dd59 100755
--- a/yr-temp.sh
+++ b/yr-temp.sh
@@ -55,9 +55,9 @@ else
 fi
 
 # Hent ut data ved hjelp av XPath
-TEMP=$(cat ${FIL} | xmlstarlet sel -t -v "//weatherstation[1]//@value")
-STASJON=$(cat ${FIL} | xmlstarlet sel -t -v "//weatherstation[1]//@name")
-TIME_ZULU=$(cat ${FIL} | xmlstarlet sel -t -v "//weatherstation[1]//@time" | tr T ' ')
+TEMP=$(cat ${FIL} | xmlstarlet sel -t -v "//weatherstation[1]/temperature/@value")
+STASJON=$(cat ${FIL} | xmlstarlet sel -t -v "//weatherstation[1]/@name")
+TIME_ZULU=$(cat ${FIL} | xmlstarlet sel -t -v "//weatherstation[1]/temperature/@time" | tr T ' ')
 
 # Og litt ekstra datatygging
 TIME=$(date +%H.%M -d "${TIME_ZULU}")
-- 
2.30.2