get rid of linting warnings

This commit is contained in:
Thomas Ruoff
2019-09-12 20:45:57 +02:00
parent c184f7aaa6
commit 9d31b84e6b
4 changed files with 93 additions and 88 deletions

17
to_influx_db.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
#
# TODO: explain usage
set -e
HOST=${INFLUXDB_HOST:-localhost}
PORT=${INFLUXDB_PORT:-8086}
DATABASE=${INFLUXDB_DATABASE:-feinstaub}
PRECISION=s
SRC_FILE=${1:-/dev/stdin}
curl --include -X POST \
"http://${HOST}:${PORT}/write?db=${DATABASE}&precision=${PRECISION}" \
--data-binary @${SRC_FILE}