X-Git-Url: http://git.rot13.org/?p=air-quality;a=blobdiff_plain;f=zph02.pl;h=34d74ad48c62c0d98bc7e41b0d1155822ba8429a;hp=0e329fd21376519631700bceec5df9950bd2e968;hb=89b7a4261ae56b3ed75e686f363dc6809de3285c;hpb=5a97ab5db9533de3863bef392278a5faf6488c2e diff --git a/zph02.pl b/zph02.pl index 0e329fd..34d74ad 100755 --- a/zph02.pl +++ b/zph02.pl @@ -6,9 +6,8 @@ use Device::SerialPort; use Time::HiRes; use Data::Dump qw(dump); -my $port = shift @ARGV || '/dev/serial/by-path/pci-0000:00:1a.7-usb-0:5.3.4:1.0'; -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 $port = shift @ARGV || '/dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0'; +my $influx_url = shift @ARGV || 'http://10.13.37.92:8086/write?consistency=any&db=rot13'; my $s = new Device::SerialPort( $port ) || die $!; $s->baudrate(9600);