projects
/
air-quality
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move arduino with mq sensors to debee
[air-quality]
/
dsm501.pl
diff --git
a/dsm501.pl
b/dsm501.pl
index
3b2f914
..
e61e2be
100755
(executable)
--- a/
dsm501.pl
+++ b/
dsm501.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.1.3:1.0-port0';
use Data::Dump qw(dump);
my $port = shift @ARGV || '/dev/serial/by-path/pci-0000:00:1a.7-usb-0:5.1.3: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';
+my $influx_url = shift @ARGV || 'http://10.13.37.92:8086/write?consistency=any&db=rot13';
my $measurement = $ENV{MEASUREMENT} || 'dsm501';
my $s = new Device::SerialPort( $port ) || die $!;
my $measurement = $ENV{MEASUREMENT} || 'dsm501';
my $s = new Device::SerialPort( $port ) || die $!;