X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=mh-z19b.pl;fp=mh-z19b.pl;h=8edaa3fa7993834c723b8d7943c62b9697b6fa63;hb=42b7874fd94e776acce9f6fcbea694474d848368;hp=c2f8ffe302d16299fc7f41fb5292719af320a764;hpb=445307493ff5f2391f081b8882e12a24085896d3;p=air-quality diff --git a/mh-z19b.pl b/mh-z19b.pl index c2f8ffe..8edaa3f 100755 --- a/mh-z19b.pl +++ b/mh-z19b.pl @@ -7,8 +7,7 @@ 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.2'; -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 $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);