X-Git-Url: http://git.rot13.org/?p=air-quality;a=blobdiff_plain;f=pms3003.pl;fp=pms3003.pl;h=cb68af2bfab78bf353d55e5bf6f1779b177ceb50;hp=c1708f6793cd9c049d817576bc2d5a265cb4da3f;hb=59b28a41e509a3d933d3dac493ad78e60561e1d9;hpb=9c27794df65d335b028e0feb2d7783f7ec8a6014 diff --git a/pms3003.pl b/pms3003.pl index c1708f6..cb68af2 100755 --- a/pms3003.pl +++ b/pms3003.pl @@ -59,7 +59,7 @@ while (1) { }; $influx =~ s/,$//; $influx .= " $t"; - print "$influx\n"; + print "$influx\n" if -e '/dev/shm/air-debug'; system "curl --max-time 2 --silent -XPOST '$influx_url' --data-binary '$influx'" } }