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";