X-Git-Url: http://git.rot13.org/?p=air-quality;a=blobdiff_plain;f=dsm501.pl;fp=dsm501.pl;h=003274720f7942e93daf7ab1eb2c3e46ba3421f2;hp=8e183c8b86e3c303c9aae1a716ff3dc68d249391;hb=56f005c0ba6229bb228667ab0bfc7b382e7c72e5;hpb=14271635ea185cf8075b9d5335cdd137725bcfd5 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;