From 211ec3afdb56c332fb93f9aa9c88ebf8e82bffa0 Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Wed, 4 Sep 2013 18:18:15 +0200 Subject: [PATCH] temperature_: fix for F units Closes #371 --- plugins/weather/temperature_ | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/weather/temperature_ b/plugins/weather/temperature_ index 6aaf0b54..f7187f7c 100755 --- a/plugins/weather/temperature_ +++ b/plugins/weather/temperature_ @@ -79,10 +79,11 @@ if (defined $ARGV[0] and $ARGV[0] eq "config") { } if ($response->content =~ /Temperature:\s*(.*)\s+F\s*\(\s*(.*)\s+C/) { + my ($f, $c) = ($1, $2); if ($unit =~ /F/) { - print "temperature.value $1\n"; + print "temperature.value $f\n"; } else { - print "temperature.value $2\n"; + print "temperature.value $c\n"; } } else { print "temperature.value U\n";