From 56f005c0ba6229bb228667ab0bfc7b382e7c72e5 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 8 Feb 2020 15:10:03 +0100 Subject: [PATCH] default serial port, less debug output --- dsm501.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsm501.pl b/dsm501.pl index 8e183c8..0032747 100755 --- a/dsm501.pl +++ b/dsm501.pl @@ -6,7 +6,7 @@ use Device::SerialPort; use Time::HiRes; use Data::Dump qw(dump); -my $port = shift @ARGV || '/dev/ttyUSB2'; +my $port = shift @ARGV || '/dev/ttyUSB4'; my $influx_url = shift @ARGV || 'http://10.13.37.229:8186/write?db=telegraf'; $influx_url = 'http://10.13.37.92:8086/write?db=rot13'; my $measurement = $ENV{MEASUREMENT} || 'dsm501'; @@ -27,7 +27,7 @@ while (1) { my $t = int( Time::HiRes::time() * 1_000_000_000 ); die $! if ! defined($len); if ( $len > 0 ) { - warn "# len=$len ",dump($string); + #warn "# len=$len ",dump($string); if ( $string !~ m/^#/ ) { $string =~ s/[\r\n]+$//; $string =~ s/\s/,/g; -- 2.20.1