X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=parse.pl;h=9c6e5bf695c93f26422eb112c5911977a159f426;hb=3d3b89419d1779891fd4cd4701ceeafff6a22c44;hp=593f1abad7d6ef4601af34fe1bd6b58dfaecf724;hpb=b0478e6fcec0f413e4bb3abecc7f0b4046851a29;p=vaillant-thermostat diff --git a/parse.pl b/parse.pl index 593f1ab..9c6e5bf 100755 --- a/parse.pl +++ b/parse.pl @@ -16,7 +16,7 @@ while(<>) { if ( m/^([0-9\.]+) .+aa fc 39 aa (.+)/ ) { my $t = $1; #warn "# $1 $2\n"; - my @l = split(/\s/,$2); + my @l = split(/\s+/,$2); my @d = ( $t, hex( $l[0] . $l[1] ), @@ -26,6 +26,7 @@ while(<>) { hex( $l[14] ), # * 300, hex( $l[15] ), # * 400, hex( $l[18] ), + $temp ); if ( $influx ) { open($curl, '|-', qq( tee /dev/shm/parse.curl | curl -XPOST $influx --data-binary \@- )) unless $curl;