mirror of
https://github.com/tomru/cram-luftdaten.git
synced 2026-03-03 06:27:23 +01:00
read settings from environment
This commit is contained in:
@@ -35,14 +35,13 @@
|
||||
# TODO:
|
||||
# - check if CSV export is in UTC ?
|
||||
|
||||
SRC_FILE="${1:-/dev/stdin}"
|
||||
SRC_FILE=${1:-/dev/stdin}
|
||||
|
||||
DATABASE=feinstaub
|
||||
SENSOR_ID=16229960
|
||||
DATABASE=${INFLUX_DATABASE:-feinstaub}
|
||||
SENSOR_ID=${SENSOR_ID:-16229960}
|
||||
|
||||
NODE=esp8266-$SENSOR_ID
|
||||
|
||||
|
||||
STRIP_CSV_HEADERS="tail -n +2"
|
||||
|
||||
cat $SRC_FILE \
|
||||
|
||||
Reference in New Issue
Block a user