From 4aa0c672b8427934b3b9582fb8b49a3a8d40dc5d Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Tue, 3 May 2016 12:34:13 +0000 Subject: [PATCH] 32_speedtest.pm: create readings withou units git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11378 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- CHANGED | 1 + FHEM/32_speedtest.pm | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGED b/CHANGED index e789dce21..b8fe16bc7 100644 --- a/CHANGED +++ b/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: speedtest: create readings without units - feature: HUEBridge,HUEDevice,LightScene: use new HUE scenes api - feature: 74:AMAD: add Attribut for TTS speed and notify file path - bugfix : 74:AMAD: modify informationsflow diff --git a/FHEM/32_speedtest.pm b/FHEM/32_speedtest.pm index 8b66e1c19..22ce1ad5d 100755 --- a/FHEM/32_speedtest.pm +++ b/FHEM/32_speedtest.pm @@ -160,6 +160,10 @@ speedtest_SpeedtestDone($) return; } + $a[1] =~ s/\s.*// if( defined($a[1]) ); + $a[2] =~ s/\s.*// if( defined($a[2]) ); + $a[3] =~ s/\s.*// if( defined($a[3]) ); + readingsBeginUpdate($hash); readingsBulkUpdate($hash,"ping",$a[1]);