projects
/
air-quality
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added --max-time to curl so we fail quickly without network
[air-quality]
/
pms3003.pl
diff --git
a/pms3003.pl
b/pms3003.pl
index
72771f5
..
f1d458a
100755
(executable)
--- a/
pms3003.pl
+++ b/
pms3003.pl
@@
-60,7
+60,7
@@
while (1) {
$influx =~ s/,$//;
$influx .= " $t";
print "$influx\n";
- system "curl --silent -XPOST '$influx_url' --data-binary '$influx'"
+ system "curl --
max-time 2 --
silent -XPOST '$influx_url' --data-binary '$influx'"
}
}