update to local influxdb
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 12 Aug 2023 10:38:37 +0000 (12:38 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 10 Mar 2024 13:10:40 +0000 (14:10 +0100)
dsm501.pl
iio2mqtt.pl
mh-z19b.pl
pms3003.pl
zph02.pl

index 33277e5..0a237a7 100755 (executable)
--- 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 $!;
index a469024..50668f0 100755 (executable)
@@ -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;
 
index 927951b..52e3812 100755 (executable)
@@ -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);
index cb68af2..e90d1c0 100755 (executable)
@@ -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;
 
index 00d8c2d..731a432 100755 (executable)
--- 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);