projects
/
air-quality
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
198bb15
)
hard-code serial port by-part to be stable
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 5 Jan 2020 07:16:58 +0000
(08:16 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 5 Jan 2020 07:17:20 +0000
(08:17 +0100)
zph02.pl
patch
|
blob
|
history
diff --git
a/zph02.pl
b/zph02.pl
index
d0797d9
..
aeaaffb
100755
(executable)
--- 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';