projects
/
air-quality
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d32ab06
)
die on checksum error
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 18 Apr 2020 18:34:38 +0000
(20:34 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 18 Apr 2020 18:34:38 +0000
(20:34 +0200)
systemd service will restart us
mh-z19b.pl
patch
|
blob
|
history
diff --git
a/mh-z19b.pl
b/mh-z19b.pl
index
084bffa
..
968f315
100755
(executable)
--- a/
mh-z19b.pl
+++ b/
mh-z19b.pl
@@
-45,6
+45,8
@@
while (1) {
my $influx = "mh-z19b,dc=trnjanska co2=$co2 $t";
print "$influx\n";
system "curl --silent -XPOST '$influx_url' --data-binary '$influx'"
+ } else {
+ die "checksum error";
}
sleep 1;
$s->write("\xFF\x01\x86\x00\x00\x00\x00\x00\x79");