From d582265ef49a10f186ad71aa84407ca63a0ba378 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 31 Jul 2019 16:06:58 +0100 Subject: [PATCH] Correct build task name --- .gitignore | 1 + build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index da70222..6c14f47 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.TSV *.txt example-message.json *.sqlite diff --git a/build b/build index 7acd16f..cfbf883 100755 --- a/build +++ b/build @@ -201,7 +201,7 @@ task_dev-server-stop() { task_end $?; } -task_geojson() { +task_geojson-debug() { sqlite3 lorawan.sqlite 'SELECT readings.latitude, readings.longitude, rssis.rssi FROM readings LEFT JOIN rssis ON readings.id = rssis.reading_id ORDER BY readings.latitude,readings.longitude;' | perl -pe 'chomp if eof' | jq --raw-input --slurp 'split("\n") | map(split("|") | map(if . == "" then null else tonumber end)) | map({type: "Feature", geometry: { type: "Point", "coordinates": [ .[1], .[0] ] }, properties: { "rssi": .[2], "marker-color": (if .[2] == null then "#dd0707" else "#04a104" end), "marker-symbol": "circle" }}) | { type: "FeatureCollection", features: . }' }