From: Dobrica Pavlinusic Date: Sat, 12 Aug 2023 10:38:37 +0000 (+0200) Subject: update to local influxdb X-Git-Url: http://git.rot13.org/?p=air-quality;a=commitdiff_plain;h=80cbace6598e0bfb9a4798cccfb13611049d2e1b update to local influxdb --- diff --git a/dsm501.pl b/dsm501.pl index 33277e5..0a237a7 100755 --- a/dsm501.pl +++ b/dsm501.pl @@ -7,7 +7,7 @@ use Time::HiRes; use Data::Dump qw(dump); my $port = shift @ARGV || '/dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0'; -my $influx_url = shift @ARGV || 'http://10.60.0.92:8086/write?consistency=any&db=rot13'; +my $influx_url = shift @ARGV || 'http://192.168.3.40:8086/write?consistency=any&db=rot13'; my $measurement = $ENV{MEASUREMENT} || 'dsm501'; my $s = new Device::SerialPort( $port ) || die $!; diff --git a/iio2mqtt.pl b/iio2mqtt.pl index a469024..50668f0 100755 --- a/iio2mqtt.pl +++ b/iio2mqtt.pl @@ -6,7 +6,7 @@ use Time::HiRes; # sudo apt install libiio-utils mosquitto-clients -my $influx_url = shift @ARGV || 'http://10.60.0.92:8086/write?consistency=any&db=rot13'; +my $influx_url = shift @ARGV || 'http://192.168.3.40:8086/write?consistency=any&db=rot13'; my $delay = $ENV{DELAY} || 1; diff --git a/mh-z19b.pl b/mh-z19b.pl index 927951b..52e3812 100755 --- a/mh-z19b.pl +++ b/mh-z19b.pl @@ -7,7 +7,7 @@ use Time::HiRes; use Data::Dump qw(dump); my $port = shift @ARGV || '/dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.2'; -my $influx_url = shift @ARGV || 'http://10.60.0.92:8086/write?consistency=any&db=rot13'; +my $influx_url = shift @ARGV || 'http://192.168.3.40:8086/write?consistency=any&db=rot13'; my $s = new Device::SerialPort( $port ) || die $!; $s->baudrate(9600); diff --git a/pms3003.pl b/pms3003.pl index cb68af2..e90d1c0 100755 --- a/pms3003.pl +++ b/pms3003.pl @@ -7,7 +7,7 @@ use Time::HiRes; use Data::Dump qw(dump); my $port = shift @ARGV || '/dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0'; -my $influx_url = shift @ARGV || 'http://10.60.0.92:8086/write?consistency=any&db=rot13'; +my $influx_url = shift @ARGV || 'http://192.168.3.40:8086/write?consistency=any&db=rot13'; my $debug = $ENV{DEBUG} || 0; diff --git a/zph02.pl b/zph02.pl index 00d8c2d..731a432 100755 --- a/zph02.pl +++ b/zph02.pl @@ -7,7 +7,7 @@ use Time::HiRes; use Data::Dump qw(dump); my $port = shift @ARGV || '/dev/serial/by-path/platform-3f980000.usb-usb-0:1.5:1.0'; -my $influx_url = shift @ARGV || 'http://10.60.0.92:8086/write?consistency=any&db=rot13'; +my $influx_url = shift @ARGV || 'http://192.168.3.40:8086/write?consistency=any&db=rot13'; my $s = new Device::SerialPort( $port ) || die $!; $s->baudrate(9600);