From 2e19ee9624f8d86fc74686dfa1dc6e5215ed9c95 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 5 Jan 2020 08:16:58 +0100 Subject: [PATCH] hard-code serial port by-part to be stable --- zph02.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zph02.pl b/zph02.pl index d0797d9..aeaaffb 100755 --- a/zph02.pl +++ b/zph02.pl @@ -6,7 +6,8 @@ use Device::SerialPort; use Time::HiRes; use Data::Dump qw(dump); -my $port = shift @ARGV || '/dev/ttyUSB0'; +my $port = shift @ARGV || '/dev/ttyUSB1'; +$port = '/dev/serial/by-path/pci-0000:00:1a.7-usb-0:5.4:1.0-port0'; 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'; -- 2.20.1